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

Fw: Problems with Attachments

Expand Messages
  • Pierpaolo Pitocco
    Hops!!! ... From: Pierpaolo Pitocco To: soaplite@yahoogroups.com Sent: Tuesday, March 25, 2003 3:32 PM Subject: Problems whith Attachments Hi, I m writing a
    Message 1 of 1 , Mar 25 6:34 AM
    • 0 Attachment
      Hops!!!
      ----- Original Message -----
      Sent: Tuesday, March 25, 2003 3:32 PM
      Subject: Problems whith Attachments

      Hi,
      I'm writing a soap client and i've some problem calling a webservice JAVA returnig "n" objects in attachmets.
      The code i use is the following:
       
       
       
      eval
      {
      $client=SOAP::Lite
              -> readable(1)
              -> uri("$INITIALIZED{uri}")
              -> proxy("$INITIALIZED{url}");
      };
      if ($@)
          {
          $ERROR++;
          }
       
       

      $debug=$INITIALIZED{debug};
      #$debug=0;
      #$debug==1 && $client->on_debug(sub{print@_});
       
      $itemId= SOAP::Data->name("itemId")->type(string=>"$id");
      $format= SOAP::Data->name("format")->type(string=>"ANY");
      $sid= SOAP::Data->name("serviceId")->type(string=>"$Sid");
      $admin= SOAP::Data->name("admin")->type(int=>"0");
      $full= SOAP::Data->name("full")->type(int=>"1");
       
      my $verifica=$client->getItemData($itemId,$sid,$format,$admin,$full);
      if ($verifica->fault)
              {
              my $faultDetail=$verifica->faultdetail;
              my $faultCode=$verifica->faultcode;
              my $faultString=$verifica->faultstring;
              my $faultActor=$verifica->faultactor;
              my $errorDesc="ERROR ON METHOD pricing OF THE CLASS CMR. ERROR RETURN CODE=ERROR_UNKNOWN\nERROR FAULTCODE=$faultCode\nERROR FAULT DETAIL=$faultDetail\nERROR FAULT STRING=$faultString\nERROR FAULT ACTOR=$faultActor\n";
              VAS::Logging::errorLog("WWSI_CMR",$errorDesc);
              return "ERROR=UNKNOWN\n";
              exit;
              }
       
       
       

               foreach my $part (${$verifica->parts}) {
                 print $part->stringify;
               }
       
       
      The application return me the next error:
      Can't find 'start' parameter in mulltipart MIME message.
       
      .... at /usr/lib/perl......../MIME.pm 
      Could anyone help me?
      Thanks in advance!
       
      /Pitocco
       
       
       
       
    Your message has been successfully submitted and would be delivered to recipients shortly.