Announcement Announcement Module
Collapse
No announcement yet.
How to config beanMappings in AxisBeanMappingServicePostProcessor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to config beanMappings in AxisBeanMappingServicePostProcessor

    Hi,

    are there examples how to config beanMappings?
    What is the exactly content of the .properties file (syntax)?

    I tried something like this this:
    ...
    com.somewhere.MyBean=myComplexType
    ...

    I always get the message: could not find deserializer for type ...

    Is it correct that a missing beanMapping cause that error?

    Thanks a lot,
    Michael

  • #2
    It looks like you can use either the beanMappings or the beanClasses property. I ended up using the beanClasses property and my configuration now looks like this

    Code:
      	<bean id="nearRealTimeQuoteService" class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
    	    <property name="serviceInterface" value="com.xxxxxxxxx.services.NearRealTimeQuoteService"/>
        	<property name="portInterface" value="com.xxxxxxxxx.services.remote.RemoteNearRealTimeQuoteService"/>
            <property name="wsdlDocumentUrl" value="http://localhost:8080/axis/services/NearRealTimeQuoteService?WSDL"/>
            <property name="namespaceUri" value="http://localhost:8080/axis/services/NearRealTimeQuoteService"/>
            <property name="serviceName" value="JaxRpcNearRealTimeQuoteServiceService"/>
            <property name="portName" value="NearRealTimeQuoteService"/>
            <property name="lookupServiceOnStartup" value="false"/>
    	 	<property name="servicePostProcessors">
    	 		<list>
    	 		<bean id="nearRealTimeQuoteAxisPostProcessor"
    	 		class="org.springframework.remoting.jaxrpc.support.AxisBeanMappingServicePostProcessor">
    	 			<property name="encodingStyleUri" value="http://schemas.xmlsoap.org/soap/encoding/"/>
    	 			<property name="typeNamespaceUri" value="http://www.xxxxxxxx.com"/>
    	 			<property name="beanClasses" value="com.xxxxxxxx.model.NearRealTimeQuote"/>
    	 		</bean>
    	 		</list>
    	 	</property>
        </bean>

    Comment

    Working...
    X