soap报文格式

首先1 Boot报文是客户端设备每次重启的时候向服务器发送的请求,基本的发报流程是这样的:

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
  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值