Skip to Content
author's profile photo Former Member
Former Member

consuming a https webservice from 6.20

Hi all,

I am trying to consume a webservice from 6.20 version. I have the WSDL file of the service and I am trying to build a SOAP message out of it.

Then I call the methods in my program to create the client and send the request data.

In the response/receive I am getting a 404 Resource not found, Partnernot reached..

I am unable to troubleshoot this problem. I am unable to find if it is related to the the SOAP message I am building or is it the client creation thats failing?

Interestingly ,IF I use cl_http_cleint create by URL, Iam able to connect to the actual URL of the webservice and could see the data in the response' Hi, there is form to invoke the service'. This is what you see if you go to that url in the browser.




'<?xml version="1.0" encoding="utf-8"?>'


' xmlns:xsd=""'

' xmlns:soap="">'



' xmlns="">'


'<userId0>' user '</userId0>'

'<credential>' password '</credential>'





INTO wf_string.

CLEAR :rlength , txlen .

rlength = STRLEN( wf_string ) .

MOVE: rlength TO txlen .

CALL METHOD cl_http_client=>create


host = ''

service = '443'

scheme = '2'

ssl_id = 'ABC'


client = http_client.

CALL METHOD http_client->request->set_header_field


name = '~request_method'

value = 'GET'.

CALL METHOD http_client->request->set_cdata


data = wf_string

offset = 0

length = rlength.

CALL METHOD http_client->send


http_communication_failure = 1

http_invalid_state = 2.

CALL METHOD http_client->receive


http_communication_failure = 1

http_invalid_state = 2

http_processing_failed = 3.

data fields type tihttpnvp.

CLEAR wf_string1.

wf_string1 = http_client->response->get_cdata( ).


If I just use:

I am able to reach the URL.

Please suggest.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Aug 29, 2007 at 10:52 PM

    Hi KP,

    I suggest you grab a tool like XMLSpy from Altavista (free for 30 days) that let's you build a SOAP message from the WSDL and then send the SOAP request. In this way you can test that the whole web service works as documented in the WSDL and then look to see that your SOAP payload looks the same.

    I must say that the later the WAS version you use the better. 6.20 was pretty rudimentary around this stuff. I have heard that SAP have completely rewritten the SOAP runtime in WAS 7 and it will be released in a service pack.

    You could consider using a standalone WAS 7 as your SOAP handler and call it from your 6.20 backend using RFC?



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 01:57 PM

    Thanks a lot Graham for your suggestion.

    I am also looking into the option of using NetWeaver which is in our landscape act as the middle layer.

    It would be able to call a webservice without any problems and could also connect to the SAP backend 6.20 once set in SLD.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2007 at 06:48 PM

    SOrry, still have a problem.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.