gackles has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Caturing incoming XML from SOAP server
by NetWallah (Canon) on Jan 28, 2016 at 21:46 UTC | |
by gackles (Novice) on Feb 18, 2016 at 15:55 UTC | |
|
Re: Caturing incoming XML from SOAP server
by Anonymous Monk on Feb 19, 2016 at 01:49 UTC | |
by gackles (Novice) on Feb 26, 2016 at 21:05 UTC | |
by Anonymous Monk on Feb 27, 2016 at 10:01 UTC | |
by gackles (Novice) on Feb 27, 2016 at 15:25 UTC | |
by Anonymous Monk on Feb 28, 2016 at 07:56 UTC |