2011-12-28 5 views
2
私は問題がある

に既存のSOAPリクエストを送信するために、私はこのようなSOAPリクエストエンベロープがあります。がどのように既存のWSDL

<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:str="http://string.soap.webservices.invent.telkom.co.id"><soapenv:Header/> 
<soapenv:Body> 
    <str:PhyStatus soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
     <ip xsi:type="xsd:string">172.20.20.123</ip> 
     <slot xsi:type="xsd:string">4</slot> 
     <port xsi:type="xsd:string">33</port> 
    </str:PhyStatus> 
</soapenv:Body> 
</soapenv:Envelope> 

を、私は、入力として貴様のパラメータが、同じ番号のサービスを持っているWSDLを持っています。 Javaでは、このSOAPリクエストをこのWSDLにどのように送信できますか?あなたの情報のために

、これは私が欲しいの出力(SOAPレスポンス)である:

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://string.soap.webservices.invent.telkom.co.id" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
<SOAP-ENV:Body> 
    <ns1:PhyStatusResponse> 
     <PhyStatusReturn xsi:type="SOAP-ENC:Struct"> 
      <AdminStatus xsi:type="xsd:string">Active</AdminStatus> 
      <LinkStatus xsi:type="xsd:string">Activating</LinkStatus> 
      <LineProfile xsi:type="xsd:string">ADSL LINE PROFILE 10</LineProfile> 
     </PhyStatusReturn> 
    </ns1:PhyStatusResponse> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 
+2

FYIでは、決してWSDLにリクエストを送信しません。 WSDLはサービスを記述する単なるXMLファイルです。 WSDLで記述されたサービスにリクエストを送信しています。 –

+0

Webサービスの操作にlibを使用していますか? –

答えて

0

は、URLの削除でサービス「?WSDL」にSOAPメッセージを投稿するために、任意のHTTPクライアントを使用することができます

関連する問題