on 05-20-2008 10:37 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.