$line most likely contains a newline at the end. Maybe the service you're connecting to does not like that?
Have you tried with a hardcoded value for $line?
In reply to Re: Whats wrong with this code?
by Corion
in thread Retrieving data using Soap Lite.
by Gkandoi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |