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

Re: [soaplite] serialize a data type

Expand Messages
  • Paul Kulchenko
    ... This error means that there has to be some deserializer for complex types, because SOAP::Lite doesn t know how to deserialize them. It has to be registered
    Message 1 of 2 , Oct 28, 2002
    • 0 Attachment
      --- sid69se <sid69se@...> wrote:
      > 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.
      This error means that there has to be some deserializer for complex
      types, because SOAP::Lite doesn't know how to deserialize them. It
      has to be registered using xmlschema() method. However, the name of
      the element itself doesn't look right. How did you generate it?

      Except that uri() method by itself doesn't make much sense
      (SOAP::Data->uri('urn:mh:tr:trupdate')), I don't see anything wrong
      on the client side. Server-side code and wiredumps will definitely
      help to solve the problem.

      Best wishes, Paul.

      >
      > 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);
      >
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      >
      > To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      >


      __________________________________________________
      Do you Yahoo!?
      HotJobs - Search new jobs daily now
      http://hotjobs.yahoo.com/
    Your message has been successfully submitted and would be delivered to recipients shortly.