11
Views
4
Comments
Solved
Consume WS SOAP - Request not handling variables correctly

Hi,

We're consuming a SOAP WS that receives as an input, a variable of type List of text items.

When we call the service, the log indicates that the SOAP Request is not considering the correct variable type:

<s:Body
<soapenv:Body>
<urn:ZMC_WS_SYNC_CP>
<NIF> </NIF>
<TP_TERCEIRO />     
</urn:ZMC_WS_SYNC_CP>
   </soapenv:Body>

The SOAP Request should be handling somethig like this:

         <TP_TERCEIRO>

           <item>

               <TP_TERCEIRO>K</TP_TERCEIRO>

            </item>

         </TP_TERCEIRO>

     

Any ideas about how to overcome this issue?

Thanks for you support

André



 

Solution

Hi

We used a listAppend to commit the variable binding, and it started to had the expected behaviour. 

Thanks for the support.


Rank: #1986

HI Andre,

SOAP services have all the schema in the WSDL and when you consume the SOAP services through Outsystems or other programming language you need to provide the WSDL and it contains all the input as well as Out parameters 

Outsystems creates all the data types by own we just need to consume those methods. 

Best Regards

Devendra


Hi Devendra,

The variable type i'm referring (TP_Rerceiro) is defined in the WSDL. When we bind the variable to the webservice input parameter, the variable data type is correct. 

However, the SOAP Request does not send the variable type correctly. 

Instead of a variable type <TP_Terceiro> <Item> <TP_Terceiro/></item></TP_Terceiro>, is sending <TP_Terceiro/>, which is not according to the WSDL definition.

Thanks.

Solution

Hi

We used a listAppend to commit the variable binding, and it started to had the expected behaviour. 

Thanks for the support.