02-16-2016 3:10 PM
Hi All,
I am having a scenario ABAP Proxy - SOAP integrating sales force with SAP ECC.
I created proxy from the .WSDL i got from sales force and also created logical port in SOAMANAGER.
When I manually trigger my ABAP Proxy I get back the web service response. The result is perfectly correct in SAP ECC under 'Original Response'.
The Response tab shows:
<n0:retrieveBinInfoResponse xmlns:n0="http://tempuri.org/" xmlns:prx="urn:sap.com:proxy:D01:/1SAI/TASEDA60C333A329897E97A:701:2009/02/10" />
And if I call the method in an ABAP program, I am not getting any results. From what I see under Original Response tells me that the job is getting called properly, but I am not able to see any results when trying to call.
Please help me figure out what am I doing wrong.
Thanks in advance,
Karuna
02-16-2016 6:44 PM
Greetings,
Please check the below options.
Happy coding!!!
Cheers
Naavy
02-16-2016 3:22 PM
Well start with sharing some code how you are calling the webservice.
For example did you use try catch to handle errors for the webservice call ?
If yes did you receive an error, if no do that first.
Als you are calling an external webservice, can you ask the other party if they received a correct request ?
You can activate a trace in soamanager (full payload) run your program and then check what has been send really from your program and if anything came back. Maybe that give you a clue.
02-16-2016 3:36 PM
Thank you for your quick reply.
*********************My Code******************************
try.
* instantiate the object reference
if proxy_bin is not bound.
create object proxy_tst
exporting
logical_port_name = 'DEFAULT'.
endif.
* there is one input value for this service call
input-scan = '1932'.
* call the method (web service call) you can use the pattern to generate the code if you wish
call method proxy_tst->retrieve_info
exporting
input = input
importing
output = output.
catch cx_ai_system_fault into exc.
msg = exc->get_text( ).
write:/ msg.
endtry.
******************************************
- I used try..catch, not receiving any errors.
- Did not try activating the trace in SOAMANAGER. Will try that.
Thanks again,
Karuna
02-16-2016 4:13 PM
02-16-2016 6:44 PM
Greetings,
Please check the below options.
Happy coding!!!
Cheers
Naavy
02-16-2016 8:44 PM
Thanks. I did check the user ID. It is using my UID in SOAMANAGER.
Thanks,
Karuna
02-16-2016 8:49 PM
Greetings,
Ok, then try bullet point 3 in the above response, you should be able to crack it.
Happy coding!!!
Cheers
Naavy
02-19-2016 7:42 PM
Hi All,
I was able to fix my issue. I asked the sales force team to revise the .WSDL with the structure for the output. Once i regenerated the PROXY with the new .WSDL everything worked.
Thanks everyone,
Karuna