Results 1 to 4 of 4

Thread: Spring client using Axis WebService

  1. #1
    Join Date
    Jun 2007
    Location
    Luxembourg, Europe
    Posts
    13

    Default Spring client using Axis WebService

    Hi,

    I have been trying to setup a web service client in spring. I generated the java class using the axis wsdl2java tool. If I use in a plain java class (without spring xml config) I can access the Web service. Since I am migrating my applications to spring, I would like to migrate that too. I would like to konw if anyone got a working application that uses an axis web service and client using a basic http authentication. Please Hlep

    thanks,

    J

  2. #2
    Join Date
    Jun 2007
    Location
    Luxembourg, Europe
    Posts
    13

    Default

    Hello,

    Does anyone can give me a hint on where start looking I tried to setup the following

    Code:
    <bean id="apcWebService" class="lu.ept.dt.access.luxdsl.ws.apc.MyJaxRpcPortProxyFactoryBean">
        	<property name="serviceInterface" value="com.alcatel.apc.ApcRemoteService"/>
    	    <property name="serviceName" value="ApcRemoteService"/>
    	    <property name="lookupServiceOnStartup" value="true"/> 
    	  	<property name="wsdlDocumentUrl" value="http://192.168.1.5:8080/soap/services/ApcRemotePort?wsdl" />
    		<property name="namespaceUri" value="uri://alcatel.com/apc/2.0"/>
    		<property name="portName" value="ApcRemotePort"/>
    	 <property name="username" value="jam"/>
    		<property name="password" value="jam"/>
    		  <property name="endpointAddress" value="http://192.168.1.5:8080/soap/services/ApcRemotePort/2.1/"/>
    		<property name="serviceFactoryClass" value="org.apache.axis.client.ServiceFactory" /> 
    	</bean>
    I am not really lucky it is not working I still get a authentication error. Does anyone has a working example with spring and axis.

    Thanks,

    J

  3. #3
    Join Date
    Jul 2007
    Location
    North Carolina
    Posts
    23

  4. #4
    Join Date
    Jun 2007
    Location
    Luxembourg, Europe
    Posts
    13

    Thumbs up

    Hi,

    The hint is great, I decide to implement the client the same way as described in the tutorial and it works fine.

    Cheers,

    J

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •