4670Re: [soaplite] namespace/nesting problem: The Answer
- May 12 10:33 AMOk, I was mistaken - there is not an article on majordojo on how to
modify the root element of the SOAP Body.
Here is the man page for register_ns:
A question I have is why is overriding the Body necessary?
Chris Nielsen wrote:
> Hi Byrne,
> If you have a link to the howto, I'll be happy to check it out, but I
> couldn't find it on majordojo.com. I searched for "howto", There was one
> for nesting but the body tag is simple, not what I'm looking for. BTW,
> there is a link to an article "SOAP::Lite Client HOWTO" (soapenv.org) but
> that brings up a "this page parked free, courtesy of godaddy.com".
> Googling for "SOAP::Lite Client HOWTO" didn't get anything. Searching
> majordojo for "register_ns" responded 'no pages found'...
> Anyway, I'll be glad to check anything you think relevant, and if
> something I'm doing is screwy please let me know.
> On Mon, 9 May 2005, Byrne Reese wrote:
> > Check out http://www.majordojo.com/soaplite/ which contains a HOWTO on
> > overriding the SOAP Body of a request message.
> > Chris Nielsen wrote:
> > >
> > > Thanks Byrne for the response.
> > >
> > > I'm not sure if I'm understanding correctly, but it's the <Body>
> > > tag that needs to change, not the envelope. And from the only docs
> I found
> > > (the single paragraph on the cpan page) it looks like it's the
> > > that is modified by register_ns, not the body tag. Apologies if I'm
> > > missing something fundamental. It could be I'm not doing this
> > > but what I did was add something like:
> > >
> > > $soap->serializer->register_ns('xmlns:NS2','urn:SInfotype');
> > >
> > > I don't see the the body tag change as a result. What I do see is a
> > > change
> > > change in the soap:Envelope tag,
> > >
> > > If anyone can post or refer to an example where the body tag looks
> > > the example below (with the NS def), and the NS1 and NS2 sections are
> > > parallel inside the body, or have other ideas, I'll be happy to try
> > > that.
> > > I just haven't seen any way to meet the requirement without
> writing the
> > > xml manually.
> > >
> > > Thanks,
> > > C
> Christopher Nielsen chris@... http://ZORINco.com
> Electronic Products - Consulting - Hosting
> C O N T R O L Y O U R W O R L D
> *Yahoo! Groups Links*
> * To visit your group on the web, go to:
> * To unsubscribe from this group, send an email to:
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
- << Previous post in topic Next post in topic >>