I have a SOAP server that dispatches to a module fine. Once it gets to the sendMsg2Vbs subroutine the incoming data is a hash that I cannot output to a file which is what I need to do. The incoming data is coming from a client that I have no control over. It's also loaded with tags containing attributes like this <Entity name="city" sectionEntityMapId="190" value="EAST DOVER"/>. Ultimately, I want to create an xml file with the entire incoming xml message. How do I do this? Thank you for your help.
Here is my SOAP server:
#!/usr/bin/perl use strict; use SOAP::Transport::HTTP; use lib '/var/www/soap'; use vbsservice; my $server = SOAP::Transport::HTTP::CGI ->dispatch_to('sendMsg2Vbs') ->handle; 1;
Here is the vbsservice module:
#!/usr/local/bin/perl package vbsservice; use Switch; use warnings; use Exporter; our @ISA = (Exporter); our @EXPORT = qw(sendMsg2Vbs); sub sendMsg2Vbs { my($class,$data)=@_; ...
I'd like to output $data to a file but it is a hash. Any help would be very much appreciated. Thank you.
In reply to Caturing incoming XML from SOAP server by gackles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |