Java Code Examples for com.sun.xml.internal.ws.api.addressing.WSEndpointReference#getEPRExtensions()
The following examples show how to use
com.sun.xml.internal.ws.api.addressing.WSEndpointReference#getEPRExtensions() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Stub.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }
Example 2
Source File: Stub.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }
Example 3
Source File: Stub.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }
Example 4
Source File: Stub.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }
Example 5
Source File: Stub.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }
Example 6
Source File: Stub.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }
Example 7
Source File: Stub.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }
Example 8
Source File: Stub.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public final WSEndpointReference getWSEndpointReference() { if (binding.getBindingID().equals(HTTPBinding.HTTP_BINDING)) { throw new java.lang.UnsupportedOperationException( ClientMessages.UNSUPPORTED_OPERATION("BindingProvider.getEndpointReference(Class<T> class)", "XML/HTTP Binding", "SOAP11 or SOAP12 Binding") ); } if (endpointReference != null) { return endpointReference; } String eprAddress = requestContext.getEndpointAddress().toString(); QName portTypeName = null; String wsdlAddress = null; List<WSEndpointReference.EPRExtension> wsdlEPRExtensions = new ArrayList<WSEndpointReference.EPRExtension>(); if (wsdlPort != null) { portTypeName = wsdlPort.getBinding().getPortTypeName(); wsdlAddress = eprAddress + "?wsdl"; //gather EPRExtensions specified in WSDL. try { WSEndpointReference wsdlEpr = wsdlPort.getEPR(); if (wsdlEpr != null) { for (WSEndpointReference.EPRExtension extnEl : wsdlEpr.getEPRExtensions()) { wsdlEPRExtensions.add(new WSEPRExtension( XMLStreamBuffer.createNewBufferFromXMLStreamReader(extnEl.readAsXMLStreamReader()), extnEl.getQName())); } } } catch (XMLStreamException ex) { throw new WebServiceException(ex); } } AddressingVersion av = AddressingVersion.W3C; this.endpointReference = new WSEndpointReference( av, eprAddress, getServiceName(), getPortName(), portTypeName, null, wsdlAddress, null, wsdlEPRExtensions, null); return this.endpointReference; }