新@UsesJAXBContex註釋JAXBContextFactoryin JAXWS 2.1.5 - JAXB 2.2大概是什麼,我需要爲。 不過的WebLogic 10.3.1使用JAXWS 2.1.1,2.1.3 JAXB。
另一種解決方案是使用:
@WebServiceProvider(portName = "Port", serviceName = "Service", targetNamespace = "tns", wsdlLocation = "/wsdls/x.wsdl")
@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http")
@ServiceMode(value = javax.xml.ws.Service.Mode.MESSAGE)
public class ServiceProvider implements Provider<SOAPMessage>
這給出了訪問SOAP XML消息。我仍然需要找出方法名稱的位置。
相反的:
@WebService(portName = "Port", serviceName = "Service", targetNamespace = "tns",
wsdlLocation = "/wsdls/x.wsdl", endpointInterface = "tns.PortType")
@BindingType("http://schemas.xmlsoap.org/wsdl/soap/http")
public class ServicePort implements PortType