-
Oct 13th, 2008, 08:24 AM
#1
Spring 2.5.5 and JAX-WS HTTP Authentication
I'm trying to invoke a webservice from a standa alone program after generating the client stubs using JAX-WS RI , using the JaxWsPortProxyFactoryBean.
Everytime I execute the code it is giving the error: Server returned HTTP response code: 401 for URL
I've mentioned the user name and password within the applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<bean id = "CLLIManagerImpl" class = "com.cgi.network.sdcconfigurator.CLLIManagerIm pl">
<property name="service" ref="CLLIWebserviceProxy" />
</bean>
<!-- Proxy Implementation Class -->
<bean id="CLLIManagerBean"
class="org.springframework.aop.framework.ProxyFact oryBean" >
<property name="proxyInterfaces">
<value>com.cgi.network.sdcconfigurator.CLLIManager </value>
</property>
<property name="target">
<ref bean="CLLIManagerImpl" />
</property>
<property name="interceptorNames">
<list>
<value>LogbeforeCall</value>
</list>
</property>
</bean>
<bean id="CLLIWebserviceProxy" class="org.springframework.remoting.jaxws.JaxWsPor tProxyFactoryBean">
<property name="username" value="user"></property>
<property name="password" value="pass"></property>
<property name="serviceInterface" value="uri.alcatel_com._5530.bulkcollector._1.Exte rnalBulkCollector" />
<property name="wsdlDocumentUrl" value="url" />
<property name="serviceName" value="ExternalBulkCollector" />
<property name="portName" value="ExternalBulkCollectorPort" />
<property name="useSoapAction" value="true" />
</bean>
<!-- Advices -->
<bean id = "LogbeforeCall" class = "com.cgi.network.sdcconfigurator.LogBeforeCallAdvi ce" />
I could get from the release notes of 2.5.5 that http based authentication is supported for jax-ws webservices.
Any inputs on this will be really helpful.
Last edited by cags; Oct 14th, 2008 at 01:34 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules