I need to create dynamic invoker of webservices based on their WSDL. any idea? thanks
A:
See JAX-RPC; what you need is Dynamic proxies or Dynamic Invocation Interface (DII) if client doesn't know the remote method name or its signature.
Here a good example of what you can do with JAX-RPC having just a WSDL as input.
As said in the comment, JAX-RPC is evolved to JAX-WS.
systempuntoout
2010-03-22 11:18:37
no - JAX-RPC is outdated. JAX-WS is "fresh"
Bozho
2010-03-22 11:21:20
Does it mean that anyway I should parse the wsdl to get the required information like: servicename, portTypes, operations,...?
Milan
2010-03-22 11:29:36
@Bozho Ok for the freshness :); but help me to find an example with JAX-WS that uses DII.
systempuntoout
2010-03-22 15:52:16
JAX-WS's DII is the Dispatch object (`javax.xml.ws.Dispatch`).
Pascal Thivent
2010-03-22 16:57:16
A:
http://cxf.apache.org/docs/dynamic-clients.html
Generates clients on the fly.
Calm Storm
2010-03-22 11:28:48
yes, but anyway before I invoke the webservice I should know the operation and the message?
Milan
2010-03-22 11:31:24
Ok, If you dont know what operation/message you are calling, how are you plannign to invoke a webservice? This CXF thingy generates clients on the fly in that if the wsdl grammar has changed it gets regenerated. You still need to know an operation name :)
Calm Storm
2010-03-22 11:32:54
You are right :) I need to know the operation name:) But what about the messages sent and recieved? If I should make dynamic client invoker, it means that I should write wsdl parser anyway?
Milan
2010-03-22 11:36:50
+1
A:
have you read this pages ?
Update
drorhan
2010-03-22 15:43:54
"Dynamic Discovery and Invocation of Web services", Date: 01 Aug 2001.Isnt little bit complicated, doesnt exist easier way?
Milan
2010-03-22 16:43:44
A:
I think you are looking for this
Dynamic Web service invocation from WSDL
super
2010-09-28 13:33:52