Announcement Announcement Module
Collapse
No announcement yet.
Issue with spring jaxrpc web service on weblgoic server 8.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue with spring jaxrpc web service on weblgoic server 8.1

    Hi,

    I am stuck with this problem since a day, any type of help will be very useful

    I had developed a jaxrpc web service based on pojo. Using weblogic servicegen i had generated the code for web service and deoployed on the weblogic server. I tested this with weblgoic client and it works fine for simple and complex data types.

    When i change my client to Axis, it works with simple data type like string, int etc but fails for List, Employee.

    I cannot use weblogic client factory as it gives error of not implementing the required interface.
    My spring configuration file is as below

    <beans>
    <!-- Proxy for the HelloWorld service -->
    <bean id="helloWorld"
    class="org.springframework.remoting.jaxrpc.JaxRpcP ortProxyFactoryBean">
    <property name="serviceInterface">
    <value>com.test.HelloWorldService</value>
    </property>
    <property name="portInterface">
    <value>com.test.HelloWorldRemote</value>
    </property>

    <!-- optional -->
    <property name="serviceFactoryClass">
    <value>org.apache.axis.client.ServiceFactory</value>
    </property>


    <property name="wsdlDocumentUrl">
    <value>http://localhost:7001/remoting/HelloWorldService?WSDL</value>
    </property>
    <property name="namespaceUri">
    <value>http://localhost:7001/remoting/HelloWorldService.wsdl</value>
    </property>
    <property name="serviceName">
    <value>HelloWorldService</value>
    </property>
    <property name="portName">
    <value>HelloWorldServicePort</value>
    </property>
    <property name="servicePostProcessors">
    <list>
    <bean class="com.test.BeanMappingServicePostProcessor"/>
    </list>
    </property>
    </bean>

    </beans>


    I had done same thing as in case of JPetStore example but didn't worked for me. I had also given the custom mappings for axis but still no luck with it

    I get the Deserailization Exception when returning an Employee object and class cast exception when retruning a list.


    Please provide any inputs or suggestions.


    Thanks in Advance
    MJ

  • #2
    I had resolved the issue

    Regards
    MJ

    Comment

    Working...
    X