• navneet damani
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hello Friends,

 

We are trying to call a web service which is residing in SAP. To do this we have created an Apex Class using 'Generate from WSDL' and trying to call it from Apex Triggers using following code. However, this is not working.

------------------------------------------------------------------------------------

trigger Oppurtunitycreate on Opportunity (after update) {

    SAPWS.binding BI = new SAPWS.binding();
    BI.ZasEsTest();
   
   System.debug('Price before inserting new book'); 
}

------------------------------------------------------------------------------------

Could you please suggest if this is correct? Or please suggest us the possible ways to do this integration.

 

If someone can share a sample code, that would be of great help!

 

Best regards,

Navneet.

Hello Friends,

 

We are trying to call a web service which is residing in SAP. To do this we have created an Apex Class using 'Generate from WSDL' and trying to call it from Apex Triggers using following code. However, this is not working.

------------------------------------------------------------------------------------

trigger Oppurtunitycreate on Opportunity (after update) {

    SAPWS.binding BI = new SAPWS.binding();
    BI.ZasEsTest();
   
   System.debug('Price before inserting new book'); 
}

------------------------------------------------------------------------------------

Could you please suggest if this is correct? Or please suggest us the possible ways to do this integration.

 

If someone can share a sample code, that would be of great help!

 

Best regards,

Navneet.