WebService method that returns complex type [message #162574] |
Wed, 01 March 2006 11:36  |
Eclipse User |
|
|
|
Originally posted by: markp.softlanding.com
I have a Java Bean that I am using to generate a WSDL and a web service
using WTP 1.0.1. In this method, I want to return an object like this:
public interface ISVNResult {
public String getCommandOutput();
public boolean isSuccessful();
}
I generate the Web service and the WSDL. The WSDL it generates looks
like this:
<element name="checkoutProjectResponse">
<complexType>
<sequence>
<element name="checkoutProjectReturn" type="xsd:anyType"/>
</sequence>
</complexType>
</element>
When I test it using the Web Services Explorer in Tomcat 5.0.28 and
AXIS, I get this:
SEVERE: java.io.IOException:
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userExcept ion
faultSubcode:
faultString: java.io.IOException: No serializer found for class
org.tigris.subversion.alf.SVNSuccess in registry
org.apache.axis.encoding.TypeMappingDelegate@1b2d7df
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.io.IOException: No
serializer found for class org.tigris.subversion.alf.SVNSuccess in
registry org.apache.axis.encoding.TypeMappingDelegate@1b2d7df
at
org.apache.axis.encoding.SerializationContext.serializeActua l(Serializat
ionContext.java:1429)
at
org.apache.axis.encoding.SerializationContext.serialize(Seri alizationCon
text.java:914)
at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200 )
at org.apache.axis.message.RPCElement.outputImpl(RPCElement.jav a:433)
at
org.apache.axis.message.MessageElement.output(MessageElement .java:1208)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:13 9)
at
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope .java:477)
snip...
Is there something I can do that will make this work? I could go back
to just returning Strings in my method, but this seemed more expressive.
Mark
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.14341 seconds