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

1902serialize a data type

Expand Messages
  • sid69se
    Oct 7, 2002
    • 0 Attachment
      Hi, I am trying to use a datatype "TRUpdate" which is defined at the
      server, I get an error "no deserializer found to deserialize a
      urn:mh:tr:trupdate:namesp2:c-gensym8" what does this error mean.

      Here is the code:-

      Any ideas ?????????

      #!/pub/bin/perl -w

      BEGIN{
      unshift(@INC,'/pub/des/public_html/mhsoap/SOAP-Lite-0.55/lib');
      }

      # use strict;
      use SOAP::Lite +trace => all;

      my $password = "<a_valid_password>";

      my @parameters = (
      SOAP::Data->name("systemType" => "CLEARQUEST"),
      SOAP::Data->name("systemId" => "CLEARQUEST_LMC"),
      SOAP::Data->name("userid" => "auser"),
      SOAP::Data->name("password" => "$password"),
      SOAP::Data->name("createStatus" => "Private"),
      SOAP::Data->uri('urn:mh:tr:trupdate'),
      SOAP::Data->type('TRUpdate' => [
      SOAP::Data->name("TRType" => "AXE10"),
      SOAP::Data->name("objectType" => "P"),
      SOAP::Data->name("heading" => "TR created by direct
      SOAP connection"),
      SOAP::Data->name("priority" => "C"),
      SOAP::Data->name("customer" => "UNDEF"),
      SOAP::Data->name("productNumber" => "CA 139 1085"),
      SOAP::Data->name("productNumberRState" => "R1A"),
      SOAP::Data->name("preparedBy" => "Marc Mazzini"),
      SOAP::Data->name("preparedPhone" => "+1 xxx xxx
      xxxx"),
      SOAP::Data->name("preparedDate" => "2002-09-19"),
      SOAP::Data->name("ISPCustomer" => "N"),
      SOAP::Data->name("countryCode" => " "),
      SOAP::Data->name("site" => " "),
      SOAP::Data->name("siteStatus" => " "),
      SOAP::Data->name("AS" => "AXE 105 09"),
      SOAP::Data->name("ASRState" => "R1")
      ])
      );

      my $response = SOAP::Lite
      ->uri("urn:mh:tr")
      ->proxy("http://xxxxxxxxxxxxxxxxxxxxxxxxxx")
      ->createTR(@parameters);

      if( $response->fault ){
      print "An ERROR occurred while calling createTR:" .
      "\n- " . $response->fault .
      "\n- " . $response->faultstring .
      # "\n- " . $response->faultdetail .
      "\n";
      exit(0);
      }

      print "Succeed";

      exit(0);
    • Show all 2 messages in this topic