onvif抓包分析(一)

 rtsp取流流程:

OPTIONS rtsp: //10 .7.36.222:554 /Streaming/Channels/101 ?transportmode=unicast&profile=Profile_1 RTSP /1 .0
CSeq: 2
User-Agent: LIVE555 Streaming Media v2013.02.11
 
RTSP /1 .0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
Date:  Tue, Jun 14 2016 20:24:15 GMT
 
DESCRIBE rtsp: //10 .7.36.222:554 /Streaming/Channels/101 ?transportmode=unicast&profile=Profile_1 RTSP /1 .0
CSeq: 3
User-Agent: LIVE555 Streaming Media v2013.02.11
Accept: application /sdp
 
RTSP /1 .0 401 Unauthorized
CSeq: 3
WWW-Authenticate: Digest realm= "2857be2d7a59" , nonce= "035b16a6435f6cd4711bf4d9ab7bc6dc" , stale= "FALSE"
WWW-Authenticate: Basic realm= "2857be2d7a59"
Date:  Tue, Jun 14 2016 20:24:15 GMT
 
DESCRIBE rtsp: //10 .7.36.222:554 /Streaming/Channels/101 ?transportmode=unicast&profile=Profile_1 RTSP /1 .0
CSeq: 4
Authorization: Digest username= "admin" , realm= "2857be2d7a59" , nonce= "035b16a6435f6cd4711bf4d9ab7bc6dc" , uri= "rtsp://10.7.36.222:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1" , response= "97b478326058cdcc44e0345e7f224d88"
User-Agent: LIVE555 Streaming Media v2013.02.11
Accept: application /sdp
 
RTSP /1 .0 200 OK
CSeq: 4
Content-Type: application /sdp
Content-Base: rtsp: //10 .7.36.222:554 /Streaming/Channels/101/
Content-Length: 707
 
v =0
o=- 1465935855045660 1465935855045660 IN IP4 10.7.36.222
s=Media Presentation
e=NONE
b=AS:5050
t=0 0
a=control:rtsp: //10 .7.36.222:554 /Streaming/Channels/101/ ?transportmode=unicast&profile=Profile_1
m=video 0 RTP /AVP  96
c=IN IP4 0.0.0.0
b=AS:5000
a=recvonly
a=x-dimensions:1280,720
a=control:rtsp: //10 .7.36.222:554 /Streaming/Channels/101/trackID =1?transportmode=unicast&profile=Profile_1
a=rtpmap:96 H264 /90000
a=fmtp:96 profile-level- id =420029; packetization-mode=1; sprop-parameter-sets=Z00AH5plAoAt /4C1AQEBQAAA +gAAMNQ6GAA /zgAA/zSu8uNDAAf5wAAf5pXeXCg =,aO48gA==
a=Media_header:MEDIAINFO=494D4B48010100000400010000000000000000000000000000000000000000000000000000000000;
a=appversion:1.0
SETUP rtsp: //10 .7.36.222:554 /Streaming/Channels/101/trackID =1?transportmode=unicast&profile=Profile_1 RTSP /1 .0
CSeq: 5
Authorization: Digest username= "admin" , realm= "2857be2d7a59" , nonce= "035b16a6435f6cd4711bf4d9ab7bc6dc" , uri= "rtsp://10.7.36.222:554/Streaming/Channels/101/" , response= "29bf4aa9cf8a03a9f74389cdcfa6f958"
User-Agent: LIVE555 Streaming Media v2013.02.11
Transport: RTP /AVP/TCP ;unicast;interleaved=0-1
 
RTSP /1 .0 200 OK
CSeq: 5
Session:       1109141164;timeout=60
Transport: RTP /AVP/TCP ;unicast;interleaved=0-1;ssrc=58fa9010;mode= "play"
Date:  Tue, Jun 14 2016 20:24:15 GMT
 
PLAY rtsp: //10 .7.36.222:554 /Streaming/Channels/101/ ?transportmode=unicast&profile=Profile_1 RTSP /1 .0
CSeq: 6
Authorization: Digest username= "admin" , realm= "2857be2d7a59" , nonce= "035b16a6435f6cd4711bf4d9ab7bc6dc" , uri= "rtsp://10.7.36.222:554/Streaming/Channels/101/" , response= "670f09199ee1f39679b54c1fb41108ae"
User-Agent: LIVE555 Streaming Media v2013.02.11
Session: 1109141164
Range: npt=0.000-
 
