Web services issue

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Web services issue

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:18 pm

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web services issue

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:18 pm

by William >> Fri, 18 Apr 2008 4:31:49 GMT

I have NOT reimplemented any of the web service methods and it is a trivial web service so dont know what could be causing this. Any ideas?

EDIT: missing the NOT in the original message...

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Web services issue

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:18 pm

by William >> Fri, 18 Apr 2008 4:44:28 GMT

Attached screenshot shows the debug text shown on server. I have inspected the parameters on the internal JADE methods and it seems to be missing the data Is this a JADE bug?
Attachments
5243.JPG
5243.JPG (65.46 KiB) Viewed 1612 times


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 20 guests

cron