on 05-05-2013 4:21 PM
Hi everyone I'm new in SAP ABAP CRM is how I try to consume a web service in external SAP CRM web client I create the proxy client and integrated web service in SAP but I'm blocked on how to use it in a UI web client please there's someone there can help me to get an example here is my last step
very urgently PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
you can try my link
Regards
Animesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akrem,
I would provide the solution step by step.
Beforehand requirement :
1. Proxy class
2. Port created for the proxy with refernce to end point ( in LPCONFIG/SOAMANAGER )
Now comes the implementation part :
it needs 3 part .
1. Declare the class instance
2. declare port ( not required if created as default)
3. fill input structure
4. call the method required.
Example :
1.DATA: token TYPE REF TO zco_token_service_soap . " Proxy class
DATA: output TYPE zstssoap_out . " structure of output for the method
DATA: input TYPE zstssoap_in . "structure of input for the method
DATA : sys_fault TYPE REF TO cx_ai_system_fault, // for error handling
appl_fault TYPE REF TO cx_ai_application_fault.
2. TRY.
CREATE OBJECT token
* EXPORTING
* logical_port_name = "ZCO_TOKEN_SERVICE_SOAP_LP "dafault
.
CATCH cx_ai_system_fault .
ENDTRY.
3. fill the input structure /// normal ABAP coding
4.
TRY.
CALL METHOD token->sts
EXPORTING
input = input
IMPORTING
output = output.
CATCH cx_ai_system_fault INTO sys_fault .
CATCH cx_ai_application_fault INTO appl_fault .
ENDTRY.
==== then process the "output" structure with normal ABAP
**** Please reward points if becomes helpful( mark correct answer ) --------------------------------------------------------
Hi Akrem,
I would provide the solution step by step.
Beforehand requirement :
1. Proxy class
2. Port created for the proxy with refernce to end point ( in LPCONFIG/SOAMANAGER )
Now comes the implementation part :
it needs 3 part .
1. Declare the class instance
2. declare port ( not required if created as default)
3. fill input structure
4. call the method required.
Example :
1.DATA: token TYPE REF TO zco_token_service_soap . " Proxy class
DATA: output TYPE zstssoap_out . " structure of output for the method
DATA: input TYPE zstssoap_in . "structure of input for the method
DATA : sys_fault TYPE REF TO cx_ai_system_fault, // for error handling
appl_fault TYPE REF TO cx_ai_application_fault.
2. TRY.
CREATE OBJECT token
* EXPORTING
* logical_port_name = "ZCO_TOKEN_SERVICE_SOAP_LP "dafault
.
CATCH cx_ai_system_fault .
ENDTRY.
3. fill the input structure /// normal ABAP coding
4.
TRY.
CALL METHOD token->sts
EXPORTING
input = input
IMPORTING
output = output.
CATCH cx_ai_system_fault INTO sys_fault .
CATCH cx_ai_application_fault INTO appl_fault .
ENDTRY.
==== then process the "output" structure with normal ABAP
**** Please reward points if becomes helpful( mark correct answer ) --------------------------------------------------------
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.