RTSP /1 .0 200 OK
CSeq: 6
Session:       1109141164
RTP-Info: url=rtsp: //10 .7.36.222:554 /Streaming/Channels/101/trackID =1?transportmode=unicast&profile=Profile_1; seq =30683;rtptime=984527520
Date:  Tue, Jun 14 2016 20:24:15 GMT

 

 ipc组播报文地址:239.255.255.250:3702

<?xml version= "1.0"  encoding= "UTF-8" ?>
<ProbeMatch><Uuid>7CC4F6B6-3EFE-4235-A902-F15BB4C40BAE< /Uuid >
<Types>inquiry< /Types >
<DeviceType>139786< /DeviceType >
<DeviceDescription>DS-2CD2122FWD-IWS< /DeviceDescription >
<DeviceSN>DS-2CD2122FWD-IWS20151117BBWR556468483< /DeviceSN >
<CommandPort>8000< /CommandPort >
<HttpPort>80< /HttpPort >
<MAC>28-57-be-2d-7a-59< /MAC >
<IPv4Address>10.7.36.222< /IPv4Address >
<IPv4SubnetMask>255.255.255.0< /IPv4SubnetMask >
<IPv4Gateway>10.7.36.254< /IPv4Gateway >
<IPv6Address>::< /IPv6Address >
<IPv6Gateway>::< /IPv6Gateway >
<IPv6MaskLen>0< /IPv6MaskLen >
<DHCP> false < /DHCP >
<AnalogChannelNum>0< /AnalogChannelNum >
<DigitalChannelNum>1< /DigitalChannelNum >
<SoftwareVersion>V5.3.3build 150630< /SoftwareVersion >
<DSPVersion>V7.0 build 150609< /DSPVersion >
<BootTime>2016-06-14 17:22:25< /BootTime >
<ResetAbility> false < /ResetAbility >
<DiskNumber>0< /DiskNumber >
<Activated> true < /Activated >
<PasswordResetAbility> true < /PasswordResetAbility >
< /ProbeMatch >

 注:海康ipc组播报文(一直在发送的)中不含有设备webserver地址

 

GetScopes:

POST /onvif/device_service  HTTP /1 .1
Content-Type: application /soap +xml; charset=utf-8; action= "http://www.onvif.org/ver10/device/wsdl/GetScopes"
Host: 10.7.36.222
Content-Length: 905
Accept-Encoding: gzip , deflate
Connection: Close
 
<s:Envelope xmlns:s= "http://www.w3.org/2003/05/soap-envelope" ><s:Header><Security s:mustUnderstand= "1"  xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" ><UsernameToken><Username>admin< /Username ><Password Type= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest" >waPwkWlevggNlplkJFmKKxLw9UM=< /Password ><Nonce EncodingType= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" > /Qd3wiSMFEGmYiUeRFXCHqUEAAAAAA ==< /Nonce ><Created xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >2016-06-15T09:21:19.000Z< /Created >< /UsernameToken >< /Security >< /s :Header><s:Body xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd= "http://www.w3.org/2001/XMLSchema" ><GetScopes xmlns= "http://www.onvif.org/ver10/device/wsdl" />< /s :Body>< /s :Envelope>
 
 
HTTP /1 .1 200 OK
Content-Type: application /soap +xml; charset=utf-8
Content-Length:2922
 
