I am trying to create a web service by deploying some simple classes on
axis.
But the response received by my client contains no SOAP message.

Let me describe the situation as below:
Apache Axis: beta-1 rc2
J2EE server: Tomcat 4.0 (I use the one bundled in Sun 's Web Service pack
ea1)
JDK: version 1.4

I have tested the samples in Axis to work on the above environment.

The service I created has an operation that takes a few strings and returns
a complex type, which is a class with three string fields. After I published

the service, I am able to use my browser to hit the endpoint with "?wsdl"
to retrieve the generated WSDL document.

Now I run my extremely simple test client, which does nothing more
than adding parameters, setting return type, operation name and endpoint,
using the "Call" and "Service" classes. When the client hits the service, on
server side
I can see from my debugging message that  the application logic behind the
service is 
executed properly.

However on the client side I got a SAXParseException, complaining that
"Document
root element is missing". Using tcpmon, I see that the response from axis
contains only an HTTP header, without the SOAP message in the body (the
request
from the client seems to be correct). 

I wonder what have gone wrong. It looks like a SOAP response is not
generated
on server side. Is this something related to the complex data type? Any
advise would
be greatly appreciated. 

Reply via email to