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

Undeclared prefix: "xsi:type"

Expand Messages
  • Rick and Tracy Ferrante
    Hello, I keep getting the error Undeclared prefix: xsi:type . Looking at the +trace output, it seems that my namespace is not defined in the envelope.
    Message 1 of 1 , Mar 3, 2006
    View Source
    • 0 Attachment
      Hello,
      I keep getting the error ' Undeclared prefix: "xsi:type" '.

      Looking at the +trace output, it seems that my namespace is not
      defined in the envelope. Can anyone see what I am doing wrong?

      here is the trace output envelop.
      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SO
      AP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envel
      ope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP-ENV:Hea
      der><AuthenticationInfo><userName
      xsi:type="xsd:string">TNSOnline</userName><password
      xsi:type="xsd:string">tnsonline<
      /password></AuthenticationInfo></SOAP-ENV:Header><SOAP-ENV:Body><namesp1:CO_GetSummary
      xmlns:namesp1="urn:CO_GetSummar
      y"><OrderID
      xsi:type="xsd:string">USCOR0008393</OrderID></namesp1:CO_GetSummary></SOAP-ENV:Body></SOAP-ENV:Envelope>




      Thanks,
      Rick Ferrante

      #!/opt/arps/perl/bin/perl

      use SOAP::Lite ;
      $|=1;
      # Name of the server hosting the web service
      use constant CONST_SERVER => 'remedy03';

      # Name of the web service
      use constant CONST_WSNAME => 'CO_GetSummary';
      use constant CONST_URI => 'urn:' . CONST_WSNAME;

      # Path to service
      use constant CONST_PATH => '/arsys/services/ARService';

      # Parameters to pass to the service
      use constant CONST_PARMS => 'server='
      . CONST_SERVER
      . '&webService='
      . CONST_WSNAME;

      # Construct the full path to the service with parameters
      use constant CONST_ENDPOINT => 'http://'
      . CONST_SERVER
      . CONST_PATH . '?'
      . CONST_PARMS;

      my $soap = SOAP::Lite->new( uri => CONST_URI, proxy => CONST_ENDPOINT );

      # Create a new ticket
      my $newTicket = soapCreate( $soap );
      print "New request created: $newTicket\n";

      sub soapCreate {

      $retval = $soap->CO_GetSummary(

      SOAP::Header->name("AuthenticationInfo",{userName=>"TNSOnline",password=>"tnsonline"}),
      (

      SOAP::Data->new(
      name => 'OrderID',
      value => 'USCOR0008393',
      type => 'xsd:string'
      ),
      )
      );
      }
      soapErrorCheck($retval);;
      print $retval->result();

      sub soapErrorCheck {

      # Function Parms
      my $response = shift;

      # Check the response from the server for an error
      if ( defined( $response->fault ) ) {
      print "Fault: ", $response->faultstring, "\n", "Detail:\n",
      $response->faultdetail, "\n";
      }

      # Default
      return (0);
      }
    Your message has been successfully submitted and would be delivered to recipients shortly.