decibel3276 has asked for the wisdom of the Perl Monks concerning the following question:
The resulting XML looks good except for that missing namespace:#!C:/Perl/bin/perl.exe use warnings; use strict; use XML::Simple; use SOAP::Lite +trace => 'debug'; use Data::Dumper; my $post = "<request>"; $post = $post . "<Number>".$number."</Number>"; $post = $post . "<InternalData></InternalData>"; $post = $post . "</request>"; my $soap = SOAP::Lite -> proxy ('https://myrealm.com/service.asmx') -> service ('file:abc.wsdl'); sub SOAP::Transport::HTTP::Client::get_basic_credentials { return 'username@subrealm.realm.net' => '!pa$$w0rd!'; }; my $elem = SOAP::Data->type('xml' => $post); $soap->QueryAbc($elem);
Anyone know how to add the namespace in the <QueryAbc> node?<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/enc +oding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encod +ing/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmln +s:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://w +ww.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <QueryAbc xmlns=""> <request> <Number>9765551212</Number> <InternalData></InternalData> </request> </QueryAbc> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite Question
by cengineer (Pilgrim) on Jun 05, 2007 at 20:02 UTC | |
by decibel3276 (Initiate) on Jun 07, 2007 at 13:39 UTC | |
by decibel3276 (Initiate) on Jun 07, 2007 at 14:05 UTC | |
|
Re: SOAP::Lite Question
by naikonta (Curate) on Jun 05, 2007 at 16:12 UTC | |
|
Re: SOAP::Lite Question
by Util (Priest) on Jun 05, 2007 at 16:33 UTC | |
by decibel3276 (Initiate) on Jun 05, 2007 at 19:08 UTC | |
|
Re: SOAP::Lite Question
by jhourcle (Prior) on Jun 05, 2007 at 19:49 UTC | |
|
Re: SOAP::Lite Question
by ForgotPasswordAgain (Vicar) on Jun 05, 2007 at 16:18 UTC |