I Authentifizierung über WS-Security auf meinem Webservice implementiert haben, wie bei http://static.springframework.org/spring-ws/sites/1.5/reference/html/security.html beschrieben, etwa so:Frühling WS-Security sichtbar in WSDL
<bean id="callbackHandler" class="org.springframework.ws.soap.security.wss4j.callback.SimplePasswordValidationCallbackHandler">
<property name="users">
<props>
<prop key="bart">arnie</prop>
</props>
</property>
</bean>
<bean id="annotationMapping" class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping">
<property name="interceptors">
<list>
<bean class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
<property name="validationActions" value="UsernameToken" />
<property name="securementActions" value="NoSecurity" />
<property name="validationCallbackHandler" ref="callbackHandler" />
</bean> ...
jedoch Kunden (wie SoapUI) weiß nicht, dass sie sollte Sicherheit verwenden, da es in der WSDL nicht erwähnt wird. Wie kann ich es bekommen? Dies ist, wie ich es generieren:
<bean id="qwertyService" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
<property name="schemaCollection" ref="schemaCollection" />
<property name="portTypeName" value="QwertyService" />
<property name="locationUri" value="/QwertyService/" />
<property name="targetNamespace" value="http://www.ead2.nl/demo/wsdl" />
</bean>
offenbar falsch verstanden ich WS-Security und es ist nicht möglich, dies in der WSDL angeben. Fühlen Sie sich frei, dem aber zu widersprechen. –