cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice Proxy Object

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi!

I think the soapAction is defined with "CALL METHOD client_proxy->WS_ZWMHISTORIE".

I use the same code in both systems.

Regards

Chris