Search in sources :

Example 1 with SEIModel

use of com.sun.xml.ws.api.model.SEIModel in project metro-jax-ws by eclipse-ee4j.

the class Stub method createPipeline.

/**
 * Creates a new pipeline for the given port name.
 */
private Tube createPipeline(WSPortInfo portInfo, WSBinding binding) {
    // Check all required WSDL extensions are understood
    checkAllWSDLExtensionsUnderstood(portInfo, binding);
    SEIModel seiModel = null;
    Class sei = null;
    if (portInfo instanceof SEIPortInfo) {
        SEIPortInfo sp = (SEIPortInfo) portInfo;
        seiModel = sp.model;
        sei = sp.sei;
    }
    BindingID bindingId = portInfo.getBindingId();
    TubelineAssembler assembler = TubelineAssemblerFactory.create(Thread.currentThread().getContextClassLoader(), bindingId, owner.getContainer());
    if (assembler == null) {
        // TODO: i18n
        throw new WebServiceException("Unable to process bindingID=" + bindingId);
    }
    return assembler.createClient(new ClientTubeAssemblerContext(portInfo.getEndpointAddress(), portInfo.getPort(), this, binding, owner.getContainer(), ((BindingImpl) binding).createCodec(), seiModel, sei));
}
Also used : SEIModel(com.sun.xml.ws.api.model.SEIModel) BindingImpl(com.sun.xml.ws.binding.BindingImpl) WebServiceException(jakarta.xml.ws.WebServiceException) TubelineAssembler(com.sun.xml.ws.api.pipe.TubelineAssembler) BindingID(com.sun.xml.ws.api.BindingID) ClientTubeAssemblerContext(com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext)

Example 2 with SEIModel

use of com.sun.xml.ws.api.model.SEIModel 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 3 with SEIModel

use of com.sun.xml.ws.api.model.SEIModel 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 4 with SEIModel

use of com.sun.xml.ws.api.model.SEIModel in project metro-jax-ws by eclipse-ee4j.

the class RuntimeModelerDriver method main.

public static void main(String[] args) {
    if (args.length != 1) {
        System.out.println("Usage: RuntimeModelerDriver <sei_Class>");
        System.exit(-1);
    }
    try {
        Class sei = Class.forName(args[0]);
        RuntimeModeler rm = new RuntimeModeler(sei, null, BindingID.SOAP11_HTTP);
        SEIModel model = rm.buildRuntimeModel();
        System.out.println("Model generated succesful!");
    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    }
}
Also used : SEIModel(com.sun.xml.ws.api.model.SEIModel) RuntimeModeler(com.sun.xml.ws.model.RuntimeModeler)

Aggregations

SEIModel (com.sun.xml.ws.api.model.SEIModel)4 WSDLPort (com.sun.xml.ws.api.model.wsdl.WSDLPort)2 SOAPSEIModel (com.sun.xml.ws.model.SOAPSEIModel)2 BindingID (com.sun.xml.ws.api.BindingID)1 ClientTubeAssemblerContext (com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext)1 TubelineAssembler (com.sun.xml.ws.api.pipe.TubelineAssembler)1 BindingImpl (com.sun.xml.ws.binding.BindingImpl)1 WebServiceFeatureList (com.sun.xml.ws.binding.WebServiceFeatureList)1 RuntimeModeler (com.sun.xml.ws.model.RuntimeModeler)1 WebServiceException (jakarta.xml.ws.WebServiceException)1