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

3912SOAP::Lite/wsdl --> xml-output with "ghost"-tags

Expand Messages
  • Reger Alexander
    Sep 7, 2004
    • 0 Attachment
      Hi group,
       
      I'm having problems in generating a call to a webservice. The generated xml-code is ok, except for a ghost-tag.
       
      I'm using the following perl-code to access the service:
      ######## perlcodestart ###########
      #!/usr/bin/perl -w
      use SOAP::Lite +trace => 'debug';
       
      my $wsdl        = "http://urlofwebservice/ScriptRunner?wsdl";
      my $service     = SOAP::Lite->service($wsdl)    -> xmlschema('http://www.w3.org/2001/XMLSchema');
       
      $runScriptParameters->{'scriptName'}    = "soaptest";
      $runScriptParameters->{'user'}          = "test";
      $runScriptParameters->{'pass'}          = "test";
       
      $service->serializer->readable(1);
      $service->serializer->envprefix('soapenv');
       
      my $result=$service->runScript($runScriptParameters);
      ######## perlcodeend ###########
       
      ######## xmldebugstart ###########
      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
        <soapenv:Body>
          <namesp1:runScript xmlns:namesp1="http://scriptrunner.url.com">
            <user xsi:type="xsd:string"> !!!!!!!!!!!GHOST!!!!!!!!!
              <pass xsi:type="xsd:string">test</pass>
              <user xsi:type="xsd:string">test</user>
              <scriptName xsi:type="xsd:string">soaptest</scriptName>
            </user> !!!!!!!!!!!GHOST!!!!!!!!!
          </namesp1:runScript>
        </soapenv:Body>
      </soapenv:Envelope>
      ######## xmldebugend ###########
       
      My question ist now: What am I doing wrong or why does this ghost (!!!!!!!!!!!GHOST!!!!!!!!!  --> <user xsi:type="xsd:string"> </user>) exists?
       
      I'm using SOAP::Lite 0.60 with Perl v5.6.1...
       
      Thanks for all help
      Best Regards,
      Alexander Reger
      Munich/Germany


      Gesendet von Yahoo! Mail - Jetzt mit 100MB kostenlosem Speicher