Announcement Announcement Module
Collapse
No announcement yet.
Using Spring Web Services for the client side Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Spring Web Services for the client side

    What solutions exist for creating the client-side web service code? Does the Spring Web Services project address that space?
    Shannon Kendrick

  • #2
    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,

    Comment


    • #3
      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.

      Comment


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

        Comment


        • #5
          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.

          Comment


          • #6
            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,

            Comment


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

              Comment

              Working...
              X