on 07-06-2009 10:48 PM
i created a simple webservice and deployed to the j2ee engine. I can test it successfully here:
http://<ServerName>:<Port>/wsnavigator/enterwsdl.html
I then created an abap proxy class from the WSDL. I create a test abap program like this...
REPORT ztest_umewebservice.
DATA: lo_clientproxy TYPE REF TO zumeco_cg_ume_wsvi_document,
lo_sys_exception TYPE REF TO cx_ai_system_fault,
ls_request_addgroup TYPE zumeadd_group_in_doc,
ls_response_addgroup TYPE zumeadd_group_out_doc,
ls_request_addrole TYPE zumeadd_role_in_doc,
ls_response_addrole TYPE zumeadd_role_out_doc,
exception_msg TYPE string.
TRY.
CREATE OBJECT lo_clientproxy
EXPORTING
logical_port_name = 'UME_PORT'.
CATCH cx_ai_system_fault INTO lo_sys_exception.
exception_msg = lo_sys_exception->get_text( ).
WRITE exception_msg.
ENDTRY.
TRY.
ls_request_addgroup-userid = 'USERID'.
ls_request_addgroup-group = 'GROUPNAME'.
CALL METHOD lo_clientproxy->add_group
EXPORTING
input = ls_request_addgroup
IMPORTING
output = ls_response_addgroup.
WRITE ls_response_addgroup-response.
CATCH cx_ai_system_fault INTO lo_sys_exception.
exception_msg = lo_sys_exception->get_text( ).
WRITE exception_msg.
CATCH cx_ai_application_fault .
ENDTRY.
I always get this error:
SOAP:1,007 SRT: Unsupported xstream found: ("HTTP Code 400 : Bad Request")
Edited by: K Ferguson on Jul 6, 2009 11:48 PM
Hi,
1) Check wether this could be due to missing authorizations of the RFC-user (type 'Communication') calling the webservice. The RFC-user itsself may be assigned before to the webservice in the http-service tree (transaction SICF). RFC-User needs (at least) the role SAP_BC_WEBSERVICE
2) Also can you check the following
3) This could be also due to incorrect path definition in the RFC destination.
Thanks,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.