What solutions exist for creating the client-side web service code? Does the Spring Web Services project address that space?
Shannon Kendrick
What solutions exist for creating the client-side web service code? Does the Spring Web Services project address that space?
Shannon Kendrick
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,
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.
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.
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.
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,
If you are using rpc style web services you can use http://www.springframework.org/docs/...ctoryBean.html
For example, by default this will work with Axis web services:
Code:<bean id="helloWorldService" class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean"> <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>
Colin Yates
SpringSource - http://www.springsource.com - Spring Training, Consulting, and Support - "From the Source"
Please read http://www.springframework.org/documentation
Co-Author of Expert Spring MVC + Web Flow.