1. 客户端向服务器发送1 Boot Inform请求。
2. 服务器接收到以后会向客户端回复InformResponse报文。
3. 服务器接收到你的请求之后会给你下发SetParameterValues报文。
4. 客户端接收到服务器的
SetParameterValues报文后会回复相应的SetParameterValuesResponse报文。
5. 最后服务器回复InformResponse报文,表明本次交互已经完成。
1. 1Boot Inform报文如下:
POST / HTTP/1.1
Host: 222.73.156.30:9000
User-Agent: PHICOMM_TR69_CPE_04_00
Connection: keep-alive
Content-Type: text/xml
Content-Length: 3271
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<SOAP-ENV:Header>
<cwmp:ID SOAP-ENV:mustUnderstand="1">821074105</cwmp:ID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<cwmp:Inform>
<DeviceId>
<Manufacturer>Feixun</Manufacturer>
<OUI>001234</OUI>
<ProductClass>Wlan_AP</ProductClass>
<SerialNumber>CZWBT16OCH00058</SerialNumber>
<WanIPAddress>172.17.60.206</WanIPAddress>
</DeviceId>
<Event SOAP-ENC:arrayType="cwmp:EventStruct[2]">
<EventStruct>
<EventCode>1 BOOT</EventCode>
<CommandKey></CommandKey>
</EventStruct>
<EventStruct>
<CommandKey></CommandKey>
</EventStruct>
</Event>
<MaxEnvelopes>1</MaxEnvelopes>
<CurrentTime>2015-10-13T04:24:12+00:00</CurrentTime>
<RetryCount>10</RetryCount>
<ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct[0009]">
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceSummary</Name>
<Value xsi:type="xsd:string">InternetGatewayDevice:1.1[](Baseline:1, EthernetLAN:1, WiFiLAN:1, Time:1, IPPing:1)</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
<Value xsi:type="xsd:string">1.0</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
<Value xsi:type="xsd:string">V1.1</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
<Value xsi:type="xsd:string">V1.0.4.23542</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.ModelName</Name>
<Value xsi:type="xsd:string">FAP-252CPA</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.MacAddress</Name>
<Value xsi:type="xsd:string">00:6B:8E:A0:17:91</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.OpMode</Name>
<Value xsi:type="xsd:string">AP</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
<Value xsi:type="xsd:string">0</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.MagtVlan</Name>
<Value xsi:type="xsd:int">0</Value>
</ParameterValueStruct>
</ParameterList>
</cwmp:Inform>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
2. InformResponse报文如下:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Connection: keep-alive
Content-Length: 332
Connection = keep-alive
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soap:Header>
<cwmp:ID soap:mustUnderstand="1">279191132</cwmp:ID>
</soap:Header>
<soap:Body>
<cwmp:InformResponse/>
</soap:Body>
</soap:Envelope>
3. SetParameterValues报文如下:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Connection: keep-alive
Content-Length: 17257
<soap:Envelope xmlns:soap="http://schem