Forums Register Login

Consuming 3rd Party web services

+Pie Number of slices to send: Send
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


There were millions of the little blood suckers. But thanks to this tiny ad, I wasn't bitten once.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2809 times.
Similar Threads
Problem with Custom (De)Serializers with AXIS, WebSphere, EJB
Server Side AXIS-Web Service Unknown Exception
Problem with Custom (De)Serializers with AXIS, WebSphere, EJB
beanMapping, typeMapping in Axis 1 (1.4) in server-config.wsdd generates complexType in wsdl
AXIS Web Service Configuration for WebSphere 4.0 and WebSphere 5.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:32:05.