• sraghu
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
This has reference to the SFDC DEMO; http://adnsandbox.com/media/soasoa/;
Where in , Upon Click of a Button(Integrate Account Button), Apex code written on this event invokes WebService that fetches additional data from Oracle and popultes the SFDC screen.
 
How do we invoke such externa webservice from within SFDC ?
 
Can you please share APEX code behind that enables this functionality ? Any code snippet will useful.
 
Thanking you in advance for the help.
 
Cheers,
 
SrinathR
  • November 09, 2007
  • Like
  • 0
I am trying to call my .NET web service from Apex code and would like 
some help and advise (I a newbie ;)
I added my web service URL in
the
Remote Site Settings area and generated an Apex Code object from my WSDL.
I created an S-Control to call my Apex Code and it fails. When I copied the Apex
code into Apex Log Debug window and Execute, I receive the follow error. Any clues?
I suspect my WSDL or generated an Apex Code object from my WSDL is at fault.
Any links or example references (beyond Hello World) would be great too!


Chris




13:39:21 DEBUG - Executing: SymphonieApiWs.SymphonieWsSoap api = new SymphonieApiWs.SymphonieWsSoap();
SymphonieApiWs.LoginResult loginInfo = api.Login('customer', 'login', 'pw');
13:39:21 DEBUG - Executing: SymphonieApiWs.SymphonieWsSoap api = new SymphonieApiWs.SymphonieWsSoap();
SymphonieApiWs.LoginResult loginInfo = api.Login('customer', 'login', 'pw');
13:39:23 INFO  - 20070830203922.736:Class.SymphonieApiWs.SymphonieWsSoap.Login: line 296, column 13: 
Created Web Service callout to endpoint: https://symphonie.goolara.net/Api/SymphonieApiWs.asmx 20070830203922.736:Class.SymphonieApiWs.SymphonieWsSoap.Login: line 296, column 13:
Sending callout request System.CalloutException: Web service callout failed: Unauthorized or inactive endpoint, please
check Setup->Security->Remote site settings.
endpoint = https://symphonie.goolara.net/Api/SymphonieApiWs.asmx Class.SymphonieApiWs.SymphonieWsSoap.Login: line 296, column 13 AnonymousBlock: line 2, column 40
13:39:23 INFO - 20070830203922.736:Class.SymphonieApiWs.SymphonieWsSoap.Login: line 296, column 13:
Created Web Service callout to endpoint:
https://symphonie.goolara.net/Api/SymphonieApiWs.asmx 20070830203922.736:Class.SymphonieApiWs.SymphonieWsSoap.
Login: line 296, column 13: Sending callout request System.CalloutException: Web service callout failed:
Unauthorized or inactive endpoint, please check Setup->Security->Remote site settings.
endpoint = https://symphonie.goolara.net/Api/SymphonieApiWs.asmx Class.SymphonieApiWs.SymphonieWsSoap.Login:
line 296, column 13 AnonymousBlock: line 2, column 40
13:39:23 ERROR - Evaluation error: System.CalloutException: Web service callout failed: 
Unauthorized or inactive endpoint, please check Setup->Security->Remote site settings.
endpoint = https://symphonie.goolara.net/Api/SymphonieApiWs.asmx
13:39:23 ERROR - Evaluation error: System.CalloutException: Web service callout failed: Unauthorized
or inactive endpoint, please check Setup->Security->Remote site settings.
endpoint = https://symphonie.goolara.net/Api/SymphonieApiWs.asmx
13:39:23 ERROR - Evaluation error: Class.SymphonieApiWs.SymphonieWsSoap.Login: line 296, column 13
   AnonymousBlock: line 2, column 40
  • August 30, 2007
  • Like
  • 0