in reply to Generating multiref tags from SOAP::Lite

Next time you might want to also search the Soap::Lite documentation. If you did, you might have found the following lines of advise:

multirefinplace() Shortcut for serializer->multirefinplace(). If true, the serialize +r will put values for multireferences in the first occurrence of the referenc +e. Otherwise it will be encoded as top independent element, right aft +er method element inside Body. Default value is false.

The meaning of the above is, that you have to set multirefinplace() to true, to make SOAP::Lite add the multireferences

/oliver/

Replies are listed 'Best First'.
Re: Re: Generating multiref tags from SOAP::Lite
by Amsterdamned (Novice) on Jan 28, 2004 at 19:17 UTC
    Hi Oliver -

    I'd found multirefinplace() but couldn't get it to work. The following code produces the same XML with or without multirefinplace()

    use SOAP::Lite +trace => qw( debug ); my $param = SOAP::Data ->type('myType') ->name('in0' => \SOAP::Data->value( SOAP::Data->new(name => 'var1', type => 'xsd:boolean', value => +"true" ), SOAP::Data->new(name => 'var3', type => 'xsd:string', value => " +hello" ), )); SOAP::Lite -> service('http://www.xmethods.net/sd/StockQuoteService.wsdl') -> multirefinplace(1) -> getQuote($param);

    - Jon