• dhana9
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi,

 

I was trying to do integration from Salesforce with other system. The way the Salesforce generates the SOAP message is as follows:

 

<?xml version="1.0" encoding="UTF-8"?>

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<env:Header />

<env:Body>

<processRequest xmlns="java:credit.sfa.beans">

</processRequest>

</env:Body>

</env:Envelope>

 

Whereas the Other System that I'm integration is expecting SOAP message like as follows:

 

<?xml version="1.0" encoding="UTF-8"?>

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<env:Header />

<env:Body>

<cdt:processRequest>

</cdt:processRequest>

</env:Body>

</env:Envelope>

 

And i'm getting SOAP Fault from the other System Saying (unexpected element processRequest).

I'm not sure whether i can control the SOAP message from Salesforce (to change the SOAP message dynamically) nor I should change the WSDL so that it works in both Salesforce and the other System.

 

Please suggest me.

 

Note: I'm using APEX callout (Synchronous).

 

 

 

  • August 06, 2010
  • Like
  • 0