Import mapping from remote webservice return empty

1
Hi all I created a Consumed Web Services pointing to an WSDL on a remote machine. My microflow, using a “Call Web Service” action, consumes a specific operation of that web service, returning the following response: <?xml version="1.0" encoding="UTF-8"?><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><ns1:SFC_Config_GetSFCWorkplaceList_20144Response soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://wrapper.soap.aplusb.com"><SFC_Config_GetSFCWorkplaceList_20144Return soapenc:arrayType="ns2:SFCWorkplace_20144[4]" xsi:type="soapenc:Array" xmlns:ns2="SFC" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><SFC_Config_GetSFCWorkplaceList_20144Return xsi:type="ns2:SFCWorkplace_20144"><SFCWorkgroupID xsi:type="xsd:string" xsi:nil="true"/><SFCWorkgroupItemUID xsi:type="xsd:string" xsi:nil="true"/><desc xsi:type="xsd:string">FabMach_Puma2 description</desc><itemID xsi:type="xsd:string">FabMach_Puma2</itemID><itemUID xsi:type="xsd:string">gbBAAIL45sHXGA</itemUID><name xsi:type="xsd:string">FabMach_Puma2</name></SFC_Config_GetSFCWorkplaceList_20144Return><SFC_Config_GetSFCWorkplaceList_20144Return xsi:type="ns2:SFCWorkplace_20144"><SFCWorkgroupID xsi:type="xsd:string" xsi:nil="true"/><SFCWorkgroupItemUID xsi:type="xsd:string" xsi:nil="true"/><desc xsi:type="xsd:string">FabMach_Puma1 description</desc><itemID xsi:type="xsd:string">FabMach_Puma1</itemID><itemUID xsi:type="xsd:string">Q$HAAI6X5sHXGA</itemUID><name xsi:type="xsd:string">FabMach_Puma1</name></SFC_Config_GetSFCWorkplaceList_20144Return><SFC_Config_GetSFCWorkplaceList_20144Return xsi:type="ns2:SFCWorkplace_20144"><SFCWorkgroupID xsi:type="xsd:string" xsi:nil="true"/><SFCWorkgroupItemUID xsi:type="xsd:string" xsi:nil="true"/><desc xsi:type="xsd:string">FabMach_Ultrix2 description</desc><itemID xsi:type="xsd:string">FabMach_Ultrix2</itemID><itemUID xsi:type="xsd:string">hIIAAIL45sHXGA</itemUID><name xsi:type="xsd:string">FabMach_Ultrix2</name></SFC_Config_GetSFCWorkplaceList_20144Return><SFC_Config_GetSFCWorkplaceList_20144Return xsi:type="ns2:SFCWorkplace_20144"><SFCWorkgroupID xsi:type="xsd:string" xsi:nil="true"/><SFCWorkgroupItemUID xsi:type="xsd:string" xsi:nil="true"/><desc xsi:type="xsd:string">FabMach_Ultrix1 description</desc><itemID xsi:type="xsd:string">FabMach_Ultrix1</itemID><itemUID xsi:type="xsd:string">BYCAAIL45sHXGA</itemUID><name xsi:type="xsd:string">FabMach_Ultrix1</name></SFC_Config_GetSFCWorkplaceList_20144Return></SFC_Config_GetSFCWorkplaceList_20144Return></ns1:SFC_Config_GetSFCWorkplaceList_20144Response></soapenv:Body></soapenv:Envelope> I then created an import mapping as follow: Executing the microflow, I can see the response inside latestHttpResponse/Content but the SOAP Response output variable is empty, moreover I don’t see any error in the console.   Thanks
asked
3 answers
0

Couple of things to try:

  • did you raise the loglevels for webservie calls so you could see in your console what is going on?
  • Postpone the import action. So do not use import mapping but save the response as string so you can inspect it.You can always to the import later based on the string.
  • Is the response indeed a list of SFCWorkplace? Because you say that the variable is empty but the response is a list of objects.

 

Regards,

Ronald

 

answered
0

Thanks for the inputs Ronald.

  • I set log level to Trace, everything seems ok to me

     
  • Not sure I got your point. Here is what I’ve tried and the result is the same.
  • M fault, I wrote empty but it’s a list of SFC_Workplaces of size 0

 

Thanks,

Davide

answered
0

Should the receiving entity not look like this instead:

Since in the xml there is no ‘item’ anywhere. It is :

<SFC_...Response>

     <SFC_...Return ...”Array”>

         <SFC_...Return>          4 times
                6 attributes
         </SFC

     </SFC

</SFC

answered