Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error while creating External Web Service using SE80

Former Member
0 Likes
1,269

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

5 REPLIES 5
Read only

marcin_cholewczuk
Active Contributor
0 Likes
1,207

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

Read only

0 Likes
1,207

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

Read only

0 Likes
1,207

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

Read only

0 Likes
1,207

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

Read only

0 Likes
1,207

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