Hi there

I found a solution to this issue that helps to probe an method that have an
array as input.

Here's the Request that soapUI generates for the method:

<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:urn="urn:calcularIndicadorProcedimiento"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
   <soapenv:Header/>
   <soapenv:Body>
      <urn:calcularIndicadorProcedimiento
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
         <periodos xsi:type="urn:arrayPeriodos"
soapenc:arrayType="urn:periodo[]"/>
         <tipopro xsi:type="xsd:string">Vertimientos</tipopro>
         <tipoind xsi:type="xsd:string">Eficiencia</tipoind>
      </urn:calcularIndicadorProcedimiento>
   </soapenv:Body>
</soapenv:Envelope>

I didn't have a way to specify wich 'periodos' I want to work with. This is
how I solved it:

<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:urn="urn:calcularIndicadorProcedimiento"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
   <soapenv:Header/>
   <soapenv:Body>
      <urn:calcularIndicadorProcedimiento
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
         <periodos xsi:type="urn:arrayPeriodos"
soapenc:arrayType="urn:periodo[]">
           <periodo xsi:type="urn:periodo">
                <fechaInicio xsi:type="xsd:string">2009-10-1</fechaInicio>      
        
                <fechaFin xsi:type="xsd:string">2009-10-31</fechaFin>
           </periodo>   
           <periodo xsi:type="urn:periodo">
                <fechaInicio xsi:type="xsd:string">2009-9-1</fechaInicio>       
        
                <fechaFin xsi:type="xsd:string">2009-9-30</fechaFin>
           </periodo>
        </periodos>
         <tipopro xsi:type="xsd:string">Vertimientos</tipopro>
         <tipoind xsi:type="xsd:string">Eficiencia</tipoind>
      </urn:calcularIndicadorProcedimiento>
   </soapenv:Body>
</soapenv:Envelope>

I hope it can help somebody with the same problem.

Greetings from Colombia


Hi, I have the same issue as the threat author
I know this is an old Threat, but I want to know if it ever was solved....

Anyway, if it's useful, this is my WSDL [1] and this [2] is the request I'm
doing on soapUI. I want to probe the WS sending the array as input.

Thank You

[1] http://pastebin.com/f732ec7c8
[2] http://pastebin.com/fb044c47
-- 
View this message in context: 
http://www.nabble.com/SOAPUI-Complex-Type-Arrays-tp15086103p25961689.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to