[Lazarus] Web-services

Ian Godman ian at gravytrain.co.uk
Wed Jul 25 16:40:42 CEST 2012

On 25/07/12 13:57, michael.vancanneyt at wisa.be wrote:
> On Wed, 25 Jul 2012, Ian Godman wrote:
>> I have been able to test my web service with SOAPUI and it responds
>> without error, giving it the parameter 'George' I get:
>> <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>
>> How ever when I run in Lazarus i get the following
>> The logs written by the web service indicate that it is receiving the
>> request and processing it correctly - the log out put is the same as
>> that seen when successfully calling the service from SOAPUI.
>> I have used WST to generate the classes from the same WSDL as used with
>> Any ideas ?
>>>>>> Project webservice raised exception class 'EXMLReadError' with
>>>>>> message:
>>>>>> in 'stream:' (line 1 pos 145): root element is missing
> The line indicates that there is something missing in the response.
> Is the webservice somehow publicly available so someone else can test ?
> Michael.
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Not available to the public as its only on my machine.

I dont think there is anything missing in the response as SOAPUI does
not complain and it looks good to me.

The debugger says:

An unhandled exception occurred at $080E278D :
EXMLReadError : In 'stream:' (line 1 pos 1): Illegal at document level
  $080833DD  TSOAPCALLMAKER__MAKECALL,  line 239 of
  $080B2B0F  TBASEPROXY__MAKECALL,  line 269 of ./include/service_intf.pas
  $08082660  THELLOWORLDPORTTYPE_PROXY__HELLO,  line 63 of hello_proxy.pas
  $08048207  main,  line 29 of webservice.lWeb Services Toolkit

Would be nice if I knew what was illegal at the document level. The XML
I get back is as above the raw response is as follows:

HTTP/1.1 200 OK
Date: Wed, 25 Jul 2012 03:38:23 BST
Server: Mule Core/3.3.0

http.method: POST
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: chunked
Connection: close

More information about the Lazarus mailing list