Announcement Announcement Module
No announcement yet.
Accessing web service over ssl Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing web service over ssl

    I am trying to access web service over SSL - I am using WebServiceTemplate and accessing service using https. Here're the snippet of configuration -
    <bean id="messageFactory" class=" ssageFactory" />

    <bean id="webServiceTemplate" class=" ceTemplate">

    <property name="marshaller" ref="jaxbMarshaller"/>
    <property name="unmarshaller" ref="jaxbMarshaller"/>
    <constructor-arg ref="messageFactory" />
    <property name="defaultUri" value="" />
    <property name="interceptors">
    <ref local="xwsSecurityInterceptor" />

    <bean id="xwsSecurityInterceptor" class=" wsSecurityInterceptor">

    <property name="policyConfiguration" value="/securityPolicy-test.xml"/>
    <property name="callbackHandlers">
    <ref bean="callbackHandler"/>

    <bean id="callbackHandler" class=" allback.SimplePasswordValidationCallbackHandler"/>

    <bean id="jaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
    <property name="contextPath" value="" />

    And here is the
    <xwss:SecurityConfiguration dumpMessages="true" xmlns:xwss="">
    <xwss:Timestamp />
    ameToken name="username" password="password" digestPassword="false" useNonce="false"/>
    I get the following error: n: I/O error: No subject alternative DNS name matching found.; nested exception is No subject alternative DNS name matching found.

    Looking at the spring ws documentation, I could not find any mention as to how a web service client can access services over https (SSL). There's no mention of configuration that needs to be in place for this kind of service access. Wondering if you have any pointer or reference to resolve it? I would appreciate your help.


  • #2
    Sorry for not getting to this sooner. We are in the process of moving to StackOverflow for our forums.

    This question is probably a better candidate for StackOverflow, perhaps against the #spring-ws tag. If you do post it there, please reply here with the link.