Search in sources :

Example 1 with SOAPSEIModel

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);
}
Also used : SEIModel(com.sun.xml.ws.api.model.SEIModel) SOAPSEIModel(com.sun.xml.ws.model.SOAPSEIModel) WSDLPort(com.sun.xml.ws.api.model.wsdl.WSDLPort)

Example 2 with SOAPSEIModel

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);
}
Also used : SOAPSEIModel(com.sun.xml.ws.model.SOAPSEIModel) SEIModel(com.sun.xml.ws.api.model.SEIModel) WebServiceFeatureList(com.sun.xml.ws.binding.WebServiceFeatureList) WSDLPort(com.sun.xml.ws.api.model.wsdl.WSDLPort)

Example 3 with SOAPSEIModel

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
    }
}
Also used : MonitorContextImpl(org.glassfish.webservices.monitoring.MonitorContextImpl) ThreadLocalInfo(org.glassfish.webservices.monitoring.ThreadLocalInfo) SOAPSEIModel(com.sun.xml.ws.model.SOAPSEIModel) MonitorFilter(org.glassfish.webservices.monitoring.MonitorFilter)

Example 4 with SOAPSEIModel

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));
    }
}
Also used : MonitorContextImpl(org.glassfish.webservices.monitoring.MonitorContextImpl) SOAPSEIModel(com.sun.xml.ws.model.SOAPSEIModel) HttpResponseInfoImpl(org.glassfish.webservices.monitoring.HttpResponseInfoImpl) MonitorFilter(org.glassfish.webservices.monitoring.MonitorFilter)

Aggregations

SOAPSEIModel (com.sun.xml.ws.model.SOAPSEIModel)4 SEIModel (com.sun.xml.ws.api.model.SEIModel)2 WSDLPort (com.sun.xml.ws.api.model.wsdl.WSDLPort)2 MonitorContextImpl (org.glassfish.webservices.monitoring.MonitorContextImpl)2 MonitorFilter (org.glassfish.webservices.monitoring.MonitorFilter)2 WebServiceFeatureList (com.sun.xml.ws.binding.WebServiceFeatureList)1 HttpResponseInfoImpl (org.glassfish.webservices.monitoring.HttpResponseInfoImpl)1 ThreadLocalInfo (org.glassfish.webservices.monitoring.ThreadLocalInfo)1