<?xml version= "1.0"  encoding= "UTF-8" ?>
< env :Envelope xmlns: env = "http://www.w3.org/2003/05/soap-envelope"  xmlns:soapenc= "http://www.w3.org/2003/05/soap-encoding"  xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xs= "http://www.w3.org/2001/XMLSchema"  xmlns:tt= "http://www.onvif.org/ver10/schema"  xmlns:tds= "http://www.onvif.org/ver10/device/wsdl"  xmlns:trt= "http://www.onvif.org/ver10/media/wsdl"  xmlns:timg= "http://www.onvif.org/ver20/imaging/wsdl"  xmlns:tev= "http://www.onvif.org/ver10/events/wsdl"  xmlns:tptz= "http://www.onvif.org/ver20/ptz/wsdl"  xmlns:tan= "http://www.onvif.org/ver20/analytics/wsdl"  xmlns:tst= "http://www.onvif.org/ver10/storage/wsdl"  xmlns:ter= "http://www.onvif.org/ver10/error"  xmlns:dn= "http://www.onvif.org/ver10/network/wsdl"  xmlns:tns1= "http://www.onvif.org/ver10/topics"  xmlns:tmd= "http://www.onvif.org/ver10/deviceIO/wsdl"  xmlns:wsdl= "http://schemas.xmlsoap.org/wsdl"  xmlns:wsoap12= "http://schemas.xmlsoap.org/wsdl/soap12"  xmlns:http= "http://schemas.xmlsoap.org/wsdl/http"  xmlns:d= "http://schemas.xmlsoap.org/ws/2005/04/discovery"  xmlns:wsadis= "http://schemas.xmlsoap.org/ws/2004/08/addressing"  xmlns:wsnt= "http://docs.oasis-open.org/wsn/b-2"  xmlns:wsa= "http://www.w3.org/2005/08/addressing"  xmlns:wstop= "http://docs.oasis-open.org/wsn/t-1"  xmlns:wsrf-bf= "http://docs.oasis-open.org/wsrf/bf-2"  xmlns:wsntw= "http://docs.oasis-open.org/wsn/bw-2"  xmlns:wsrf-rw= "http://docs.oasis-open.org/wsrf/rw-2"  xmlns:wsaw= "http://www.w3.org/2006/05/addressing/wsdl"  xmlns:wsrf-r= "http://docs.oasis-open.org/wsrf/r-2"  xmlns:trc= "http://www.onvif.org/ver10/recording/wsdl"  xmlns:tse= "http://www.onvif.org/ver10/search/wsdl"  xmlns:trp= "http://www.onvif.org/ver10/replay/wsdl"  xmlns:tnshik= "http://www.hikvision.com/2011/event/topics"  xmlns:hikwsd= "http://www.onvifext.com/onvif/ext/ver10/wsdl"  xmlns:hikxsd= "http://www.onvifext.com/onvif/ext/ver10/schema" >< env :Body><tds:GetScopesResponse><tds:Scopes><tt:ScopeDef>Fixed< /tt :ScopeDef>
<tt:ScopeItem>onvif: //www .onvif.org /type/video_encoder < /tt :ScopeItem>
< /tds :Scopes>
<tds:Scopes><tt:ScopeDef>Fixed< /tt :ScopeDef>
<tt:ScopeItem>onvif: //www .onvif.org /Profile/Streaming < /tt :ScopeItem>
< /tds :Scopes>
<tds:Scopes><tt:ScopeDef>Fixed< /tt :ScopeDef>
<tt:ScopeItem>onvif: //www .onvif.org /Profile/G < /tt :ScopeItem>
< /tds :Scopes>
<tds:Scopes><tt:ScopeDef>Fixed< /tt :ScopeDef>
<tt:ScopeItem>onvif: //www .onvif.org /type/audio_encoder < /tt :ScopeItem>
< /tds :Scopes>
<tds:Scopes><tt:ScopeDef>Fixed< /tt :ScopeDef>
<tt:ScopeItem>onvif: //www .onvif.org /hardware/DS-2CD2122FWD-IWS < /tt :ScopeItem>
< /tds :Scopes>
<tds:Scopes><tt:ScopeDef>Configurable< /tt :ScopeDef>
<tt:ScopeItem>onvif: //www .onvif.org /name/HIKVISION %20DS-2CD2122FWD-IWS< /tt :ScopeItem>
< /tds :Scopes>
<tds:Scopes><tt:ScopeDef>Configurable< /tt :ScopeDef>
<tt:ScopeItem>onvif: //www .onvif.org /location/city/hangzhou < /tt :ScopeItem>
< /tds :Scopes>
< /tds :GetScopesResponse>
< /env :Body>
< /env :Envelope>

 

GetDeviceInformation:

