dimanche 8 mars 2015

Create client web service with spring+jaw-ws

Hy,


I am thinking about using spring +jax-ws to access a remote web service. The problem is that I have to develop the client part and other company is going to develop the server part so according to readed spring examples the next configuration would be valid to create the client part:



<bean id="accountWebService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
**<property name="serviceInterface" value="example.AccountService"/>**
<property name="wsdlDocumentUrl" value="http://localhost:8888/AccountServiceEndpoint?WSDL"/>
<property name="namespaceUri" value="http://example/"/>
<property name="serviceName" value="AccountService"/>
<property name="portName" value="AccountServiceEndpointPort"/>
</bean>


As you can see, the spring client system needs the remote interface(serviceInterface property). I mean, in the old times with the wdsl specification would be enough to create java classes that represent a proxy to connect to the remote service but with spring you need also the java remote interface the other company has to give me so the other company has to use java to create the remote web service. I think this is bad, am I right?


Thanks


Aucun commentaire:

Enregistrer un commentaire