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

redirecting a web service

Expand Messages
  • Torsten Mangner
    Hi all, i got a web services A (implemented with SOAP::Lite, works fine). now i have to write another webservice B (on another system) that has to redirect
    Message 1 of 1 , Jun 13 12:50 AM
    • 0 Attachment
      Hi all,

      i got a web services A (implemented with SOAP::Lite, works fine).

      now i have to write another webservice B (on another system) that has
      to redirect some of it's input parameters to the web service A. So
      actually B uses some funtionality of A.

      serviceB->mysub(a,b,c) ==> serviceA->(b)

      unfortunately this parameter b (that has to redirect to A) is a quite
      complex structure of arrays and hashes, so in client B there is a lot
      of effort to build a SOAP::Data structure.
      to avoid, that i have to build this structure in webservice A again,
      just to send the parameter to service B, I want to use the SOM from
      the envelope. so i could skip the de/serialization proccesses and take
      the received data untouched to service A.

      i thaught i could use it like this:
      my $parameterB = $envelope->dataof('parameterB');
      so i get the SOAP::Data of parameterB, to send it to service B.
      unfortunately, the returned SOAP::Data does not have any type
      information (that i coded in the SOAP::Data of client B), so the whole
      stuff is useless.

      do you have any suggestions on how to solve these problems:
      1.) how to get the SOAP::Data (with types) from a SOM object
      2.) any other concept to redirect the call to another service without
      much efford

      thanks in advance
      Torsten
    Your message has been successfully submitted and would be delivered to recipients shortly.