Lines Matching defs:portInterface
293 public <T> T getPort(QName portName, Class<T> portInterface) throws WebServiceException {
294 return getPort(portName, portInterface, EMPTY_FEATURES);
297 public <T> T getPort(QName portName, Class<T> portInterface, WebServiceFeature... features) {
298 if (portName == null || portInterface == null)
304 tWsdlService = getWSDLModelfromSEI(portInterface);
307 throw new WebServiceException(ProviderApiMessages.NO_WSDL_NO_PORT(portInterface.getName()));
312 return getPort(portModel.getEPR(), portName, portInterface, features);
315 public <T> T getPort(EndpointReference epr, Class<T> portInterface, WebServiceFeature... features) {
316 return getPort(WSEndpointReference.create(epr),portInterface,features);
319 public <T> T getPort(WSEndpointReference wsepr, Class<T> portInterface, WebServiceFeature... features) {
321 QName portTypeName = RuntimeModeler.getPortTypeName(portInterface);
324 return getPort(wsepr,portName,portInterface,features);
327 private <T> T getPort(WSEndpointReference wsepr, QName portName, Class<T> portInterface,
329 SEIPortInfo spi = addSEI(portName, portInterface, features);
330 return createEndpointIFBaseProxy(wsepr,portName,portInterface,features, spi);
332 public <T> T getPort(Class<T> portInterface, WebServiceFeature... features) {
334 QName portTypeName = RuntimeModeler.getPortTypeName(portInterface);
339 wsdlService = getWSDLModelfromSEI(portInterface);
342 throw new WebServiceException(ProviderApiMessages.NO_WSDL_NO_PORT(portInterface.getName()));
350 return getPort(portName, portInterface,features);
353 public <T> T getPort(Class<T> portInterface) throws WebServiceException {
354 return getPort(portInterface, EMPTY_FEATURES);
578 private <T> T createEndpointIFBaseProxy(@Nullable WSEndpointReference epr,QName portName, final Class<T> portInterface,
589 BindingImpl binding = eif.createBinding(webServiceFeatures,portInterface);
592 T proxy = createProxy(portInterface, pis);
595 serviceInterceptor.postCreateProxy((WSBindingProvider)proxy, portInterface);
600 private <T> T createProxy(final Class<T> portInterface, final SEIStub pis) {
611 Object proxy = Proxy.newProxyInstance(portInterface.getClassLoader(),
612 new Class[]{portInterface, WSBindingProvider.class, Closeable.class}, pis);
613 return portInterface.cast(proxy);
651 private SEIPortInfo addSEI(QName portName, Class portInterface, WebServiceFeature... features) throws WebServiceException {
655 return createSEIPortInfo(portName, portInterface, features);
660 spi = createSEIPortInfo(portName, portInterface, features);
667 private SEIPortInfo createSEIPortInfo(QName portName, Class portInterface, WebServiceFeature... features) {
669 RuntimeModeler modeler = new RuntimeModeler(portInterface, serviceName, wsdlPort, features);
670 modeler.setClassLoader(portInterface.getClassLoader());
673 return new SEIPortInfo(this, portInterface, (SOAPSEIModel) model, wsdlPort);