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

Webservice Proxy Object

Hi!

I want to use an extern Webservice, provided by a webserver in the intranet. First of all: i tried this in to different systems. One of them did it. The other did not.

I create a proxy for the webservice and create a lshort abap programm like this:

Line: -


REPORT zcdi_ws_historie.

DATA sys_exception TYPE REF TO cx_ai_system_fault.

DATA client_proxy TYPE REF TO ZWS4_CO_WS_ZWMHISTORIE_SOAP.

DATA request TYPE zws4_ws_zwmhistorie_soap_in.

DATA response TYPE zws4_ws_zwmhistorie_soap_out.

request-I_FACTOR1 = 2.

request-i_FACTOR2 = 3.

TRY.

CREATE OBJECT client_proxy.

CALL METHOD client_proxy->WS_ZWMHISTORIE

EXPORTING

input = request

IMPORTING

output = response.

WRITE:/ response-WS_ZWMHISTORIE_RESULT.

ENDTRY.

Line: -


By the way. The response is 6. (3*2)

So, when i build this on the first system, it works. On the second i get a short dump with:

"Server did not recognize the value of HTTP Header SOAPAction."

Can anybody help?

Thanks.

Regards Chris

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 20, 2008 at 09:48 AM

    Ur webservice in 2nd case is expecting a soap action which is the operation name to be performed on the webservice. Ur abap code must also include this soap action

    Regards,

    Prateek

    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.