Skip to Content
0
Former Member
May 20, 2008 at 09:37 AM

Webservice Proxy Object

12 Views

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