8 Replies Latest reply on Mar 30, 2007 10:13 AM by Chunyun Zhao

    How to register SerializerFactory and DeSerializerFactory fo

    Chunyun Zhao Newbie

      I am implementing a WS client with JBossWS to access a third-party web service, one of the service operations takes a xsd:anyType type as the parameter, and it gets mapped to SOAPElement in the wstools generated code. When I invoke the service, I got this exception:

      javax.xml.rpc.JAXRPCException: Cannot obtain serializer factory for: [xmlType={http://www.w3.org/2001/XMLSchema}anyType,javaType=interface javax.xml.soap.SOAPElement]

      This article (http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EETypeMapping) talks about how to add type mappings for service endpoint, not the WS client. But anyway, I tried to add file ws4ee-deployment.xml to my client's META-INF folder with following mapping:

      <typeMapping qname="xsd:anyType"
      serializer="org.jboss.ws.jaxrpc.encoding.ElementSerializerFactory" deserializer="org.jboss.ws.jaxrpc.encoding.ElementDeserializerFactory"
      encodingStyle="" />

      and it didn't work.

      Does anyone know a solution to this issue?

      Much thanks!