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

"Unspecified namespace for type Contacts" from getItems in GroupWise

Expand Messages
  • macleajb
    Hi Folks, Using latest SOAP::Lite I have been fighting with making Perl work against the Novell GroupWise SOAP interface. I have managed to login/out and make
    Message 1 of 2 , Aug 18, 2006
    View Source
    • 0 Attachment
      Hi Folks,

      Using latest SOAP::Lite I have been fighting with making Perl work
      against the Novell GroupWise SOAP interface. I have managed to
      login/out and make the getAddressBookList call ok. When I then make
      the getItems call, SOAP::Lite stops upon return with :

      Unspecified namespace for type 'Contact'.

      The retuned XML that I need parsed starts with:

      <getItemsResponse xmlns:namesp3="GroupwiseService"><items><item
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Contact">

      The data returned appears to be what I want, but SOAP::Lite doesn't
      like it :). Is there a way to convince SOAP::Lite that the information
      is ok so that it does not raise the fault above?

      thanks,
      JES
    • macleajb
      ... xsi:type= Contact ... I noticed that if I force Lite.pm to not acknowledge xsi:type, I can ... +++ Lite.pm 2006-08-20 15:29:34.000000000 -0300 @@ -1801,6
      Message 2 of 2 , Aug 20, 2006
      View Source
      • 0 Attachment
        --- In soaplite@yahoogroups.com, "macleajb" <macleajb@...> wrote:
        >
        > Hi Folks,
        >
        > Using latest SOAP::Lite I have been fighting with making Perl work
        > against the Novell GroupWise SOAP interface. I have managed to
        > login/out and make the getAddressBookList call ok. When I then make
        > the getItems call, SOAP::Lite stops upon return with :
        >
        > Unspecified namespace for type 'Contact'.
        >
        > The retuned XML that I need parsed starts with:
        >
        > <getItemsResponse xmlns:namesp3="GroupwiseService"><items><item
        > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:type="Contact">
        >
        > The data returned appears to be what I want, but SOAP::Lite doesn't
        > like it :). Is there a way to convince SOAP::Lite that the information
        > is ok so that it does not raise the fault above?

        I noticed that if I force Lite.pm to not acknowledge xsi:type, I can
        carry on :

        --- Lite.dist.pm 2006-08-20 15:44:23.000000000 -0300
        +++ Lite.pm 2006-08-20 15:29:34.000000000 -0300
        @@ -1801,6 +1801,8 @@
        my $ref = shift;
        my($name, $attrs, $children, $value) = @$ref;

        + delete $attrs->{"xsi:type"} if defined $attrs->{"xsi:type"};
        +
        $ref->[6] = $attrs = {%$attrs}; # make a copy for long attributes

        use vars qw(%uris);

        How would I do this without touching the original code :) ?
      Your message has been successfully submitted and would be delivered to recipients shortly.