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

Importing XML DATA

Expand Messages
  • Tielman J de Villiers
    Hi, I am still at the early stages of the soap lite learning curve, and have 2 questions: - The code below shows a script which works fine. In stead of writing
    Message 1 of 1 , Oct 11, 2001
    • 0 Attachment
      Hi,

      I am still at the early stages of the soap lite learning curve, and have 2
      questions:
      - The code below shows a script which works fine. In stead of writing the
      xml code as indicated, I want to "import" a file containing the xml. This
      "file" is another script requiring one input (a unique ID) to grab data from
      a Postgres database an then uses XML::Generator to write the xml.
      - Is this an "okay" way to do the above, or are there other more obvious
      solutions (with some basic pointers to that directions)?

      Thank you,
      Tielman J de Villiers
      BondNet Pty Ltd

      +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

      my $s = SOAP::Lite
      -> uri('http://tempuri.org/message/')
      -> proxy('http://xxx')
      -> on_action(sub{'"http://tempuri.org/action/xxx"'})
      -> on_debug(sub{print@_});

      my $r = $s->CreateClient(SOAP::Data->type(xml => qq{
      ############ HERE ###########
      <xml>xml</xml>
      ############ END HERE #######
      }));

      if ($r->fault) {
      print "FAULT: ", $r->faultstring, "\n\n";
      } else {
      print "RESULT: ", $r->result, "\n\n";
      }

      ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Your message has been successfully submitted and would be delivered to recipients shortly.