Thanks for the reply..
I could find out the solution.
I have tweaked the java mapping program.
As per the doc: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/802f8d03-9282-2d10-52b4-f9446e077099?overridelayout=true
I have added the necessary namespace in the java code to create SOAP envelope and
in addition to the code mentioned in the link
I have added below mentioned code:
--------------------------------------------------------
try
{
.
.
Newpaload = c.substring(len+1);//existing code.
/*New code to be added */
String Newpayload1 = "";
Newpayload1 = Newpayload.replaceAll("<ns0:sObjects>", "<ns0:sObjects xsi:type=\"Account\" xmlns=\"urn:enterprise.soap.sforce.com\">");
/*Remaining code same */
.
.
-------------------------------------------------------
Its working fine and I am able to get the response back from Salesforce.
If the response need to be mapped, you may have to add an XSLT mapping to remove soap envelope and extract only the soap body coming from salesforce and then map the output to any required graphical mapping to store the response Id or data from Salesforce.
XSLT code for anyone who is trying:
---------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="soapenv:*">
<xsl:apply-templates select="@* | node()"/>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------------------
Praveen.