2009/1/12 elhanan <[email protected]>: > GetAgentDetails parameters=new GetAgentDetails();
[snip] > JAXBContext ctx = JAXBContext.newInstance(ObjectFactory.class); > final Dispatch createDispatch = service.createDispatch(q, ctx, > Service.Mode.MESSAGE); > > final Object invoke = createDispatch.invoke(parameters); Is GetAgentDetails a JAXB-generated class? That's not how Dispatch clients work -- you need a Source, SOAPMessage or DataSource object: http://cwiki.apache.org/CXF20DOC/dispatch-clients.html Out of interest, does anyone know if there is an easy way to pull the XML out of a JAXB object so you could use it in this sort of way? That would be useful... Andrew. -- New site launched: http://biotext.org.uk/ I am retiring my old email addresses. Please use [email protected] where firstname = andrew.
