in reply to SOAP::Lite and getting error "not well-formed (invalid token)"
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 )
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 |