Examples of WSBindingProvider


Examples of com.sun.xml.ws.developer.WSBindingProvider

        String messageId = hl.getMessageID(AddressingVersion.W3C,
                                           SOAPVersion.SOAP_11);
 
        HelloImplService srv = new HelloImplService();
        nl.whitehors.ws.client.HelloImpl portType = srv.getHelloImplPort();
        WSBindingProvider bp = (WSBindingProvider)portType;

        bp.setAddress( reference.getAddress());
        bp.setOutboundHeaders(Headers.create(AddressingVersion.W3C.relatesToTag,
                                             messageId));

        portType.callbackMessage("hello you [" +  reference.getAddress() + "]");
       
       
View Full Code Here

Examples of com.sun.xml.ws.developer.WSBindingProvider

    }

    private X509Certificate getCertificateFromEPR(ClientTubeAssemblerContext context, WSDLPortImpl wpi) {
        X509Certificate x509Cert = null;
        if (context != null) {
            WSBindingProvider bpr = context.getBindingProvider();
            x509Cert = (X509Certificate) bpr.getRequestContext().get(XWSSConstants.SERVER_CERTIFICATE_PROPERTY);
            if (x509Cert != null) {
                //log.log(Level.INFO, "certificate is found by SERVER_CERTIFICATE_PROPERTY,so using it");
                return x509Cert;
            }
        }
View Full Code Here

Examples of com.sun.xml.ws.developer.WSBindingProvider

        try {
            HaContext.initFrom(packet);
            //computing EPR related stuff
            //get certificate from EPR or from XWSSConstants.SERVER_CERTIFICATE_PROPERTY
            if (wsitContext != null) {
                WSBindingProvider bpr = (WSBindingProvider) wsitContext.getWrappedContext().getBindingProvider();
                WSEndpointReference epr = bpr.getWSEndpointReference();
                X509Certificate x509Cert = (X509Certificate) bpr.getRequestContext().get(XWSSConstants.SERVER_CERTIFICATE_PROPERTY);
                if (x509Cert == null) {
                    if (epr != null) {
                        WSEndpointReference.EPRExtension idExtn = null;
                        XMLStreamReader xmlReader = null;
                        try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.