2010-07-07 42 views

回答

1

有許多可用的基於SOAP的服務。你可以編寫自己的測試。

在這裏找到更多的細節 - >SOAPClient

例子:

SOAP Endpoint URL:  http://www.SoapClient.com/xml/SQLDataSoap.WSDL 
SOAP Action: /SQLDataSRL 
Method Names: ProcessSRL 
WSDL URL: http://www.SoapClient.com/xml/SQLDataSoap.wsdl 
Parameters:  

    1. SRLFile: The name of the Service Request Language File, use /xml/WEB.SRI for web searches. 
    2. RequestName: The name of the search engine, use Altavista, Yahoo, Excite, etc. 
    3. key: The keywords to be searched for. 

樣品SOAP消息

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
    <SOAP-ENV:Body> 
     <mns:ProcessSRL xmlns:mns="http://www.SoapClient.com/xml/SQLDataSoap.xsd"> 
      <SRLFile xsi:type="xsd:string">/xml/web.sri</SRLFile> 
      <RequestName xsi:type="xsd:string">Altavista</RequestName> 
      <key xsi:type="xsd:string">SOAP</key> 
     </mns:ProcessSRL> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 
相關問題