Try the XmlBeansServiceFactory -
Service serviceModel = new XmlBeansServiceFactory().create(TaxonAPI.class);
- Dan
Tim Robertson wrote:
Hi,
I am successfully using XFire to provide my services using XMLBeans.
I am still struggling to get a client working with code as follows:
Service serviceModel = new ObjectServiceFactory().create(TaxonAPI.class);
TaxonAPI service = (TaxonAPI) new
XFireProxyFactory().create(serviceModel,
"http://localhost:8080/col2005/services/taxonApi");
log.info(service.GetRootTConcepts());
log.info(service.GetRootTConcepts().getDataSet()); // is null
The soap response is arriving as it is logged, but it seems that it
isn't building up the
object model as the first element is null.
Any ideas greatly appreciated - I'm using java 5 and tried both the latest
snapshot and the latest stable release.
I can’t put a full log as it’s too long but a partial log is at the
bottom of the handlers processing the response,
I've stripped ou the response XML as it's long
Thanks
Tim
DEBUG [HandlerPipeline] Invoking handler
org.codehaus.xfire.soap.handler.ReadHeadersHandler in phase parse
DEBUG [HandlerPipeline] Invoking handler
org.codehaus.xfire.handler.LocateBindingHandler in phase dispatch
DEBUG [HandlerPipeline] Invoking handler
org.codehaus.xfire.soap.handler.SoapBodyHandler in phase dispatch
DEBUG [HandlerPipeline] Invoking handler
org.codehaus.xfire.soap.handler.SoapActionInHandler in phase dispatch
DEBUG [HandlerPipeline] Invoking handler
org.codehaus.xfire.soap.handler.ValidateHeadersHandler in phase pre-invoke
DEBUG [HttpTransport] Creating new channel for uri:
urn:xfire:transport:http:11431063287813-929985856
DEBUG [XFireProxy] Result [EMAIL PROTECTED]
INFO [TaxonApiClient] Dataset: null
--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com