cancel
Showing results for 
Search instead for 
Did you mean: 

WebServices Wizard

Ash_ok
Contributor
0 Kudos

Hi !

I am having a strange error.

The following code works, in that it prints the WSDL as an output


DATA : http_client TYPE REF TO if_http_client.

DATA : wf_string TYPE string,
       result TYPE string,
       r_str TYPE string.

DATA : result_tab TYPE TABLE OF string.

wf_string = 'http://www.webservicex.net/BibleWebservice.asmx?WSDL'.

CALL METHOD cl_http_client=>create_by_url
  EXPORTING
    url                = wf_string
    proxy_host         = 'proxy server name'
    proxy_service      = '80'
  IMPORTING
    client             = http_client
  EXCEPTIONS
    argument_not_found = 1
    plugin_not_active  = 2
    internal_error     = 3
    OTHERS             = 4.

CALL METHOD http_client->send
  EXCEPTIONS
    http_communication_failure = 1
    http_invalid_state         = 2.

CALL METHOD http_client->receive
  EXCEPTIONS
    http_communication_failure = 1
    http_invalid_state         = 2
    http_processing_failed     = 3.

CLEAR result .
result = http_client->response->get_cdata( ).

REFRESH result_tab .
SPLIT result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab .

http_client->close( ).

LOOP AT result_tab INTO r_str.
  WRITE:/ r_str .
ENDLOOP .

However, if I try to use the Enterprise Services wizard to create a record for consuming this as a WebService, I get an exception

Exception occurred in communication framework:Error in HTTP Framework:404conn failedhttp://www.webservicex.net/BibleWebservice.asmx?

WSDL

Exception of class CX_SLIB

Could anyone help me in setting up the missing entries to enable me consume this as a WebService ?

TIA.

Cheers,

Ashok.

Edited by: Ashok on Aug 3, 2009 2:31 PM

SAP_BASIS - 701

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

if the wizard is having problem connecting to the WSDL location, you could simply save the WSDL to your local desktop and then use that with the WS client proxy creation wizard

Ash_ok
Contributor
0 Kudos

Hi Durai,

I am really sorry for the prolonged delay.

I have tried your suggestion, but I still get "Not implemented exception" of class CX_SIDL_INTERNAL_ERROR.

Using a URL Destination, I get a "Exception occurred in communication framework:Error in HTTP Framework:404conn failed" exception.

Any ideas ?

Cheers,

Ashok.

Ash_ok
Contributor
0 Kudos

OSS Note 1403271 resolved the problem.