POST /onvif/device_service  HTTP /1 .1
Content-Type: application /soap +xml; charset=utf-8; action= "http://www.onvif.org/ver10/device/wsdl/GetDeviceInformation"
Host: 10.7.36.222
Content-Length: 916
Accept-Encoding: gzip , deflate
Connection: Close
 
<s:Envelope xmlns:s= "http://www.w3.org/2003/05/soap-envelope" ><s:Header><Security s:mustUnderstand= "1"  xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" ><UsernameToken><Username>admin< /Username ><Password Type= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest" >AOVoke+rjCqzZ+GjjtN+uBIXqH4=< /Password ><Nonce EncodingType= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" > /Qd3wiSMFEGmYiUeRFXCHqYEAAAAAA ==< /Nonce ><Created xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >2016-06-15T09:21:19.000Z< /Created >< /UsernameToken >< /Security >< /s :Header><s:Body xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd= "http://www.w3.org/2001/XMLSchema" ><GetDeviceInformation xmlns= "http://www.onvif.org/ver10/device/wsdl" />< /s :Body>< /s :Envelope>
 
 
HTTP /1 .1 200 OK
Date: Wed, 15 Jun 2016 17:21:19 GMT
Server: App-webs/
Connection: close
Content-Length: 2256
Content-Type: application /soap +xml; charset=utf-8
 
<?xml version= "1.0"  encoding= "UTF-8" ?>
< env :Envelope xmlns: env = "http://www.w3.org/2003/05/soap-envelope"  xmlns:soapenc= "http://www.w3.org/2003/05/soap-encoding"  xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xs= "http://www.w3.org/2001/XMLSchema"  xmlns:tt= "http://www.onvif.org/ver10/schema"  xmlns:tds= "http://www.onvif.org/ver10/device/wsdl"  xmlns:trt= "http://www.onvif.org/ver10/media/wsdl"  xmlns:timg= "http://www.onvif.org/ver20/imaging/wsdl"  xmlns:tev= "http://www.onvif.org/ver10/events/wsdl"  xmlns:tptz= "http://www.onvif.org/ver20/ptz/wsdl"  xmlns:tan= "http://www.onvif.org/ver20/analytics/wsdl"  xmlns:tst= "http://www.onvif.org/ver10/storage/wsdl"  xmlns:ter= "http://www.onvif.org/ver10/error"  xmlns:dn= "http://www.onvif.org/ver10/network/wsdl"  xmlns:tns1= "http://www.onvif.org/ver10/topics"  xmlns:tmd= "http://www.onvif.org/ver10/deviceIO/wsdl"  xmlns:wsdl= "http://schemas.xmlsoap.org/wsdl"  xmlns:wsoap12= "http://schemas.xmlsoap.org/wsdl/soap12"  xmlns:http= "http://schemas.xmlsoap.org/wsdl/http"  xmlns:d= "http://schemas.xmlsoap.org/ws/2005/04/discovery"  xmlns:wsadis= "http://schemas.xmlsoap.org/ws/2004/08/addressing"  xmlns:wsnt= "http://docs.oasis-open.org/wsn/b-2"  xmlns:wsa= "http://www.w3.org/2005/08/addressing"  xmlns:wstop= "http://docs.oasis-open.org/wsn/t-1"  xmlns:wsrf-bf= "http://docs.oasis-open.org/wsrf/bf-2"  xmlns:wsntw= "http://docs.oasis-open.org/wsn/bw-2"  xmlns:wsrf-rw= "http://docs.oasis-open.org/wsrf/rw-2"  xmlns:wsaw= "http://www.w3.org/2006/05/addressing/wsdl"  xmlns:wsrf-r= "http://docs.oasis-open.org/wsrf/r-2"  xmlns:trc= "http://www.onvif.org/ver10/recording/wsdl"  xmlns:tse= "http://www.onvif.org/ver10/search/wsdl"  xmlns:trp= "http://www.onvif.org/ver10/replay/wsdl"  xmlns:tnshik= "http://www.hikvision.com/2011/event/topics"  xmlns:hikwsd= "http://www.onvifext.com/onvif/ext/ver10/wsdl"  xmlns:hikxsd= "http://www.onvifext.com/onvif/ext/ver10/schema" >< env :Body><tds:GetDeviceInformationResponse><tds:Manufacturer>HIKVISION< /tds :Manufacturer>
<tds:Model>DS-2CD2122FWD-IWS< /tds :Model>
<tds:FirmwareVersion>V5.3.3 build 150630< /tds :FirmwareVersion>
<tds:SerialNumber>DS-2CD2122FWD-IWS20151117BBWR556468483< /tds :SerialNumber>
<tds:HardwareId>88< /tds :HardwareId>
< /tds :GetDeviceInformationResponse>
< /env :Body>
< /env :Envelope>

 

