Announcement Announcement Module
Collapse
No announcement yet.
Spring client using Axis WebService Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      You may try the example at:
      http://javaboutique.internet.com/tut...g/index-3.html

      Comment


      • #4
        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

        Comment

        Working...
        X