2012-06-25 6 views
1

SOAP UI에서 생성 한 SOAP 요청이 있는데 문자열과 int를 지정하는 방법을 보았습니다. 그러나 testAddress 필드의 배열을 입력하는 방법을 모르겠습니다. 여기 wsdl이 있으며 아래에는 비누 요청이 있습니다. 어떻게 하나의 이메일 주소 또는 두 가지를 말하는지 어떤 생각. [email protected][email protected] 감사!SOAP 요청에 배열 입력

http://api.stormpost.datranmedia.com/services/SoapRequestProcessor?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:ser="http://services.web.stormpost.skylist.com"> 
    <soapenv:Header> 
     <authInfo xsi:type="soap:authentication" xmlns:soap="http://skylist.com/services/SoapRequestProcessor"> 
     <!--You may enter the following 2 items in any order--> 
     <username xsi:type="xsd:string">username</username> 
     <password xsi:type="xsd:string">password</password> 
     </authInfo> 
    </soapenv:Header> 
    <soapenv:Body> 
     <ser:sendTestMessage soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
     <mailingID xsi:type="xsd:int">#trim(mailingID)#</mailingID> 
     <testAddresses xsi:type="soap:ArrayOf_soapenc_string" soapenc:arrayType="soapenc:string[]" xmlns:soap="http://skylist.com/services/SoapRequestProcessor" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/> 
     <part xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">html</part> 
     </ser:sendTestMessage> 
    </soapenv:Body> 
</soapenv:Envelope> 

답변

0
<ser:sendTestMessage soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
     <cfoutput> <mailingID xsi:type="xsd:int">#trim(mailingID)#</mailingID></cfoutput> 
     <testAddresses xsi:type="soap:ArrayOf_soapenc_string" soapenc:arrayType="soapenc:string[1]" xmlns:soap="http://skylist.com/services/SoapRequestProcessor" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> 
      <testAddresses xsi:type="xsd:string">[email protected]</testAddresses> 
     </testAddresses> 
     <part xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">HTML</part> 
     </ser:sendTestMessage>