首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

怎么通过联通vac提供的wsdl获取response的xml包呢

2012-03-25 
如何通过联通vac提供的wsdl获取response的xml包呢大家好,我现在正在做山东联通的vac订购关系处理,由于联通

如何通过联通vac提供的wsdl获取response的xml包呢
大家好,我现在正在做山东联通的vac订购关系处理,由于联通提供给我们的wsdl文件不知道什么问题,开始用axis生成java源码,结果有些问题,没调试通。
现在我们想通过接收联通发送给我们的sp订购通知包写入xml,然后解析处理,并且返回给联通一个response包。现在不清楚这个resonse包应该是怎样的格式?
不知有做过联通vac sp订购关系处理的吗?麻烦给指点一下或者提供以下response的xml包格式,谢谢! 我邮箱是: hongjun1178@gmail.com

现在联通就给我们一个VacSyncService_SPClient.wsdl文件,
以下是wsdl源码:

XML code
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:tns3="http://rsp.sync.soap.bossagent.vac.unicom.com" xmlns:impl="http://soap.bossagent.vac.unicom.com" xmlns:intf="http://soap.bossagent.vac.unicom.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://req.sync.soap.bossagent.vac.unicom.com" xmlns:tns4="http://type.sync.soap.bossagent.vac.unicom.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://soap.bossagent.vac.unicom.com">    <wsdl:types>        <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://req.sync.soap.bossagent.vac.unicom.com">            <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>            <complexType name="OrderRelationUpdateNotifyRequest">                <sequence>                    <element name="recordSequenceId" nillable="true" type="soapenc:string"/>                    <element name="userIdType" nillable="true" type="soapenc:int"/>                    <element name="userId" nillable="true" type="soapenc:string"/>                    <element name="serviceType" nillable="true" type="soapenc:string"/>                    <element name="spId" nillable="true" type="soapenc:string"/>                    <element name="productId" nillable="true" type="soapenc:string"/>                    <element name="updateType" nillable="true" type="soapenc:int"/>                    <element name="updateTime" nillable="true" type="soapenc:string"/>                    <element name="updateDesc" nillable="true" type="soapenc:string"/>                    <element name="linkId" nillable="true" type="soapenc:string"/>                    <element name="content" nillable="true" type="soapenc:string"/>                    <element name="effectiveDate" nillable="true" type="soapenc:string"/>                    <element name="expireDate" nillable="true" type="soapenc:string"/>                    <element name="time_stamp" nillable="true" type="soapenc:string"/>                    <element name="encodeStr" nillable="true" type="soapenc:string"/>                </sequence>            </complexType>        </schema>        <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://rsp.sync.soap.bossagent.vac.unicom.com">            <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>            <complexType name="OrderRelationUpdateNotifyResponse">                <sequence>                    <element name="recordSequenceId" nillable="true" type="soapenc:string"/>                    <element name="resultCode" type="xsd:int"/>                </sequence>            </complexType>        </schema>    </wsdl:types>    <wsdl:message name="orderRelationUpdateNotifyRequest">        <wsdl:part name="orderRelationUpdateNotifyRequest" type="tns2:OrderRelationUpdateNotifyRequest"/>    </wsdl:message>    <wsdl:message name="orderRelationUpdateNotifyResponse">        <wsdl:part name="orderRelationUpdateNotifyReturn" type="tns3:OrderRelationUpdateNotifyResponse"/>    </wsdl:message>    <wsdl:portType name="SyncNotifySPService">        <wsdl:operation name="orderRelationUpdateNotify" parameterOrder="orderRelationUpdateNotifyRequest">            <wsdl:input name="orderRelationUpdateNotifyRequest" message="impl:orderRelationUpdateNotifyRequest"/>            <wsdl:output name="orderRelationUpdateNotifyResponse" message="impl:orderRelationUpdateNotifyResponse"/>        </wsdl:operation>    </wsdl:portType>    <wsdl:binding name="SyncNotifySPSoapBinding" type="impl:SyncNotifySPService">        <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>        <wsdl:operation name="orderRelationUpdateNotify">            <wsdlsoap:operation/>            <wsdl:input>                <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap.bossagent.vac.unicom.com"/>            </wsdl:input>            <wsdl:output>                <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap.bossagent.vac.unicom.com"/>            </wsdl:output>        </wsdl:operation>    </wsdl:binding>    <wsdl:service name="SyncNotifySPServiceService">        <wsdl:port name="SyncNotifySP" binding="impl:SyncNotifySPSoapBinding">            <wsdlsoap:address location="http://localhost/services/VacSync"/>        </wsdl:port>    </wsdl:service></wsdl:definitions> 



[解决办法]
XML code
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://req.sync.soap.bossagent.vac.unicom.com" xmlns:m1="http://schemas.xmlsoap.org/soap/encoding/">    <SOAP-ENV:Body>        <m:orderRelationUpdateNotify xmlns:m="http://soap.bossagent.vac.unicom.com" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">            <orderRelationUpdateNotifyRequest xsi:type="m0:OrderRelationUpdateNotifyRequest">                <recordSequenceId xsi:type="m1:string" id="" href=""/>                <userIdType xsi:type="m1:int" id="" href=""/>                <userId xsi:type="m1:string" id="" href=""/>                <serviceType xsi:type="m1:string" id="" href=""/>                <spId xsi:type="m1:string" id="" href=""/>                <productId xsi:type="m1:string" id="" href=""/>                <updateType xsi:type="m1:int" id="" href=""/>                <updateTime xsi:type="m1:string" id="" href=""/>                <updateDesc xsi:type="m1:string" id="" href=""/>                <linkId xsi:type="m1:string" id="" href=""/>                <content xsi:type="m1:string" id="" href=""/>                <effectiveDate xsi:type="m1:string" id="" href=""/>                <expireDate xsi:type="m1:string" id="" href=""/>                <time_stamp xsi:type="m1:string" id="" href=""/>                <encodeStr xsi:type="m1:string" id="" href=""/>            </orderRelationUpdateNotifyRequest>        </m:orderRelationUpdateNotify>    </SOAP-ENV:Body></SOAP-ENV:Envelope> 

热点排行