XFire Response: The body of the SOAP message doesn´t have xsi:type in the out parameter
2011-11-29 17:39:51 GMT
Hi everyone, I have a xfire service in my project (Java - Struts) and in the reply my webservice doesn´t include the xsi:type in the out parameter. This is the reply:
Text of the reply
I need that output parameter has the next format: Text of...
I have a Servlet for build the service:
...
public class XFireServicesServlet extends XFireServlet{
public void init() throws ServletException
{
super.init();
Service service = null;
ObjectServiceFactory factory = new ObjectServiceFactory(getXFire().getTransportManager(), new AegisBindingProvider());
Map properties = new HashMap();
properties.put(ObjectServiceFactory.STYLE, SoapConstants.STYLE_WRAPPED);
properties.put(ObjectServiceFactory.USE, SoapConstants.USE_LITERAL);
service = factory.create(TestService.class,
"TestService",
"http://daco.es/web/ws/TestService",
properties);
service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, TestServiceImpl.class);
getController().getServiceRegistry().register(service);
}
}
...
And the Service just take a String and return another one.
Interface:
...
public String testOperation(String request) throws java.rmi.RemoteException;
...
Class:
...
public String testOperation(String request) throws RemoteException {
String response = null;
try {
...
response = ...
return response;
} catch (Exception e) {
...
}
return null;
}
...
¿Can anyone help me? I´m going crazy :)
¡Thanks a lot!
Sent from the XFire - User mailing list archive at Nabble.com.
RSS Feed