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

4876Re: [soaplite] Modifying the SOAP-ENV:Envelope to add attribute

Expand Messages
  • Richard Gregory
    Aug 31 2:44 AM
      Hi Thom,

      I'm just a perl newbie (and I'm really only using it to try to test interoperability for my Java
      web services), so this may, or may not be the answer. I had a similar problem when I needed to
      specify a different schema instance to the one used by SOAP::Lite as a default, and this worked
      for me:

      use SOAP::Lite;
      use HTTP::Cookies;

      my $soap = SOAP::Lite
      -> uri('urn:advancedquery.ws.biors.biomax.de')
      -> proxy('',
      cookie_jar => HTTP::Cookies->new(autosave => 1, ignore_discard => 1));

      "http://www.w3.org/2001/XMLSchema"=>"xsd", "http://www.w3.org/2001/XMLSchema-instance"=>"xsi"});

      my $result = $soap
      -> getElementEntry('{swissprot}: [[AllText EQ text:lys4;]]', ["_ID_", "AccNumber",

      I think the answer for you is the $soap->serializer->namespaces... statement, but as I said, I'm
      not that knowledgeable, and I'm not entirely sure how you'd integrate it into your code, so I'll
      leave that for you. Hope this helps


      --- teden <thom@...> wrote:


      Got a weird one. It seems I need to modify the Envelope to include a
      couple of schema references aka


      I have been fiddling with the SOAP::Lite call to no avail Anyone got
      some pointers?

      Here's my call:

      $myInvoke = SOAP::Data

      $Response= SOAP::Lite
      ->outputxml( "1" )
      ->proxy( $opt_p )
      ->call( $myInvoke
      => SOAP::Data->type( "xml" )->value( $parm )
      => SOAP::Header->name( "FirstContext" => $FirstContext)->type(
      "xml" )
      => SOAP::Header->name( "SecondContext" => $SecondContext)->type(
      "xml" )

      Any help is greatly appreciated.

      Thom Eden

      Protocol analyzer
      Ssl protocol Sip protocol
      Protocol analysis Modbus protocol
      Communication and networking


      Visit your group "soaplite" on the web.

      To unsubscribe from this group, send an email to:

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
    • Show all 2 messages in this topic