联通VAC定制包

本文展示了一个由华为提供的VAC请求样例包request.xml,其中包括了SOAP Envelope的详细结构与字段说明,如recordSequenceId、userIdType等,对于理解及实现相关通信协议有直接帮助。

华为提供的vac请求样例包request.xml

  1. <soapenv:Envelope xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd ="http://www.w3.org/2001/XMLSchema" xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap ="http://soap.bossagent.vac.unicom.com" >
  2.    <soapenv:Header />
  3.    <soapenv:Body>
  4.       <soap:orderRelationUpdateNotify soapenv:encodingStyle ="http://schemas.xmlsoap.org/soap/encoding/" >
  5.          <orderRelationUpdateNotifyRequest xsi:type ="req:OrderRelationUpdateNotifyRequest" xmlns:req ="http://req.sync.soap.bossagent.vac.unicom.com" >
  6.             <recordSequenceId xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 11</recordSequenceId>
  7.             <userIdType xsi:type ="soapenc:int" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 1</userIdType>
  8.             <userId xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 1</userId>
  9.             <serviceType xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 1</serviceType>
  10.             <spId xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 1</spId>
  11.             <productId xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 2</productId>
  12.             <updateType xsi:type ="soapenc:int" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 3</updateType>
  13.             <updateTime xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 44444444</updateTime>
  14.             <updateDesc xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 444</updateDesc>
  15.             <linkId xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 44</linkId>
  16.             <content xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > ?</content>
  17.             <effectiveDate xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 333333</effectiveDate>
  18.             <expireDate xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 2222222</expireDate>
  19.             <time_stamp xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 3333</time_stamp>
  20.             <encodeStr xsi:type ="soapenc:string" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 111gg</encodeStr>
  21.          </orderRelationUpdateNotifyRequest>
  22.       </soap:orderRelationUpdateNotify>
  23.    </soapenv:Body>
  24. </soapenv:Envelope>

实际在网络上收到的数据包

  1. <soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd ="http://www.w3.org/2001/XMLSchema" xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance" >
  2.  <soapenv:Body>
  3.   <ns1:orderRelationUpdateNotify soapenv:encodingStyle ="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.bossagent.vac.unicom.com" >
  4.    <orderRelationUpdateNotifyRequest href ="#id0" />
  5.   </ns1:orderRelationUpdateNotify>
  6.   <multiRef id ="id0" soapenc:root ="0" soapenv:encodingStyle ="http://schemas.xmlsoap.org/soap/encoding/" xsi:type ="ns2:OrderRelationUpdateNotifyRequest" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://req.sync.soap.bossagent.vac.unicom.com" >
  7.    <recordSequenceId xsi:type ="soapenc:string" > 200903181622360043</recordSequenceId>
  8.    <userIdType href ="#id1" />
  9.    <userId xsi:type ="soapenc:string" > 8613004849965</userId>
  10.    <serviceType xsi:type ="soapenc:string" > 5</serviceType>
  11.    <spId xsi:type ="soapenc:string" > 90000001</spId>
  12.    <productId xsi:type ="soapenc:string" > 050002</productId>
  13.    <updateType href ="#id2" />
  14.    <updateTime xsi:type ="soapenc:string" > 20090313110400</updateTime>
  15.    <updateDesc xsi:type ="soapenc:string" > </updateDesc>
  16.    <linkId xsi:type ="soapenc:string" > </linkId>
  17.    <content xsi:type ="soapenc:string" > </content>
  18.    <effectiveDate xsi:type ="soapenc:string" > 20080301000000</effectiveDate>
  19.    <expireDate xsi:type ="soapenc:string" > 20100301000000</expireDate>
  20.    <time_stamp xsi:type ="soapenc:string" > 0318162236</time_stamp>
  21.    <encodeStr xsi:type ="soapenc:string" > </encodeStr>
  22.   </multiRef>
  23.   <multiRef id ="id2" soapenc:root ="0" soapenv:encodingStyle ="http://schemas.xmlsoap.org/soap/encoding/" xsi:type ="soapenc:int" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 1</multiRef>
  24.   <multiRef id ="id1" soapenc:root ="0" soapenv:encodingStyle ="http://schemas.xmlsoap.org/soap/encoding/" xsi:type ="soapenc:int" xmlns:soapenc ="http://schemas.xmlsoap.org/soap/encoding/" > 1</multiRef>
  25.  </soapenv:Body>
  26. </soapenv:Envelope>

时间格式都是 <!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } -->yyyyMMddhhmmss

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值