Java Code Examples for com.sun.xml.internal.ws.api.BindingID#SOAP11_HTTP

The following examples show how to use com.sun.xml.internal.ws.api.BindingID#SOAP11_HTTP . 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: RuntimeWSDLParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) {
    if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) {
        for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) {
            BindingID bindingId = f.create(transport, soapVersion);
            if(bindingId!=null) {
                return bindingId;
            }
        }
    }
    return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP;
}
 
Example 2
Source File: RuntimeModeler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private BindingID getDefaultBindingID() {
BindingType bt = getAnnotation(portClass, BindingType.class);
if (bt != null) return BindingID.parse(bt.value());
SOAPVersion ver = getSoapVersion(features);
boolean mtomEnabled = features.isEnabled(MTOMFeature.class);
if (SOAPVersion.SOAP_12.equals(ver)) {
    return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP;
} else {
    return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP;
}
}
 
Example 3
Source File: WsgenOptions.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
BindingID getBindingID(String protocol) {
    if (protocol.equals(SOAP11))
        return BindingID.SOAP11_HTTP;
    if (protocol.equals(X_SOAP12))
        return BindingID.SOAP12_HTTP;
    String lexical = nonstdProtocols.get(protocol);
    return (lexical != null) ? BindingID.parse(lexical) : null;
}
 
Example 4
Source File: WsgenOptions.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
BindingID getBindingID(String protocol) {
    if (protocol.equals(SOAP11))
        return BindingID.SOAP11_HTTP;
    if (protocol.equals(X_SOAP12))
        return BindingID.SOAP12_HTTP;
    String lexical = nonstdProtocols.get(protocol);
    return (lexical != null) ? BindingID.parse(lexical) : null;
}
 
Example 5
Source File: WsgenOptions.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
BindingID getBindingID(String protocol) {
    if (protocol.equals(SOAP11))
        return BindingID.SOAP11_HTTP;
    if (protocol.equals(X_SOAP12))
        return BindingID.SOAP12_HTTP;
    String lexical = nonstdProtocols.get(protocol);
    return (lexical != null) ? BindingID.parse(lexical) : null;
}
 
Example 6
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) {
    if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) {
        for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) {
            BindingID bindingId = f.create(transport, soapVersion);
            if(bindingId!=null) {
                return bindingId;
            }
        }
    }
    return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP;
}
 
Example 7
Source File: RuntimeModeler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private BindingID getDefaultBindingID() {
BindingType bt = getAnnotation(portClass, BindingType.class);
if (bt != null) return BindingID.parse(bt.value());
SOAPVersion ver = getSoapVersion(features);
boolean mtomEnabled = features.isEnabled(MTOMFeature.class);
if (SOAPVersion.SOAP_12.equals(ver)) {
    return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP;
} else {
    return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP;
}
}
 
Example 8
Source File: RuntimeWSDLParser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) {
    if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) {
        for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) {
            BindingID bindingId = f.create(transport, soapVersion);
            if(bindingId!=null) {
                return bindingId;
            }
        }
    }
    return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP;
}
 
Example 9
Source File: RuntimeWSDLParser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) {
    if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) {
        for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) {
            BindingID bindingId = f.create(transport, soapVersion);
            if(bindingId!=null) {
                return bindingId;
            }
        }
    }
    return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP;
}
 
Example 10
Source File: WsgenOptions.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
BindingID getBindingID(String protocol) {
    if (protocol.equals(SOAP11))
        return BindingID.SOAP11_HTTP;
    if (protocol.equals(X_SOAP12))
        return BindingID.SOAP12_HTTP;
    String lexical = nonstdProtocols.get(protocol);
    return (lexical != null) ? BindingID.parse(lexical) : null;
}
 
Example 11
Source File: WsgenOptions.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
BindingID getBindingID(String protocol) {
    if (protocol.equals(SOAP11))
        return BindingID.SOAP11_HTTP;
    if (protocol.equals(X_SOAP12))
        return BindingID.SOAP12_HTTP;
    String lexical = nonstdProtocols.get(protocol);
    return (lexical != null) ? BindingID.parse(lexical) : null;
}
 
Example 12
Source File: WSServiceDelegate.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void addPort(QName portName, String bindingId, String endpointAddress) throws WebServiceException {
    if (!ports.containsKey(portName)) {
        BindingID bid = (bindingId == null) ? BindingID.SOAP11_HTTP : BindingID.parse(bindingId);
        ports.put(portName,
                new PortInfo(this, (endpointAddress == null) ? null :
                        EndpointAddress.create(endpointAddress), portName, bid));
    } else
        throw new WebServiceException(DispatchMessages.DUPLICATE_PORT(portName.toString()));
}
 
Example 13
Source File: RuntimeWSDLParser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) {
    if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) {
        for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) {
            BindingID bindingId = f.create(transport, soapVersion);
            if(bindingId!=null) {
                return bindingId;
            }
        }
    }
    return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP;
}
 
Example 14
Source File: WSServiceDelegate.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void addPort(QName portName, String bindingId, String endpointAddress) throws WebServiceException {
    if (!ports.containsKey(portName)) {
        BindingID bid = (bindingId == null) ? BindingID.SOAP11_HTTP : BindingID.parse(bindingId);
        ports.put(portName,
                new PortInfo(this, (endpointAddress == null) ? null :
                        EndpointAddress.create(endpointAddress), portName, bid));
    } else
        throw new WebServiceException(DispatchMessages.DUPLICATE_PORT(portName.toString()));
}
 
Example 15
Source File: WSDLBoundPortTypeImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public BindingID getBindingId() {
    //Should the default be SOAP1.1/HTTP binding? For now lets keep it for
    //JBI bug 6509800
    return (bindingId==null)?BindingID.SOAP11_HTTP:bindingId;
}
 
Example 16
Source File: BindingImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public static WSBinding getDefaultBinding() {
    return new SOAPBindingImpl(BindingID.SOAP11_HTTP);
}
 
Example 17
Source File: BindingImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public static WSBinding getDefaultBinding() {
    return new SOAPBindingImpl(BindingID.SOAP11_HTTP);
}
 
Example 18
Source File: BindingImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public static WSBinding getDefaultBinding() {
    return new SOAPBindingImpl(BindingID.SOAP11_HTTP);
}
 
Example 19
Source File: WSDLBoundPortTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public BindingID getBindingId() {
    //Should the default be SOAP1.1/HTTP binding? For now lets keep it for
    //JBI bug 6509800
    return (bindingId==null)?BindingID.SOAP11_HTTP:bindingId;
}
 
Example 20
Source File: BindingImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public static WSBinding getDefaultBinding() {
    return new SOAPBindingImpl(BindingID.SOAP11_HTTP);
}