【发布时间】:2014-05-28 15:13:26
【问题描述】:
我在 WebSphere 上运行了两个 EAR。
在每一个中我都有相同的WebService,实现如下:
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;
}
}
在这两个 Web 应用程序中,WSDL 都正确生成:
来自https://localhost:4443/webapp1/GestionXService?WSDL
和https://localhost:4443/GestionXService?WSDL 内容相同。
但问题是我无法从两个 Web 应用之一(具有上下文 / 的一个)生成 XSD,它说:
错误:一般错误。
无法生成指定的 XSD 文件!
(在其他方面它工作正常)
我的问题是:
- 我想在某处放置一个断点,看看生成 XSD 时发生了什么。我应该把它放在哪里?
- 我在哪里可以找到这两个 web 应用程序之间的差异?看看是什么阻止了其中一个生成 XSD。
- 还有其他线索吗?
谢谢。
【问题讨论】:
标签: java web-services websphere