Hi all,
Does anyone know if there would be any problems accessing a service exposed
using CXF using XFire 1.* code?
I've created a service that has two methods:
log(String, Date, String, Int)
logMultiple(List)
LogEntry is a POJO I have created myself. When I call the log method, all
is fine and it works as I expected. But when I try the logMultiple method,
I hit some problems. The code that is sending out the request sends out a
list of LogEntry classes but when it gets to my web service that list is
always empty?!?
Does anyone have any clue why this might be happening? I'm still looking
into it now but I don't want to waste a whole day on this.
Here's the XFire 1.* code I'm using to send off my request to the service...
private ISearchLogger getService() throws MalformedURLException {
synchronized (this) {
if (service == null) {
Service serviceModel = new ObjectServiceFactory()
.create(ISearchLogger.class);
service = (ISearchLogger) new XFireProxyFactory().create(serviceModel,
this.loggingServiceUrl);
Client client = ((XFireProxy) Proxy.getInvocationHandler(service))
.getClient();
client.setTimeout(loggingServiceTimeout);
}
return service;
}
}
private void sendLogEntries2(int num) {
List entries = new ArrayList();
for (int i = 0; i < num; i++) {
entries.add(getEntryFromQueue());
}
try {
if (entries.size() > 0) {
LOGGER.debug("Sending queued log entries...");
getService().logMultipleEntries(entries);
}
} catch (MalformedURLException e) {
LOGGER.error(e);
}
}
Thanks for any input,
Lee
--
View this message in context:
http://www.nabble.com/Accesiing-A-CXF-Service-From-XFire-1.*-Code-tf4241862.html#a12070095
Sent from the cxf-user mailing list archive at Nabble.com.