I am writing some "general purpose" code to allow me to invoke web service without knowing much about it. Code below is example of dynamic call from http://cxf.apache.org/docs/dynamic-clients.html:
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance(); Client client = dcf.createClient(serviceWsdlUrl); Object[] res = client.invoke(serviceOperation, serviceParameters); My understanding is that when client is created wsdl is read and cxf then creates and adds types from wsdl to the classpath (on the fly). invoke method then executes actual web service / "service operation" (with parameters). Result is then passed back as array of objects but it is strongly typed. I would like to be able to do the above but with invoke not going against actual server but rather loading response soap from local file. Please keep in mind that I don't have classes on the classpath I want to unmarshal and that I want to match "Object[] res" structure so this process works the same way when I connect to the server and start using actual web service. Any help would be appreciated ;-) -- View this message in context: http://cxf.547215.n5.nabble.com/testing-dynamic-clients-tp3331418p3331418.html Sent from the cxf-user mailing list archive at Nabble.com.
