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!
--
View this message in context:
http://old.nabble.com/XFire-Response%3A-The-body-of-the-SOAP-message-doesn%C2%B4t-have-xsi%3Atype-in-the-out-parameter-tp32881422p32881422.html
Sent from the XFire - User mailing list archive at Nabble.com.