how to create soap data with the following structure....?

Hi,

how to create soap data with the following structure…?

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

<soapenv::Envelope xmlns:soapenv:=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:urn=“urn:enterprise.soap.yahoo.com”
xmlns:urn1=“urn:sobject.enterprise.soap.yahoo.com”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
soapenv::Body
</soapenv::Body>
</soapenv::Envelope>

My reqmnt is to send the following structure as SOAP Msg to the destination.

while iam using the service wm.public.utils:createSOAPData
iam getting the following structure by default

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

<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/
xmlns:xsd=“http://www.w3.org/2001/XMLSchema
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
SOAP-ENV:Body
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Not too sure if soap:Body tag can be empty.

Sandeep

no probs, i will add the body entry later by using the service addBodyEntry.
I want to modify the structure above before the body entry.
i.e from:

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

<SOAP-ENV:Envelope xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/
xmlns:xsd=“http://www.w3.org/2001/XMLSchema
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
SOAP-ENV:Body

to:

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

<soapenv::Envelope xmlns:soapenv:=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:urn=“urn:enterprise.soap.yahoo.com”
xmlns:urn1=“urn:sobject.enterprise.soap.yahoo.com”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
soapenv::Body

Sharekhan,

You must be having a step to invoke documentToXMLString service in a your code. The service documentToXMLString has an input parameter as nsDecls. Assign urn to this parameter and set value for urn as urn:enterprise.soap.yahoo.com.
This should solve your problem.

~Snehal.

No need,
“SOAP-ENV” it is a prefix name. You can’t change this default for the built-in services.
XML dictates that any prefix can be used so long as it is associated with the correct namespace.
Example:

Code:
<urn:Envelope xmlns:urn="