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:=“[URL=“http://schemas.xmlsoap.org/soap/envelope/”]http://schemas.xmlsoap.org/soap/envelope/[/URL]” xmlns:urn=“urn:enterprise.soap.yahoo.com”
xmlns:urn1=“urn:sobject.enterprise.soap.yahoo.com”
xmlns:xsi=“[URL=“http://www.w3.org/2001/XMLSchema-instance”]http://www.w3.org/2001/XMLSchema-instance[/URL]”>
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=“[URL=“http://schemas.xmlsoap.org/soap/envelope/”]http://schemas.xmlsoap.org/soap/envelope/[/URL]” xmlns:SOAP-ENC=“[URL=“http://schemas.xmlsoap.org/soap/encoding/”]http://schemas.xmlsoap.org/soap/encoding/[/URL]
xmlns:xsd=“[URL=“XML Schema”]http://www.w3.org/2001/XMLSchema[/URL]
xmlns:xsi=“[URL=“http://www.w3.org/2001/XMLSchema-instance”]http://www.w3.org/2001/XMLSchema-instance[/URL]”>
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=“[URL=“http://schemas.xmlsoap.org/soap/envelope/”]http://schemas.xmlsoap.org/soap/envelope/[/URL]” xmlns:SOAP-ENC=“[URL=“http://schemas.xmlsoap.org/soap/encoding/”]http://schemas.xmlsoap.org/soap/encoding/[/URL]
xmlns:xsd=“[URL=“XML Schema”]http://www.w3.org/2001/XMLSchema[/URL]
xmlns:xsi=“[URL=“http://www.w3.org/2001/XMLSchema-instance”]http://www.w3.org/2001/XMLSchema-instance[/URL]”>
SOAP-ENV:Body

to:

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

<soapenv::Envelope xmlns:soapenv:=“[URL=“http://schemas.xmlsoap.org/soap/envelope/”]http://schemas.xmlsoap.org/soap/envelope/[/URL]” xmlns:urn=“urn:enterprise.soap.yahoo.com”
xmlns:urn1=“urn:sobject.enterprise.soap.yahoo.com”
xmlns:xsi=“[URL=“http://www.w3.org/2001/XMLSchema-instance”]http://www.w3.org/2001/XMLSchema-instance[/URL]”>
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="