cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get a response back from an external webservice

Former Member
0 Kudos

Hi ,

We are integrating SAP with JDA.

We received the WSDL document from JDA and using the same we generated the cosumer proxy and created logical ports in SAP.

The webservice call from SAP to JDA works sucessfully, we are able to pass all the parameters from SAP to JDA.

However when we get the response back from JDA, we need to pull in the values from a deep nested structure.

When JDA sends the response back to SAP, at SAP side we see that this deep structure is all empty.

However it returns the status(which is at the header level) and that is a SUCESS.

When we look at the JDA logs we see that it is actually populating values and sending it in the response structure.

below is how we are making the call.

try.

create object testobj

exporting

logical_port_name = 'ZJDAPROMISPORT'.

*Get Protocol Class Using Method GET_PROTOCOL

lo_payload_protocol ?= testobj->get_protocol( if_wsprotocol=>payload ).

lo_payload_protocol->announce_payload_consumption( ).

lo_payload_protocol->set_extended_xml_handling( extended_xml_handling = 'X' ).

*Fill request with to be retrieved data

try.

call method testobj->promise

exporting

input = wa_input

importing

output = wa_output.

Let me know if anybody has come across a similar situation or pulling in values from a deep nested structure.

Should we do any transformation?? or do any extra data handling.

Thanks

Manju

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Are you able to test WS from SOAPUI and getting proper result?

Regards,

Gourav