GetNetworkInterfaces:

POST /onvif/device_service  HTTP /1 .1
Content-Type: application /soap +xml; charset=utf-8; action= "http://www.onvif.org/ver10/device/wsdl/GetNetworkInterfaces"
Host: 10.7.36.222
Content-Length: 916
Accept-Encoding: gzip , deflate
Connection: Close
 
<s:Envelope xmlns:s= "http://www.w3.org/2003/05/soap-envelope" ><s:Header><Security s:mustUnderstand= "1"  xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" ><UsernameToken><Username>admin< /Username ><Password Type= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest" >c7jBRcsvCsg5P /1 +RG67giHq5G0=< /Password ><Nonce EncodingType= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" > /Qd3wiSMFEGmYiUeRFXCHqcEAAAAAA ==< /Nonce ><Created xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >2016-06-15T09:21:19.000Z< /Created >< /UsernameToken >< /Security >< /s :Header><s:Body xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd= "http://www.w3.org/2001/XMLSchema" ><GetNetworkInterfaces xmlns= "http://www.onvif.org/ver10/device/wsdl" />< /s :Body>< /s :Envelope>
 
 
HTTP /1 .1 200 OK
Date: Wed, 15 Jun 2016 17:21:19 GMT
Server: App-webs/
Connection: close
Content-Length: 3564
Content-Type: application /soap +xml; charset=utf-8
 
