No Serializer found - simple ValueType
dels Apr 23, 2004 3:47 PMCan somebody please point me to some code which shows how to register my ValueType with a serializer?
I am using eclipse with the Jboss plugin and the Xdoclet with jboss tags
My web service is
<deployment name="RecipeService" xmlns="http://xml.apache.org/axis/wsdd/" targetNamespace="http://localhost:8080/jboss-net/services/RecipeService" xmlns:Recipe="http://localhost:8080/jboss-net/services/RecipeService" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <!-- The following are declarations of service endpoints targetted to session beans --> <service name="RecipeModifierService" provider="Handler"> <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/> <parameter name="beanJndiName" value="ejb/recipe/local/RecipeModifier"/> <parameter name="allowedMethods" value="getName createRecipe getRecipe getIngredient "/> <requestFlow name="RecipeModifierServiceRequest"> </requestFlow> <responseFlow name="RecipeModifierServiceResponse"> </responseFlow> </service> <service name="RecipeAdminService" provider="Handler"> <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/> <parameter name="beanJndiName" value="ejb/recipe/local/RecipeAdmin"/> <parameter name="allowedMethods" value="getAdminString setAdminString "/> <operation name="getAdminString" returnQName="adminString"> </operation> <requestFlow name="RecipeAdminServiceRequest"> </requestFlow> <responseFlow name="RecipeAdminServiceResponse"> </responseFlow> </service> <!-- The following are typemappings for entity beans for implementing the implicit web-service value-object pattern --> <!-- The following are typemappings for bean-type value-objects --> <!-- There follow merged custom web service descriptions --> </deployment>
This doesn't mention my user type (RecipeMode) however it does appear in the WSDL file.
The mapping in my generated WSDL is
<schema targetNamespace="http://model.recipe.delcampo.net"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> - <complexType name="RecipeModel"> - <sequence> <element name="pkRecipe" nillable="true" type="xsd:int"/> <element name="recipeViewCount" nillable="true" type="xsd:int"/> <element name="title" nillable="true" type="xsd:string"/> </sequence> </complexType>
I use the WSDL2Java axis class to generate client side code and then try and call a function which returns a RecipeModel, I have the no Serializer problem
My RecipeModel has a default constructor (however also has other constructors), and implements the serializer interface however doesn't have any getSerializer() type functions (as i didn't think I needed them).
I'm sure this is a simple/common problem - can somebody please point me in a direction where I may help myself ??
Any help appreciated, thanks.
Dels