opensubscriber
   Find in this group all groups
 
Unknown more information…

s : soap@discuss.develop.com 11 May 2006 • 7:23PM -0400

[SOAP] WSDL return values auto-typing?
by Jan Kratochvil

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi,

is there automatic typing of return values according to WSDL for the _server_
side?


Currently if my server method returns:
        return "http://mmscurl/url";
it produces
        <s-gensym3 xsi:type="xsd:anyURI">http://mmscurl/url</s-gensym3>

If I want to conform to the WSDL I have to type
        return SOAP::Data
                ->uri("http://localhost/lookupserver/")->prefix("lookupserver")
                ->type("lookupserver:mmscUrl")->name("mmscUrl")->value("http://mmscurl/url");
to produce the WSDL-compliant
        <lookupserver:mmscUrl xmlns:lookupserver="http://localhost/lookupserver/" xsi:type="lookupserver:mmscUrl">http://mmscurl/url</lookupserver:mmscUrl>

The parameters (passed from the client side) are typed correctly if using
        $soap=SOAP::Lite->service("http://localhost/lookupserver/lookupserver.wsdl");
as the simple code
        print $soap->query("420123456789");
will produce the WSDL-compliant
        <tel xsi:type="typens:Tel">420123456789</tel>

I want to call &service for the server class 'SOAP::Transport::HTTP2::CGI'.



Thanks,
Lace

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.