Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: SOAP::Lite and getting error "not well-formed (invalid token)"

by tangent (Parson)
on Dec 09, 2015 at 22:23 UTC ( [id://1149843]=note: print w/replies, xml ) Need Help??


in reply to SOAP::Lite and getting error "not well-formed (invalid token)"

May not solve your problem but where you have:
SOAP::Data->name("username" =>'$username'), SOAP::Data->name("password" => '$password')
is not doing what you want - the single quotes mean that the text '$username' is passed in literally when you want the actual values passed - just remove the quotes:
SOAP::Data->name("username" => $username ), SOAP::Data->name("password" => $password )
In fact you don't need the quotes on the left side either so this works too:
SOAP::Data->name( username => $username ), SOAP::Data->name( password => $password )

Replies are listed 'Best First'.
Re^2: SOAP::Lite and getting error "not well-formed (invalid token)"
by NetWallah (Canon) on Dec 10, 2015 at 00:08 UTC
    The OP's output shows that this, in fact, is a problem (May not be the only one), since it contains the strings $username and $password:
    ...<username xsi:type="xsd:string">$username</username> <password xsi:type="xsd:string">$password

            Our business is run on trust. We trust you will pay in advance.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1149843]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-03-28 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found