Announcement Announcement Module
Collapse
No announcement yet.
Spring Webservices problem pass through java proxy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Webservices problem pass through java proxy

    Hi all,
    I have an intermittent issue with invoking Spring web services.

    I have a scenario where all the webservices requests go though

    Code:
    Apache webserver --> Java Proxy --> tomcat
    Java Proxy here is our own implementation of TCP/IP packet forwarder which listens on particular port and forwards the request to tomcat.

    i am able to get the response 6 out of 10 times.


    other times i am getting the SOAP fault message and inside the tomcat server i can see the following error.

    Code:
    SEVERE: SAAJ0511: Unable to create envelope from given source
    i am using spring 2.5.6, spring ws 1.5.7.
    i am using jdom to create the response.

    below is my config file content.

    Code:
    <bean
    		class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping ">
    		<property name="mappings">
    			<props>
    				<prop key="{my namespace}userRequest">userEndPoint</prop>
    			</props>
    		</property>
    		<property name="interceptors">
    			<bean
    				class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor" />
    		</property>
    	</bean>
    
    	<bean id="user"
    		class="org.springframework.ws.wsdl.wsdl11.DynamicWsdl11Definition">
    		<property name="builder">
    			<bean
    				class="org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder">
    				<property name="schema" value="xsd file location" />
    				<property name="portTypeName" value="user" />
    				<property name="" value="service location url" />
    			</bean>
    		</property>
    	</bean>
    i don't have any problem invoking the Axis2 webservices under the same scenario of webserver --> Java Proxy --> tomcat


    Please advice.
    Last edited by koneru9999; Mar 8th, 2011, 02:48 AM. Reason: adding more details

  • #2
    thanks koneru9999
    _________

    funny stories

    Comment

    Working...
    X