use of com.sun.xml.ws.model.SOAPSEIModel in project metro-jax-ws by eclipse-ee4j.
the class WSServiceDelegate method createSEIPortInfo.
private SEIPortInfo createSEIPortInfo(QName portName, Class portInterface, WebServiceFeatureList features) {
WSDLPort wsdlPort = getPortModel(wsdlService, portName);
SEIModel model = buildRuntimeModel(serviceName, portName, portInterface, wsdlPort, features);
return new SEIPortInfo(this, portInterface, (SOAPSEIModel) model, wsdlPort);
}
use of com.sun.xml.ws.model.SOAPSEIModel in project metro-jax-ws by eclipse-ee4j.
the class SEIPortInfoTest method createSEIPortInfo.
private SEIPortInfo createSEIPortInfo() throws MalformedURLException {
WSServiceDelegate delegate = (WSServiceDelegate) WSService.create(WSDL_URL, SERVICE_NAME);
WSDLPort wsdlPort = delegate.getPortModel(delegate.getWsdlService(), PORT_NAME);
SEIModel model = delegate.buildRuntimeModel(delegate.getServiceName(), PORT_NAME, PORT_INTERFACE, wsdlPort, new WebServiceFeatureList());
return new SEIPortInfo(delegate, PORT_INTERFACE, (SOAPSEIModel) model, wsdlPort);
}
use of com.sun.xml.ws.model.SOAPSEIModel in project Payara by payara.
the class MonitoringPipe method firePreInvocation.
private void firePreInvocation(HttpServletRequest httpRequest, Packet pipeRequest, JAXWSEndpointImpl endpointTracer, SOAPMessageContextImpl soapMessageContext, JavaCallInfo javaCallInfo) {
if (seiModel instanceof SOAPSEIModel) {
SOAPSEIModel soapSEIModel = (SOAPSEIModel) seiModel;
Globals.get(MonitorFilter.class).filterRequest(pipeRequest, new MonitorContextImpl(javaCallInfo, soapSEIModel, wsdlModel, ownerEndpoint, endpoint));
}
// Invoke preProcessRequest on global listeners. If there's a global listener we get
// a trace ID back to trace this message
String messageTraceId = wsMonitor.preProcessRequest(endpointTracer);
if (messageTraceId != null) {
soapMessageContext.put(MESSAGE_ID, messageTraceId);
wsMonitor.getThreadLocal().set(new ThreadLocalInfo(messageTraceId, httpRequest));
}
try {
// Invoke processRequest on global listeners
endpointTracer.processRequest(soapMessageContext);
} catch (Exception e) {
// temporary - need to send back SOAP fault message
}
}
use of com.sun.xml.ws.model.SOAPSEIModel in project Payara by payara.
the class MonitoringPipe method firePostInvocation.
private void firePostInvocation(HttpServletResponse httpResponse, Packet pipeResponse, Packet pipeRequest, JAXWSEndpointImpl endpointTracer, SOAPMessageContextImpl soapMessageContext) {
if (seiModel instanceof SOAPSEIModel) {
SOAPSEIModel soapSEIModel = (SOAPSEIModel) seiModel;
Globals.get(MonitorFilter.class).filterResponse(pipeRequest, pipeResponse, new MonitorContextImpl(soapSEIModel.getDatabinding().deserializeRequest(pipeRequest), soapSEIModel, wsdlModel, ownerEndpoint, endpoint));
}
// Make the response packet available in the MessageContext
soapMessageContext.setPacket(pipeResponse);
try {
// Invoke processRequest on global and local listeners
endpointTracer.processResponse(soapMessageContext);
} catch (Exception e) {
// temporary - need to send back SOAP fault message
}
String messageTraceId = (String) soapMessageContext.get(MESSAGE_ID);
if (messageTraceId != null) {
wsMonitor.postProcessResponse(messageTraceId, new HttpResponseInfoImpl(httpResponse));
}
}
Aggregations