cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming an External Web Service in SAP CRM !!! ??

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Thank you very much, but the problem that the example of SAP ERP but I use sap crm web client UI framework !!!!

Former Member
0 Kudos

Hi Akrem,

         what i can think is the process of creating the proxy class is same in any system late you have to use that class in CRM UI Framework.

Regards

Animesh

Former Member
0 Kudos

yes yes just integration with the view instead of the interface forms of ERP

Former Member
0 Kudos

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 ) --------------------------------------------------------

Answers (1)

Answers (1)

Former Member
0 Kudos

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 ) --------------------------------------------------------