+ Start a Discussion
VornoVorno 

Apex callout run from IDE doesn't give SOAP debug

Hi all,

 

I'm trying to build in apex code that calls out to an external web service, however I'm finding a lot of issues at each step, and am currently struggling to get past the current error.

 

Current error is:

 

System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element http://schemas.datacontract.org/2004/07/National.NonTraded.ReturnCalculator.Data=Error

Now this is all well and good, however I'm unable to get ahold of the SOAP request and response made/received from the WebServiceCallout class (defined in the classes build by WSDL2Apex).

 

I've read up that running the class/methods from Execute Anonymous within the Force IDE should give me this output - however I can't seem to get anything more than:

 

20090604033817.994:Class.PricingCentreReturnCalculator.BasicHttpBinding_IClientCentreService.DoRWACalculation: line 109, column 13: Sending callout request
20090604033817.994:Class.PricingCentreReturnCalculator.BasicHttpBinding_IClientCentreService.DoRWACalculation: line 109, column 13: Reading callout response

 

First question is, how can I enable the SOAP message output/debug, either in IDE or otherwise?

Second question is, given the limited knowledge of Web Services, is there any indication from the error this is more an Apex/code fault, a WSDL fault, or just the Web Service not behaving in a predictable fashion?

 

Any help much appreciated.

 

e r i c.ax249e r i c.ax249

Everyone who reaches this thread with the same question, please promote this:  http://ideas.salesforce.com/article/show/10098116