Hi All,
I have a axis webservice deployed with UserDefined Object as input parameter to one of the methods. I used wsdl2java to create proxy/stub files. The client is working fine having wsdl2java generated proxy/stub files in the Classpath. But, when try to invoke thru Spring jaxrpc client. i get the deserializer not found exception. Error is
could not find deserializer for type {http://www.txyz.com/cart/ws}Cart
I dont think there is a problem with the WSDL as its working fine with wsdl2java generated files..
I have created a custom class for mapping the POJO as below,
public class CartProxyFactoryBean extends JaxRpcPortProxyFactoryBean
{
protected void postProcessJaxRpcService(Service service)
{
TypeMappingRegistry registry = service.getTypeMappingRegistry();
TypeMapping mapping = registry.createTypeMapping();
registerBeanMapping(mapping, com.mydomain.cart.types.Cart.class, "Cart");
registry.register("http://schemas.xmlsoap.org/soap/encoding/", mapping);
}
protected void registerBeanMapping(TypeMapping mapping, Class type, String name)
{
QName qName = new QName("http://<<servername>>:7002/cart/CartService", name);
mapping.register(type, qName,
new BeanSerializerFactory(type, qName),
new BeanDeserializerFactory(type, qName));
}
}
Can anyone help in this regard? I am bugged with this Exception after trying for long time..
Thanks in Advance,,
sep.


Reply With Quote
