XP is just a number | |
PerlMonks |
System tick and CURL not interrpeting variableby kdmurphy001 (Sexton) |
on Dec 11, 2015 at 20:42 UTC ( [id://1150071]=perlquestion: print w/replies, xml ) | Need Help?? |
kdmurphy001 has asked for the wisdom of the Perl Monks concerning the following question:
Hello again Quasi-Divine Monk, Once again I need to call upon your vast knowledge in my question to better understand all things perl. The code below works if I replace the variable $Token with the actual token generated from the first cURL statement but if I use the code shown below it does not (IE instead of the actual token using $Token). I've tried enclosing the variable in single and double quotes, single+double quotes and vice versa, and sigle+double+singe quotes and double+single+double quotes. Nothing works. It spits out the XML shown below the code snippet in all instances. The 2nd cURL statement is where I believe the problem lies (this is the cURL statement using the token generated in the first cURL statement).
The output throws no errors but the Dumper spits out the following. I'll add that I could not find a good way to display this /w the wrapping so I shortened (the output does not look like this exactly, white space was removed). $VAR1 = { 'soap:Body' => { 'ns5:getTitleResponse' => { 'xsi:nil' => 'true', 'xmlns:ns4' => 'java:language_builtins.lang', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xmlns:ns3' => 'java:com.tl.xyzws.parameters', 'xmlns:ns5' => 'http://ws.fluffybunnies.com:80/olrws', 'xmlns:ns2' => 'java:com.tl.xyzws' } }, 'xmlns:soap' => 'http://schemas.xmlsoap.org/soap/envelope/' }; With the actual token instead of the above I get the expected XML (title info, ect). It's wonderful except I don't want to have to manually paste in the title when this script is run since ideally I'll be using this in an automated process. Thank you again for any help you can provide and I'll add that I'm in a bash shell on Unix(Debian). Kevin M
Back to
Seekers of Perl Wisdom
|
|