logo       

Adding namespace identifier to Doc/Lit request: msg#00118

php.nusoap.general

Subject: Adding namespace identifier to Doc/Lit request

You created this request in a Doc/Lit sample:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:si="http://soapinterop.org/xsd"; xmlns:nu="http://testuri.org";>
<SOAP-ENV:Body>
<hello xmlns="urn:hellowsdl3">
<name><firstname>Willi</firstname><age>22</age><gender>male</gender></name>
</hello>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

How can I make the same Doc/Lit request but have a namespace identifier prefixed to the elements? So, I want my request to look like this:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:si="http://soapinterop.org/xsd"; xmlns:nu="http://testuri.org";>
<SOAP-ENV:Body>
<fred:hello xmlns:fred="http://www.fredslink.zzz/mynsidenthere";>
<fred:name><fred:firstname>Willi</fred:firstname><fred:age>22</fred:age><fred:gender>male</fred:gender></fred:name>
</fred:hello>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

_________________________________________________________________
Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise