Hi,
My spring app consumes many JAX-RPC services, and I'm wondering wether my setup could be improved.
Currently, for each new service to be consumed, I'm doing the following:
* Generate the portInterface (and required classes) from the service's WSDL using Axis' wsdl2java tool
* Hand-craft the serviceInterface (aka buisness interface) that mirrors the portInterface but does not declare RemoteExceptions
* Add JaxRpcPortProxyFactoryBean to my applicationContext
The first two steps of this routine are dumb and repetitive, so I have the gut feeling that someone smarter than I has already come up with a more convenient way to do this. Anyone?
On a sidenote, the services I'm consuming are generated using gsoap2 to interface with a C++ app and are out of my control. The code I'm generating with wsdl2java is butt-ugly, mostly because the C++ people prefix their variable names with characters indicating the type. This means I end up with accessors like getSName() or getIAmount() and so on. I really don't want to expose those ugly interfaces to my app, so I'm thinking about writing adapters for each service - which would be another repetitive step I'd rather spare myself. How does everyone else handle this?
Thanks in advance,
Dan


Reply With Quote