I have two EARs running on WebSphere.
In each one I have the same WebService, implemented as follows:
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import org.springframework.stereotype.Component;
import org.springframework.web.context.support.SpringBeanAutowiringSupport;
@WebService(serviceName = "GestionXService")
@SOAPBinding(style = Style.RPC)
@Component(value = "gestionXService")
public class GestionXService extends SpringBeanAutowiringSupport {
@WebMethod(operationName = "searchClient")
@WebResult(name = "ListCustomerEGBean")
public CustomerEGBean searchClient(@WebParam(name = "nd") final String nd) {
return null;
}
}
In both web applications, the WSDL is generated correctly:
from https://localhost:4443/webapp1/GestionXService?WSDL
and https://localhost:4443/GestionXService?WSDL
and has the same contents.
But the problem is that I can't generate the XSD from one of the two webapps (the one with context /
), it says:
Error: Generic Error.
Could not generate specified XSD file!
(In the other it works fine)
My question is:
Thank you.
com.ibm.ws.websvcs.*=all
as a trace string. The JAX-WS traces often reveal the root cause for problems that you wouldn't see in the normal log files.