<?xml version= "1.0"  encoding= "UTF-8" ?>
< env :Envelope xmlns: env = "http://www.w3.org/2003/05/soap-envelope"  xmlns:soapenc= "http://www.w3.org/2003/05/soap-encoding"  xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xs= "http://www.w3.org/2001/XMLSchema"  xmlns:tt= "http://www.onvif.org/ver10/schema"  xmlns:tds= "http://www.onvif.org/ver10/device/wsdl"  xmlns:trt= "http://www.onvif.org/ver10/media/wsdl"  xmlns:timg= "http://www.onvif.org/ver20/imaging/wsdl"  xmlns:tev= "http://www.onvif.org/ver10/events/wsdl"  xmlns:tptz= "http://www.onvif.org/ver20/ptz/wsdl"  xmlns:tan= "http://www.onvif.org/ver20/analytics/wsdl"  xmlns:tst= "http://www.onvif.org/ver10/storage/wsdl"  xmlns:ter= "http://www.onvif.org/ver10/error"  xmlns:dn= "http://www.onvif.org/ver10/network/wsdl"  xmlns:tns1= "http://www.onvif.org/ver10/topics"  xmlns:tmd= "http://www.onvif.org/ver10/deviceIO/wsdl"  xmlns:wsdl= "http://schemas.xmlsoap.org/wsdl"  xmlns:wsoap12= "http://schemas.xmlsoap.org/wsdl/soap12"  xmlns:http= "http://schemas.xmlsoap.org/wsdl/http"  xmlns:d= "http://schemas.xmlsoap.org/ws/2005/04/discovery"  xmlns:wsadis= "http://schemas.xmlsoap.org/ws/2004/08/addressing"  xmlns:wsnt= "http://docs.oasis-open.org/wsn/b-2"  xmlns:wsa= "http://www.w3.org/2005/08/addressing"  xmlns:wstop= "http://docs.oasis-open.org/wsn/t-1"  xmlns:wsrf-bf= "http://docs.oasis-open.org/wsrf/bf-2"  xmlns:wsntw= "http://docs.oasis-open.org/wsn/bw-2"  xmlns:wsrf-rw= "http://docs.oasis-open.org/wsrf/rw-2"  xmlns:wsaw= "http://www.w3.org/2006/05/addressing/wsdl"  xmlns:wsrf-r= "http://docs.oasis-open.org/wsrf/r-2"  xmlns:trc= "http://www.onvif.org/ver10/recording/wsdl"  xmlns:tse= "http://www.onvif.org/ver10/search/wsdl"  xmlns:trp= "http://www.onvif.org/ver10/replay/wsdl"  xmlns:tnshik= "http://www.hikvision.com/2011/event/topics"  xmlns:hikwsd= "http://www.onvifext.com/onvif/ext/ver10/wsdl"  xmlns:hikxsd= "http://www.onvifext.com/onvif/ext/ver10/schema" >< env :Body><tds:GetNetworkInterfacesResponse><tds:NetworkInterfaces token= "eth0" ><tt:Enabled> true < /tt :Enabled>
<tt:Info><tt:Name>eth0< /tt :Name>
<tt:HwAddress>28:57:be:2d:7a:59< /tt :HwAddress>
<tt:MTU>1500< /tt :MTU>
< /tt :Info>
<tt:Link><tt:AdminSettings><tt:AutoNegotiation> true < /tt :AutoNegotiation>
<tt:Speed>100< /tt :Speed>
<tt:Duplex>Full< /tt :Duplex>
< /tt :AdminSettings>
<tt:OperSettings><tt:AutoNegotiation> true < /tt :AutoNegotiation>
<tt:Speed>100< /tt :Speed>
<tt:Duplex>Full< /tt :Duplex>
< /tt :OperSettings>
<tt:InterfaceType>0< /tt :InterfaceType>
< /tt :Link>
<tt:IPv4><tt:Enabled> true < /tt :Enabled>
<tt:Config><tt:Manual><tt:Address>10.7.36.222< /tt :Address>
<tt:PrefixLength>24< /tt :PrefixLength>
< /tt :Manual>
<tt:DHCP> false < /tt :DHCP>
< /tt :Config>
< /tt :IPv4>
<tt:IPv6><tt:Enabled> true < /tt :Enabled>
<tt:Config><tt:AcceptRouterAdvert> false < /tt :AcceptRouterAdvert>
<tt:DHCP>Off< /tt :DHCP>
<tt:LinkLocal><tt:Address>fe80::2a57:beff:fe2d:7a59< /tt :Address>
<tt:PrefixLength>64< /tt :PrefixLength>
< /tt :LinkLocal>
<tt:FromDHCP><tt:Address>fe80::2a57:beff:fe2d:7a59< /tt :Address>
<tt:PrefixLength>64< /tt :PrefixLength>
< /tt :FromDHCP>
< /tt :Config>
< /tt :IPv6>
< /tds :NetworkInterfaces>
<tds:NetworkInterfaces token= "wlan0" ><tt:Enabled> false < /tt :Enabled>
<tt:Info><tt:Name>wlan0< /tt :Name>
<tt:HwAddress>20:f4:1b:39:7d:0c< /tt :HwAddress>
<tt:MTU>1500< /tt :MTU>
< /tt :Info>
<tt:IPv4><tt:Enabled> true < /tt :Enabled>
<tt:Config><tt:FromDHCP><tt:Address>169.254.62.92< /tt :Address>
<tt:PrefixLength>16< /tt :PrefixLength>
< /tt :FromDHCP>
<tt:DHCP> true < /tt :DHCP>
< /tt :Config>
< /tt :IPv4>
< /tds :NetworkInterfaces>
< /tds :GetNetworkInterfacesResponse>
< /env :Body>
< /env :Envelope>

 

GetDNS:

POST /onvif/device_service  HTTP /1 .1
Content-Type: application /soap +xml; charset=utf-8; action= "http://www.onvif.org/ver10/device/wsdl/GetDNS"
Host: 10.7.36.222
Content-Length: 902
Accept-Encoding: gzip , deflate
Connection: Close
 
