by William >> Fri, 18 Apr 2008 3:55:26 GMT
I am doing some simple web service testing but am having a few issues. My connection is Tcp and is a simple Jade to jade message. All my webservice function does is multiply the passed in integer and return the result.
The consumer calling code is as follows
vars
test : ConTEST;
send : ConGetTextString;
response : ConGetTextStringResponse;
begin
create test transient;
create send transient;
send.pInput := 2;
response := test.getTextString( send );
delete test;
end;
Executing this code results in the following exception being raised
The service returned a fault message
Error 8901 - not well-formed (invalid token)
The Web application monitor on the server is listing the following in its dialog box;
18 April 2008, 15:33:38 IP address of requestor = 127.0.0.1 Session Id = 18 April 2008, 15:33:38 Query String = 127.0.0.12:
18 April 2008, 15:33:38 Http String = ="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi=" " xmlns:xsd=" " xmlns:soap=" " xmlns:tns="urn:JadeWebServices/TestWebService/">
<soap:Body>
<getTextString xmlns="urn:JadeWebServices/TestWebService/"> <pInput>2</pInput>
</getTextString>
</soap:Body>
</soap:Envelope>
PLEASE NOTE: I have removed the W3C addresses to allow the message to post on this newsgroup.
A JadeXMLDocumentParser exception is raised on the server aswell.
What is interesting to me is the first line of the received SOAP message in the text above;
18 April 2008, 15:33:38 Http String = ="1.0" encoding="utf-8"?>
Isnt this missing some text? shouldnt I be seeing the whole line i.e. somthing like;
<?xml version="1.0" encoding="utf-8" ?>
I have reimplemented any of the web service messages and it is a trivial web service so dont know what could be causing this. Any ideas?
p.s. I am on Jade 6.1.09.