<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have been able to test my web service with SOAPUI and it responds
without error, giving it the parameter 'George' I get:<br>
<br>
<soap:Envelope
xmlns:soap=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>><br>
<soap:Body><br>
<ns1:helloResponse xmlns:ns1=<a class="moz-txt-link-rfc2396E" href="http://example.org/">"http://example.org/"</a>><br>
<ns1:return>Hello George</ns1:return><br>
</ns1:helloResponse><br>
</soap:Body><br>
</soap:Envelope><br>
<br>
How ever when I run in Lazarus i get the following <br>
<br>
<img src="cid:part1.08080203.02050609@gravytrain.co.uk" alt=""><br>
<br>
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.<br>
<br>
I have used WST to generate the classes from the same WSDL as used
with SOAPUI.<br>
<br>
<br>
Any ideas ?<br>
<br>
<br>
<br>
Ian<br>
<br>
<div class="moz-cite-prefix">On 19/07/12 16:23,
<a class="moz-txt-link-abbreviated" href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a> wrote:<br>
</div>
<blockquote
cite="mid:alpine.DEB.2.00.1207191718450.12913@fsb.wals.be"
type="cite">
<br>
<br>
On Thu, 19 Jul 2012, Ian Godman wrote:
<br>
<br>
<blockquote type="cite">
<br>
On 19/07/12 14:28, <a class="moz-txt-link-abbreviated" href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a> wrote:
<br>
<blockquote type="cite">
<br>
<br>
On Thu, 19 Jul 2012, Ian Godman wrote:
<br>
<br>
<blockquote type="cite">Hi
<br>
<br>
I am trying to get Lazarus to connect to a Java based web
service. The
<br>
web service is in Java because its on an existing webserver
and will
<br>
provide information and services etc from that site.
<br>
<br>
I am using Apache CXF and Jersey for the web services. With
Jersey I
<br>
have a working restful webservice, with CXF I have been able
to build
<br>
the service but not the client.
<br>
<br>
I have used WST to generate the classes from the WSDL which
appears to
<br>
work well.
<br>
<br>
However when I try to run the client I get the following
exception:
<br>
<br>
Project webservice raised exception class
'EserviceConfigException' with
<br>
message invalid parameter: 'AProtocolData'
<br>
<br>
Searching Google I found that the solution was to add
soap_formatterto
<br>
my uses which I have done but still get the same error.
<br>
<br>
I have changed to use the wst_CreateInstance_HelloWorldEasy
(always
<br>
start with 'hello world' :-) ) and teh invalid parameter
error goes away
<br>
to be replaced with
<br>
<br>
Project webservice raised exception class 'EXMLReadError'
with message:
<br>
in 'stream:' (line 1 pos 145): root element is missing
<br>
</blockquote>
<br>
Can you post the response from the server ?
<br>
<br>
You can make the response visible on the console by adding the
<br>
logger_extension
<br>
unit to your uses clause.
<br>
<br>
Michael.
<br>
<br>
--
<br>
_______________________________________________
<br>
Lazarus mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br>
<br>
</blockquote>
The service is not being called, Lazarus code is failing before
the
<br>
request is made so there is no server response.
<br>
</blockquote>
<br>
Well, you get a read error. Reading is normally done only when you
get a response.
<br>
<br>
Did you specify an end point (address) when you create the service
?
<br>
<br>
Michael.
<br>
<br>
--
<br>
_______________________________________________
<br>
Lazarus mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br>
<br>
</blockquote>
<br>
<br>
</body>
</html>