‎2012 Oct 04 7:14 PM
Hi,
For one of my client, We need to call an external web service from ABAP program. So I was trying to create a consumer proxy using the SE80 by passing the URL that was provided by the external service. But at the end I get this error message "Exception occurred in communication framework:Error in HTTP Framework:500Internal Server Error < URL>"
Are there any prerequiste that I should check before creating consumer proxy?
If so please list down the steps that I need to do.
Really appreciate the help and inputs.
Thanks,
Srikanth
‎2012 Oct 04 9:57 PM
Hi,
is it wide accessible web service? If yes, then could you provide some more information (for example link)? I'm no web service expert, but I could try to play with it in free time
Best Regards
Marcin Cholewczuk
‎2012 Oct 04 10:06 PM
Hi Marcin,
It is not a wide accessiable web service it is an internal web service that was created.
Probablu you can try with http://www.webservicex.net/stockquote.asmx?WSDL.
Let me know if you find anything.
Thanks,
Srikanth
‎2012 Oct 05 10:35 PM
Hi Srikanth,
By me everything works fine. In general worked along steps mentioned in documentation
http://help.sap.com/saphelp_nw70ehp3/helpdata/en/47/9bcd5b65a9484be10000000a421138/frameset.htm
I Part
1. I've launched transaction SPROXY and pressed button "Create MDR Proxy
2. As object type I've choosen Service Consumer
3. Es a generation source: external WSDL
4. WSDL Source: URL
5. URL http://www.webservicex.net/stockquote.asmx?WSDL
6. Transport: Local object + Prefix: Z
7. After this process out of 3 entries from dialog box, I've choosen first one (StocQuoteSoap)
8. Last step is to save object and activate it
II Part
1. I've executed Transaction SOAMANAGER -> web browser is started
2. I've choosen from first tab (Service Administration) link Web Service Configuration
3. I gave search patter, pressed Go button, choose my proxy class and pressed Apply selection button
4. Now from 3 new tabs I've choosen Configuration, pressed button Create and filled infos as on screen (please note checkbox "Logical Port is Default")
5. After that I've pressed button Apply Settings and after that Save button
III Part
After that I've created Report to test all this stuff and it worked
DATA: lr_proxy TYPE REF TO ZCO_STOCK_QUOTE_SOAP,
ls_inp TYPE ZGET_QUOTE_SOAP_IN,
ls_out TYPE ZGET_QUOTE_SOAP_OUT.
CREATE OBJECT lr_proxy.
ls_inp-symbol = 'STR'.
CALL METHOD lr_proxy->get_quote EXPORTING input = ls_inp
IMPORTING output = ls_out.
WRITE ls_out-GET_QUOTE_RESULT.
I'm using quite fresh system so I didn't do any other settings like ICF or something like that. I hope this helped you.
Best Regards
Marcin Cholewczuk
‎2012 Oct 08 4:42 PM
Thank you Marcin, would you mind trying with this link
http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
I was able to get it created with stock quote, but when I try with currency convertor it is throwing me an error.
Please try with this and let me know your results. That will help me out if there is something wrong with my user id and logon.
Once again thank you for trying.
Thanks,
Srikanth
‎2012 Oct 09 6:37 PM
Hi Srikanth,
This one is working fine too. I've an impression that this is rather problem with your network like tide security settings than with SAP. But that's just a speculation.
Best Regards
Marcin Cholewczuk