当前位置:编程学习 > JAVA >>

如何用JAVA来构造SOAPMessage

我想构造一个如下的SOAPMessage,用JAVA怎么写啊,请高手指点。如果可以提供相关的资料也可以。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ws="http://ws.webservice.isps.com" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-2" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>iosh_svc</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">isps1234$</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ga6GNCGDbZMllfuxxuPxfw==</wsse:Nonce>
            <wsu:Created>2011-11-10T05:58:36.652Z</wsu:Created>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <ws:SPInformationRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <ID_NO xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">AVC</ID_NO>
         <ID_TYPE xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">123</ID_TYPE>
      </ws:SPInformationRequest>
   </soapenv:Body>
</soapenv:Envelope> --------------------编程问答-------------------- 看到这堆webservice的东西。。我表示压力很大。。。。帮你顶了。。。 --------------------编程问答--------------------
补充:Java ,  Web 开发
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,