physi has asked for the wisdom of the Perl Monks concerning the following question:
This returns the following SOAP-XML to the client:my $daemon = SOAP::Transport::HTTP::Daemon -> new (LocalPort => 8088, Reuse => 1) -> on_action(sub {}) -> dispatch_to('ServiceError'); print "Contact to SOAP server at ", $daemon->url, "\n"; $daemon->handle; sub ServiceError { print "ServiceError\n"; return SOAP::Data->name('ResponseType')->value('ACKNOWLEDGE'); }
but this one I need to send to the client :<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/enc +oding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s +oapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http:// +www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soa +p/envelope/"> <soap:Body> <ServiceErrorResponse xmlns="http://DataModel_v4.xxxxxxxxx.com"> <ResponseType xsi:type="xsd:string">ACKNOWLEDGE</ResponseType +> </ServiceErrorResponse> </soap:Body> </soap:Envelope>
Is there a way to tell SOAP::Lite to suppress the <ServiceErrorResponse> Tags around my single-line message?<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/enc +oding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s +o +apenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://w +ww.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap +/ +envelope/"> <soapenv:Body> <ResponseType>ACKNOWLEDGE</ResponseType> </soapenv:Body> </soapenv:Envelope>
Thanks for any hints !
Cheers,
Christian
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|