views:

196

answers:

1

when i am try to upload a pdf file Using WebService API's i got this error" Client-SOAP-ERROR: Encoding: string '%PDF-1.4 %\xc7...' is not a valid utf-8 string".

A: 

Yes - one or t'other end of the service is not coded correctly.

It's impossible without seeing the full XML for both ends and the WSDL to determine which - but most likely, the service requires a UTF-8 encoded content and your client is not checking what it's actually sending - in which case base64 encode the file and tell the remote system that's how its encoded.

C.

symcbean