You need to sign in to do that
Don't have an account?
henryCH
SOAP/XML Error: Invalid Token
Hi,
I'm still using the PEAR SOAP libraries and never had problems creating SObjects like tasks. But now we moved to a new ISP and after all create calls the XML response seems to be invalid an I get the following error message:
XML error on line 1 col 4 byte 4 not well-formed (invalid token)
When I print out the resulting error object it shows that the sObject was created but the positive xml response seems to cause the mentioned error.
I already tried to set the default character set to utf-8 using PHP's ini_set and Apache's .htaccess directives but that didn't change anything.
Since this is a massive problem for a customer of ours any help is greatly appreciated!
Thanks,
Henry
I'm still using the PEAR SOAP libraries and never had problems creating SObjects like tasks. But now we moved to a new ISP and after all create calls the XML response seems to be invalid an I get the following error message:
XML error on line 1 col 4 byte 4 not well-formed (invalid token)
When I print out the resulting error object it shows that the sObject was created but the positive xml response seems to cause the mentioned error.
I already tried to set the default character set to utf-8 using PHP's ini_set and Apache's .htaccess directives but that didn't change anything.
Since this is a massive problem for a customer of ours any help is greatly appreciated!
Thanks,
Henry
Message Edited by Mario V on 08-14-2006 03:29 AM
Message Edited by Mario V on 08-14-2006 03:35 AM
Hmm, on second reading, your error is in the create() call, which obviously isn't a parameter-less method... check the PEAR-SOAP version in your new ISP and make sure it's the same you used to develop your application.
It may also be useful to log the SOAP calls, check the response message and see exactly what part of the XML recieved is causing the error. If it does not tell you anything useful, post it here.