[Lazarus] Web-services

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Wed Jul 25 16:57:33 CEST 2012



On Wed, 25 Jul 2012, Ian Godman wrote:

> X-MULE_SESSION:
> rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAA1mbG93Q29uc3RydWN0dAAmTG9yZy9tdWxlL2FwaS9jb25zdHJ1Y3QvRmxvd0NvbnN0cnVjdDtMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAD3NlY3VyaXR5Q29udGV4dHQAJ0xvcmcvbXVsZS9hcGkvc2VjdXJpdHkvU2VjdXJpdHlDb250ZXh0O3hwAXB0ACQ2MzQyYjU4ZS1kNjY2LTExZTEtOWRmYS1iOTFmY2RkY2U0ZTBwc3IAJWphdmEudXRpbC5Db2xsZWN0aW9ucyRTeW5jaHJvbml6ZWRNYXAbc/kJS0s5ewMAAkwAAW10AA9MamF2YS91dGlsL01hcDtMAAVtdXRleHQAEkxqYXZhL2xhbmcvT2JqZWN0O3hwc3IAJG9yZy5tdWxlLnV0aWwuQ2FzZUluc2Vuc2l0aXZlSGFzaE1hcJ3R2e9nRc4AAwAAeHB3DD9AAAAAAAAQAAAAAHhxAH4ACXh4
>
> http.method: POST
> Content-Type: text/xml; charset=UTF-8
> X-MULE_ENCODING: UTF-8
> Transfer-Encoding: chunked
> Connection: close
>
> <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:helloResponse
> xmlns:ns1="http://example.org/"><ns1:return>Hello
> George</ns1:return></ns1:helloResponse></soap:Body></soap:Envelope>

I miss the following at the start:

<?xml version="1.0" encoding="utf-8"?>

But normally this should not hurt.

The error means that there is an illegal character at the start of the returned
stream. This error is raised by the XMLRead routines. 
It is then masked by a WST error (which, I think, is a design error of WST).

I suspect the illegal character is a BOM marker (I had similar experiences in
the past). If so, you should configure your server not to return a BOM Marker. 
Maybe SOAPUI can handle it, but XMLRead probably can't.

(although, I managed to crash Java webservices by sending a BOM Marker in a
request...)

Michael.




More information about the Lazarus mailing list