logo       

Problem in setting the namespace prefixes: msg#00081

Subject: Problem in setting the namespace prefixes
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!




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

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe