jax-ws:을 얻는 방법을 처리하의 시작/끝 들어오는 처리 비누 메시지

StackOverflow https://stackoverflow.com/questions/1808032

  •  05-07-2019
  •  | 
  •  

문제

황:jax-ws 웹 서비스에서 Weblogic 어플리케이션;wsdl 처음 개발,를 포함 사용자 지정적 파일입니다.

하고 싶을 얻을 처리하는 실제적인 컨텍스트를 포함하는 것입니다 프로세스에 들어오는 비누 xml 메시지 되었습 unmarshalled 으로 java 를 개체입니다.

다음하고 싶 을 얻 이 unmarshaller 이 포함 컨텍스트 보고서는 실제로 사용됩니다 동안 작성된.다음 설정의 일부 속성이 unmarshaller(예:리스너와 idresolver).

도움이 되었습니까?

해결책

새로운 @UsesJAXBContex 주석 JAXBContextFactoryin jaxws2.1.5-를 포함 2.2 은 아마도 내가 무슨 필요합니다.그러나 weblogic10.3.1 사용 jaxws2.1.1,를 포함 2.1.3.

다른 솔루션을 사용:

@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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top