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

3198Re: named arrays of structs

Expand Messages
  • jpeyser
    Dec 2 7:34 AM
      After further study, I see that the difference between the two xml's
      is not the namespace prefixes, but the namespaces themselves. In the
      first xml (generated by Windows SOAP?) all the objects have the same
      prefix (namesp4), thus the same namespace. In the second xml
      (generated by SOAP::Lite), each object is assigned a different
      namespace prefix (with the default namespace of

      If you want all objects to use a certain namespace, use the maptype

      my $soap = SOAP::Lite->new();
      $soap->serializer->maptype->{DataPoint} = 'urn:project4-wrapper';
      $soap->serializer->maptype->{DataArray} = 'urn:project4-wrapper';

      -> uri
      -> proxy

      The namespace assignments will be inserted into the envelope header.


      --- In soaplite@yahoogroups.com, "Peter Sykora" <peter_sykora@g...>
      > Hello,
      > I created a SOAP Server with gSOAP that expects named arrays of
      > structs. Now I want to access this server using a soaplite client.
      > I create a named array of hashes using something like this:
      > SOAP::Data->type('DataArray')->name('DataArray' => \@data_array);
      > It works fine under windows where the resulting SOAP message sent to
      > the server looks something like:
    • Show all 3 messages in this topic