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

SOAP::Lite calls which are not real Perl subs

Expand Messages
  • ukslimer
    Hi, I m new to SOAP::Lite and indeed to SOAP. I subscribed to this list because I had this question -- so apologies for not lurking a while first. I ve been
    Message 1 of 1 , Aug 29, 2002
    • 0 Attachment
      Hi,

      I'm new to SOAP::Lite and indeed to SOAP. I subscribed to this list
      because I had this question -- so apologies for not lurking a while
      first.

      I've been working from the O'Reilly book "Programming Web Services
      with SOAP". From the book and from the examples that come with
      SOAP::Lite it seems very easy to write a SOAP server such that when
      the client sends (many attributes ommitted for my typing convenience):

      <SOAP-ENV:Envelope>
      <SOAP-ENV:Body>
      <namesp1:cmd>
      parm
      </namesp1:cmd>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      ... the server runs the Perl sub "cmd(parm)" and returns the XML
      serialised result.

      However I would like to write a server which instead of running the
      Perl sub "cmd(parm)", runs something like "process_cmd(cmd,parm)".
      This is because I want my server to pass these commands on to another
      command processor.

      I've looked through the SOAP::Lite perldoc, and I've contemplated
      things like messing around with the deserialiser before handling the
      request -- but there must be an more elegant way to do this which
      eludes me.

      Any ideas?

      Thanks,

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