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));
}
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);
}
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);
}
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();
}
}
Aggregations