Loading ...
Sorry, an error occurred while loading the content.

4278Re: Root element with child data?

Expand Messages
  • bluesterror
    Dec 29, 2004
    • 0 Attachment
      Thanks, this bit did the trick!

      FWIW I am using SOAP::Lite 0.65-beta2.1.

      -Bob

      --- In soaplite@yahoogroups.com, Gavin Alexander <gc_alexander@y...>
      wrote:
      > There are a couple of things you can try.
      > Redefine the SOAP::Data::set_value method to look
      > something like this.
      >
      > sub SOAP::Data::set_value
      > {
      > $self = UNIVERSAL::isa($_[0] => 'SOAP::Data') ?
      > shift->new : SOAP::Data->new;
      > $self->{_value} = [@_] if ! @{$self->{_value}} and
      > @_;
      > $self;
      > }
      >
      > and use it like this:
      > my $request = SOAP::Data
      > ->name('Query'=>'Foo')
      > ->attr({'xmlns' => 'http://example.com'});
      > $soap->call($request);
    • Show all 3 messages in this topic