Announcement Announcement Module
Collapse
No announcement yet.
Setting SoapActions in generated WSDL Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting SoapActions in generated WSDL

    Hi guys,

    In my WebService, I generate wsdl from an xsd file:

    Code:
    <bean id="utilisateur"
    		class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
    		<property name="schema" ref="schema" />
    		<property name="portTypeName" value="Utilisateur" />
    		<property name="locationUri"
    			value="http://localhost:8080/utilisateurService/" />
    </bean>
    <bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
    		<property name="xsd" value="/WEB-INF/services/utilisateur.xsd" />
    </bean>
    It works perfectly but I would like to go further and specify the <soap:operation soapAction="" /> to value:"http://myWebService.com/utilisateur"

    I think, I must had :
    Code:
    <property name="soapActions" ref="properties" />
    into my bean "utilisateur" and create the bean:

    Code:
    <bean id="properties" class="java.util.Properties">
    		<property name="property">
    
    		</property>
    </bean>
    but I didn't find how to add a <key , value> parameter.

    If somebody knows, it will be very helpful for me.

    Thanks

  • #2
    Got it, was simple if you are aware of spring config, here is the code:

    Code:
    <bean id="utilisateur"
    		class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
    	<property name="schema" ref="schema" />
    	<property name="soapActions">
    		<props>
    			<prop key="Utilisateur">Test</prop>
    		</props>
    	</property>
    	<property name="portTypeName" value="Utilisateur" />
    	<property name="locationUri"  value="http://localhost:8080/ModecWS/utilisateurService/" />
    </bean>
    Hope this will be useful for somebody else!

    Comment

    Working...
    X