Announcement Announcement Module
Collapse
No announcement yet.
Is it possible to instruct SWS to generate a WSDL containing wsdl:fault? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to instruct SWS to generate a WSDL containing wsdl:fault?

    Hello,

    I have an annotated endpoint that throws a custom exception that it's annotated with @SoapFault

    But the WSDL, that is created dynamically, doesn't show a wsdl:fault in the wsdl:operation neither exists an xs:elementName for that exception.

    Is it possible to instruct Spring-WS to dynamically generated the optional fault elements within the operations?

    Here it is my web service application context file:

    Code:
    <?xml  version="1.0" encoding="UTF-8"?>
    <beans ...>
    	<context:component-scan base-package="com.malsolo.server.webservice" />
    	<sws:annotation-driven/>
    	<sws:dynamic-wsdl id="service" portTypeName="ServicePort" locationUri="/webservice/" targetNamespace="http://server.malsolo.com/webservice/schemas">
    		<sws:xsd location="/WEB-INF/service.xsd"/>
    	</sws:dynamic-wsdl>
    	
    	<bean id="id" class="org.springframework.ws.soap.server.endpoint.SoapFaultAnnotationExceptionResolver">
    		<property name="defaultFault" value="SERVER" />
    	</bean>
    	
    </beans>
Working...
X