wood burning stoves 2.0*
The moose likes Web Services and the fly likes Consuming 3rd Party web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Consuming 3rd Party web services" Watch "Consuming 3rd Party web services" New topic
Author

Consuming 3rd Party web services

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi All,
I currently have to consume a third party web service.
I tried using jax-rpc approach within a spring configuration file and then soon relised that I needed to create an interfaces
class on the client side (i.e. org.thirdparty.OrderService) that was identical to the one the third party web service used (i.e. containing the operation)
I also needed to create the objects that I passed and return from the operation(i.e. org.company.domain.Order) as defined in the wsdl.
From what I have put together I understand that applicationContext_ThirdPartyWS.xml will contain all the parameters that will allow spring to create a proxy to
the third party web service, enabling the client to make a call. The BeanMappingServicePostProcessor.java is used to define a complex type object, so that it can be serilized/deserilized.

For every third party web service that I deal with would I have to do all this each time?
If the parmeters that were passing and receiving were String then the client would not need to implement a BeanMappingServicePostProcessor.java and the third party ws provider would not need to create a server-config.wsdd

If I use jax-ws will I be able to just create a applicationContext_ThirdPartyWS.xml file without any ref to servicePostProcessors and by magic the client will be able to
call any third party web services?. Can anbody calrify how I can use the spring approach to consume a third party wsdl, without generating third party stub code using wsdl2java command.


Client Configuration files:-
----------------------------
file:applicationContext_ThirdPartyWS.xml


file:BeanMappingServicePostProcessor.java


file:OrderService.java


Third Party Web service Configuration files:-
-------------------------------------------------
file:server-config.wsdd


Mat


 
Consider Paul's rocket mass heater.
 
subject: Consuming 3rd Party web services
 
Similar Threads
beanMapping, typeMapping in Axis 1 (1.4) in server-config.wsdd generates complexType in wsdl
Problem with Custom (De)Serializers with AXIS, WebSphere, EJB
Problem with Custom (De)Serializers with AXIS, WebSphere, EJB
Server Side AXIS-Web Service Unknown Exception
AXIS Web Service Configuration for WebSphere 4.0 and WebSphere 5.0