Gantry

 view release on metacpan or  search on metacpan

lib/Gantry/Docs/Cookbook.pod  view on Meta::CPAN

 20     );
 21
 22     return $self->soap_out( $ret_struct, 'internal', 'pretty' );
 23 } # END do_f2c

If you need to tell your client the UTC time of your response in valid
SOAP time format, call C<soap_current_time>, as I did on line 3.

Since my server's SOAP requests are simple, I can call C<params>
on line 5, just as I would to handle form parameters.  The input
parameter is in the C<farenheit> key (line 6).  A grade school formula
does the conversion on line 8.

Lines 9-16 build the structure of the return packet.  The top level
tag is C<GantrySoapServiceResponse>.  Inside it will be a list of tags
(order often matters to DTDs), one for the time, the other for the
converted temperature.

To control the namespace of C<GantrySoapServiceResponse> and its children,
I called C<soap_namespace_set> (line 18).



( run in 0.274 second using v1.01-cache-2.11-cpan-26ccb49234f )