Steps to Publish Web Service in R/3, Consume Web Service in R/3 and Adobe Flex

...Previous

Enter the URL that was generated from SOAMANAGER Transaction.

 

Once you complete the above steps, activate the generated proxy class.

Create a logical port for the generated proxy class in order to consume the Webservice in the transaction LPCONFIG.

Provide the URL of the WSDL location in the call parameters tab.

 

Creating a simple Report to check the consumption of web service:

The above report will have the following code.

REPORT  ZKAAR_WEB_CONSUME_REPORT.

PARAMETER: ZFROM     TYPE STRING,
           ZTO       
TYPE STRING,
           ZMESSAGE  
TYPE STRING,
           ZSUBJECT  
TYPE STRING.

DATA: ZPROXY       TYPE REF TO ZKAARTECH_CO_ZKAAR_MAIL_WEB_SE,
      ZINPUT       
TYPE ZKAARTECH_ZKAAR_PUBLISH_WEB_S1,
      ZOUTPUT      
TYPE ZKAARTECH_ZKAAR_PUBLISH_WEB_SE,
      ZCONTROLLER  
TYPE PRXCTRLTAB.

TRY.
    
CREATE OBJECT ZPROXY.
  
CATCH CX_AI_SYSTEM_FAULT .
ENDTRY.

ZINPUT-CONTROLLER = ZCONTROLLER.
ZINPUT-
FROM       = ZFROM.
ZINPUT-
TO         = ZTO.
ZINPUT-
MESSAGE    = ZMESSAGE.
ZINPUT-SUBJECT   =  ZSUBJECT.

TRY.

    
CALL METHOD ZPROXY->ZKAAR_PUBLISH_WEB_SERVICE
      
EXPORTING
        
INPUT  = ZINPUT
      
IMPORTING
        
OUTPUT = ZOUTPUT.

  
CATCH CX_AI_SYSTEM_FAULT .
ENDTRY.

IF ZOUTPUT IS INITIAL.

  
WRITE'Message Sent successfully'.

ENDIF.

 

Check whether your mail is being sent in SOST transaction as before. Once SAP BASIS Team configures mail connections in SCOT transaction, all the mails in the Queue will be transferred to the external world.

The above step confirms that Web service is successfully consumed inside R/3.

Click here to continue...

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image