<s:Envelope xmlns:s= "http://www.w3.org/2003/05/soap-envelope" ><s:Header><Security s:mustUnderstand= "1"  xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" ><UsernameToken><Username>admin< /Username ><Password Type= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest" >MyPCsbXBk2LTRVkS+zIXkaoEr+o=< /Password ><Nonce EncodingType= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" > /Qd3wiSMFEGmYiUeRFXCHqgEAAAAAA ==< /Nonce ><Created xmlns= "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >2016-06-15T09:21:19.000Z< /Created >< /UsernameToken >< /Security >< /s :Header><s:Body xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd= "http://www.w3.org/2001/XMLSchema" ><GetDNS xmlns= "http://www.onvif.org/ver10/device/wsdl" />< /s :Body>< /s :Envelope>
 
 
 
HTTP /1 .1 200 OK
Date: Wed, 15 Jun 2016 17:21:19 GMT
Server: App-webs/
Connection: close
Content-Length: 2135
Content-Type: application /soap +xml; charset=utf-8
 
<?xml version= "1.0"  encoding= "UTF-8" ?>
< env :Envelope xmlns: env = "http://www.w3.org/2003/05/soap-envelope"  xmlns:soapenc= "http://www.w3.org/2003/05/soap-encoding"  xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xmlns:xs= "http://www.w3.org/2001/XMLSchema"  xmlns:tt= "http://www.onvif.org/ver10/schema"  xmlns:tds= "http://www.onvif.org/ver10/device/wsdl"  xmlns:trt= "http://www.onvif.org/ver10/media/wsdl"  xmlns:timg= "http://www.onvif.org/ver20/imaging/wsdl"  xmlns:tev= "http://www.onvif.org/ver10/events/wsdl"  xmlns:tptz= "http://www.onvif.org/ver20/ptz/wsdl"  xmlns:tan= "http://www.onvif.org/ver20/analytics/wsdl"  xmlns:tst= "http://www.onvif.org/ver10/storage/wsdl"  xmlns:ter= "http://www.onvif.org/ver10/error"  xmlns:dn= "http://www.onvif.org/ver10/network/wsdl"  xmlns:tns1= "http://www.onvif.org/ver10/topics"  xmlns:tmd= "http://www.onvif.org/ver10/deviceIO/wsdl"  xmlns:wsdl= "http://schemas.xmlsoap.org/wsdl"  xmlns:wsoap12= "http://schemas.xmlsoap.org/wsdl/soap12"  xmlns:http= "http://schemas.xmlsoap.org/wsdl/http"  xmlns:d= "http://schemas.xmlsoap.org/ws/2005/04/discovery"  xmlns:wsadis= "http://schemas.xmlsoap.org/ws/2004/08/addressing"  xmlns:wsnt= "http://docs.oasis-open.org/wsn/b-2"  xmlns:wsa= "http://www.w3.org/2005/08/addressing"  xmlns:wstop= "http://docs.oasis-open.org/wsn/t-1"  xmlns:wsrf-bf= "http://docs.oasis-open.org/wsrf/bf-2"  xmlns:wsntw= "http://docs.oasis-open.org/wsn/bw-2"  xmlns:wsrf-rw= "http://docs.oasis-open.org/wsrf/rw-2"  xmlns:wsaw= "http://www.w3.org/2006/05/addressing/wsdl"  xmlns:wsrf-r= "http://docs.oasis-open.org/wsrf/r-2"  xmlns:trc= "http://www.onvif.org/ver10/recording/wsdl"  xmlns:tse= "http://www.onvif.org/ver10/search/wsdl"  xmlns:trp= "http://www.onvif.org/ver10/replay/wsdl"  xmlns:tnshik= "http://www.hikvision.com/2011/event/topics"  xmlns:hikwsd= "http://www.onvifext.com/onvif/ext/ver10/wsdl"  xmlns:hikxsd= "http://www.onvifext.com/onvif/ext/ver10/schema" >< env :Body><tds:GetDNSResponse><tds:DNSInformation><tt:FromDHCP> false < /tt :FromDHCP>
<tt:DNSManual><tt:Type>IPv4< /tt :Type>
<tt:IPv4Address>8.8.8.8< /tt :IPv4Address>
< /tt :DNSManual>
< /tds :DNSInformation>
< /tds :GetDNSResponse>
< /env :Body>
< /env :Envelope>
  • 0
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值