Problem in setting the namespace prefixes

"sreenivasamurthy krishnappa" <[email protected]>
Newsgroups gmane.text.xml.soap.user
Message-ID <[email protected]>
HI Folks,

We have to interface with a webservice server , and we started using the 
apache soap tool kit for it.
the problem is that we need to use a couple of namespaces for the method 
invocation.
We are using RPC kind of invocation.

The problem is that the in the operation tag we have the name space defined 
as
xmlns:ns1="THEURL"
but the prefix ns1 is not getting added to all the tags in the SOAP message 
, basically the parameter tag and its contents.

ex:
Itis coming as

<createTicket xmlns:ns1="THEURL">
<createTicketInput>
    <elementa>value</elementa>
    <elementb>value</elementb>
</createTicketInput>
</createTicket>

In this case the operation createTicket and createTicketInput is not 
recognized by the server , as it need them to belong to ns1 namespace.

not I want the SOAP message to be generated as

<ns1:createTicket xmlns:ns1="THEURL">
<ns1:createTicketInput>
    <ns1:elementa>value</ns1:elementa>
    <ns1:elementb>value</ns1:elementb>
</ns1:createTicketInput>
</ns1:createTicket>

Couple of my co developers have jumped into modifying the Apache soap source 
code to achieve this. Which is very tedious to understand and change.

This looks to me like a basic requirement , Is there any better, easy and 
straight forward way of achieving this???

please help, ASAP

Sreeni

_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/index.php?ptnr=hmltag 
Only on www.shaadi.com. Register now!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.