function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
swamyswamy 

INTEGRATION doubt on SOAP logic.....

Hi ..This is swamy....iam on integration part now.....i wrote one logic for calling external services...it is executed successfully...but am not able to see the output....i.e., when i call the external service and changing the  data...it is not execured correctly...what is the problem am not getting...could you guys check out my Soap logic......in this is any methods are missing or data mapping is incorrect ...what is the exact problem..am not getting...

 

string b = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'+
'<soap:Body><Case xmlns="http://183.82.182.110:6500/cases">'+
'<Cases><casenumber>'+casenumber+'</casenumber>'+
'<status>'+status+'</status><type1>'+type1+'</type1></Cases>'+
'</Case></soap:Body></soap:Envelope>';
req.setBody(b);

Cory CowgillCory Cowgill

Please provide some more details.

 

1. Did you add the remote site to your allowed Remote Sites in Setup? (183.82.182.110)

2. What contest are you executing your callout in? You can't do this in a Trigger. It has to be in a controller, furture, scheduled, or batch apex.

3. Are you adding System.debug() statements to your code? Use System.debug() in your Apex Code to output the response from your WS API Call and post it to the question so folks can see the issue.

swamyswamy

yaa..am adding the remote site settings...in ruby one object is there named as "cases"..in that one record is there...iam updating that record from salesforce...For this i wrote the Soap method...if you are able toclear my doubt...am sending the code to your prsonal mail i.d........send mail to:rnswamy229@gmail.com