聯通vac割接接口實現說明

最近經常有人加我QQ問關於vac傳過來的消息包格式相關的問題,如果不是採用java來實現的話,只能是採用收發xml消息包的方式來實現.如下圖說明:

 

 1.聯通vac推送給SP的消息包格式:

<?xml version="1.0" encoding="UTF-8"?>
<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">
<soapenv:Body><ns1:orderRelationUpdateNotify soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:ns1="http://soap.bossagent.vac.unicom.com">
<orderRelationUpdateNotifyRequest href="#id0"/>
</ns1:orderRelationUpdateNotify>
<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">
<recordSequenceId xsi:type="soapenc:string">200908161759250750</recordSequenceId>
<userIdType href="#id1"/>
<userId xsi:type="soapenc:string">861321111111111</userId>
<serviceType xsi:type="soapenc:string">90</serviceType>
<spId xsi:type="soapenc:string">43390</spId>
<productId xsi:type="soapenc:string">9017011901</productId>
<updateType href="#id2"/>
<updateTime xsi:type="soapenc:string">20090816175925</updateTime>
<updateDesc xsi:type="soapenc:string">
</updateDesc><linkId xsi:type="soapenc:string">
</linkId><content xsi:type="soapenc:string">Y</content>
<effectiveDate xsi:type="soapenc:string">20090801000000</effectiveDate>
<expireDate xsi:type="soapenc:string">21001231000000</expireDate>
<time_stamp xsi:type="soapenc:string">0816175925</time_stamp>
<encodeStr xsi:type="soapenc:string">
</encodeStr>
</multiRef>
<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>
<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>
</soapenv:Body>
</soapenv:Envelope>


2.SP要回復聯通vac消息包格式:
<?xml version="1.0" encoding="utf-8"?>
<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"><soapenv:Body>
<ns1:orderRelationUpdateNotifyResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.bossagent.vac.unicom.com">
<orderRelationUpdateNotifyReturn href="#id0"/>
</ns1:orderRelationUpdateNotifyResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:OrderRelationUpdateNotifyResponse" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://rsp.sync.soap.bossagent.vac.unicom.com">
<recordSequenceId xsi:type="soapenc:string">20090822125185691</recordSequenceId>
<resultCode xsi:type="xsd:int">0</resultCode>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>


 

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章