我需要一些使用SoapUI工具的幫助。如何在SoapUI工具的SOAP請求中指定複雜的數據類型輸入
我使用這個工具測試webServices APIs。
有稱爲API 「getUsageReport()」這需要2輸入參數
<datasources>
類型的<akaaurdt:ArrayOfString>
<start date>
類型的<xsd:string>
<akaaurdt:ArrayOfString>
定義如下。
<complexType name="ArrayOfString">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
</restriction>
</complexContent>
</complexType>
肥皂UI請求XML是如下
<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:bil="https://control.akamai.com/BillingReports.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Header/>
<soapenv:Body>
<bil:getUsageReport soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<datasources xsi:type="bil:ArrayOfString" soapenc:arrayType="xsd:string[]"/>
<startDate xsi:type="xsd:string">?</startDate>
</bil:getUsageReport>
</soapenv:Body>
</soapenv:Envelope>
當我點擊通過在請求給予一個日期來看,這是響應
<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>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>akaaurdt:ApplicationError:ApplicationError:(?? No Data for Given Start Date. Please resubmit with a more recent date)</faultstring>
<detail>
<ns1:exceptionName xmlns:ns1="http://xml.apache.org/axis/">com.akamai.aws.util.AWSFault</ns1:exceptionName>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">qa-portal-ws01.qaextranet.akamai.com</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
我如何在此請求xml中指定<datasources>
參數以獲得所需的響應?
請幫我這個
-Kiran
感謝的快速反應。我已經指定了實際的日期。但是文檔中提到該API有兩個輸入參數,命令爲''。但我無法給出其他輸入,即''。我需要 –
這樣的幫助:'item xsi:type =「bil:ArrayOfString」>- jdbc/resourceName
- jdbc/resourceName
' –
@Cristian ..以下哪項是正確的..請幫助我 \t \t 1-FO0A7 datasources> 20110110 bil:getUsageReport> –