View Full Version : Using Spring Web Services for the client side
mskendrick
Jun 27th, 2006, 09:58 AM
What solutions exist for creating the client-side web service code? Does the Spring Web Services project address that space?
Shannon Kendrick
Arjen Poutsma
Jun 28th, 2006, 01:57 AM
Not yet. We will before we reach 1.0 though. The solution will be template-based, just like any other templates in the spring framework. You will be able to use marshalling, and any of the other XML handling routines.
Cheers,
beddoes
Sep 7th, 2006, 12:26 AM
Hi,
Has there been any progress on this front? I need to be able to have my software act as a client and server now.
If its not working yet I guess I might have to look at XFire instead.
Arjen Poutsma
Sep 7th, 2006, 03:43 AM
It will be part of the next release, not the 1.0 M2. It will be the last feature before we do a 1.0.
beddoes
Sep 7th, 2006, 04:42 AM
damn, probably a little to far out for my current project due in about two months to ensure stability.
might have to look to XFire instead, thanks.
Arjen Poutsma
Sep 8th, 2006, 06:25 AM
If you are looking for an alternative, you can also look at using plain SAAJ. This approach is also used in the sample apps.
The solution we will implement will resemble SAAJ a lot, i.e. it will be message-based, not proxy/RPC like.
Cheers,
Colin Yates
Sep 8th, 2006, 08:05 AM
If you are using rpc style web services you can use http://www.springframework.org/docs/api/org/springframework/remoting/jaxrpc/JaxRpcPortProxyFactoryBean.html
For example, by default this will work with Axis web services:
<bean id="helloWorldService" class="org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean">
<property name="serviceFactoryClass" value="org.apache.axis.client.ServiceFactory"/>
<property name="wsdlDocumentUrl" value="http://localhost:8080/remoting/services/HelloWorld?wsdl"/>
<property name="namespaceUri" value="http://localhost:8080/remoting/services/HelloWorld"/>
<property name="serviceName" value="JaxRpcHelloWorldService"/>
<property name="portName" value="HelloWorld"/>
<property name="portInterface" value="hello.RemoteHelloWorld"/>
<property name="serviceInterface" value="hello.HelloWorld"/>
</bean>
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.