Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

soaplite · SOAP::Lite for Perl (soaplite.com)

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 1205
  • Category: Protocols
  • Founded: Jan 28, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
How to change default namespace and name   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages | View Threaded Sort by Date v  
#5 From: Paul Kulchenko <paulclinger@...>
Date: Tue Feb 6, 2001 3:26 pm
Subject: Re: How to change default namespace and name
paulclinger@...
Send Email Send Email
 
Hi, allierogers@...!

Yes, you may return SOAP::Data object exactly as you do on client
side and it'll affect name (and namespace) of created element. For
example:

sub something_on_server_side {
return SOAP::Data->name(myresult => 25);
}

will make element myresult. Using ->uri() method or ->attr() in
general you can change namespace of this element.

Details about fault could be modified in similar way:

sub something_on_server_side {
my $self = shift;
die SOAP::Data->name(subdetails => 'Where are parameters?')
unless @_;
}

should generate object as Faul detail. Hope it helps.

Best wishes, Paul.

P.S. Please, address your questions directly to me, because purpose
of this list is discussion of future versions, announces of releases
and ongoing development.

--- allierogers@... wrote:
> Using SOAP::Lite as a server, is there any easy way to hook into
> the
> XML generation and change the default namespace and name
> generation.
> Right now, they're controlled by the gen_ns() and gen_name()
> functions and result in constantly changing namespaces and names
> like "namesp1", "namesp2", etc., and "c-gensym1", "c-gensym2", etc.
>
> I would like some control over the namespace and symbol names so
> that
> I can create more sensible ones. But I don't see how (or see
> examples of how) to modify this as a server. Using SOAP::Data, I
> can
> see how parameters can be named from the client side, but this does
>
> not work at the server end. And I see no way of modifying the
> namespace.
>
> On the server, once you call "handle()", there seem to be no other
> hooks.
>
> Ideas or some sample server code?
>
>
>
> ------------------------ Yahoo! Groups Sponsor
>
> To unsubscribe from this group, send an email to:
> soaplite-unsubscribe@yahoogroups.com
>
>
>


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/



#2 From: allierogers@...
Date: Tue Feb 6, 2001 3:03 pm
Subject: How to change default namespace and name
allierogers@...
Send Email Send Email
 
Using SOAP::Lite as a server, is there any easy way to hook into the
XML generation and change the default namespace and name generation.
Right now, they're controlled by the gen_ns() and gen_name()
functions and result in constantly changing namespaces and names
like "namesp1", "namesp2", etc., and "c-gensym1", "c-gensym2", etc.

I would like some control over the namespace and symbol names so that
I can create more sensible ones. But I don't see how (or see
examples of how) to modify this as a server. Using SOAP::Data, I can
see how parameters can be named from the client side, but this does
not work at the server end. And I see no way of modifying the
namespace.

On the server, once you call "handle()", there seem to be no other
hooks.

Ideas or some sample server code?





 
< Prev Topic  |  Next Topic >
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help