Announcement Announcement Module
Collapse
No announcement yet.
Could not find deserializer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not find deserializer

    Hi all,
    I can't resolve the "could not find deserializer" exception. I use document/literal encoding and my configuration is the next one :

    <bean id="storeServiceSoap" class="***.StoreSoapProxyFactoryBean">
    <property name="serviceFactoryClass">
    <value>org.apache.axis.client.ServiceFactory</value>
    </property>
    <property name="wsdlDocumentUrl">
    <value>http://localhost:8080/Store_v13.wsdl</value>
    </property>
    <property name="namespaceUri">
    <value>http://com.***.enabler.sei/StoreEnabler/v13/StoreSEI</value>
    </property>
    <property name="serviceName">
    <value>Store</value>
    </property>
    <property name="portName">
    <value>StoreServiceSoap</value>
    </property>
    <property name="portInterface">
    <value>***.StoreServiceSoap</value>
    </property>
    <property name="serviceInterface">
    <value>***.StoreSoapService</value>
    </property>
    </bean>

    And my factory bean :
    ***
    protected void postProcessJaxRpcService(Service service) {
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.createTypeMapping();
    registerBeanMapping(mapping, GetServerVersionSoapIn.class, "GetServerVersionSoapIn");
    registerBeanMapping(mapping, GetServerVersionSoapOut.class, "GetServerVersionSoapOut");
    registry.register("", mapping);
    }

    protected void registerBeanMapping(TypeMapping mapping, Class type, String name) {
    QName qName = new QName("http://***.params/StoreEnabler/v13/StoreSEI", name);
    mapping.register(type, qName,
    new BeanSerializerFactory(type, qName),
    new BeanDeserializerFactory(type, qName));
    }

    The exception :
    org.xml.sax.SAXException: Deserializing parameter 'GetServerVersionSoapOut': could not find deserializer for type {http://***.params/StoreEnabler/v13/StoreSEI}>GetServerVersionSoapOut

    Any help would be very useful because I read some threads reporting the same error on this forum and tried some solutions but I can't solve my problem anyway.

    Many thanks
    och

  • #2
    Is it resolved?

    I having the same problem.

    Please let me know how to fix this?

    Thanks,
    Laks

    Comment

    Working...
    X