Package com.sun.xml.ws.api.model.wsdl

Examples of com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation


    @Override
    protected void checkMessageAddressingProperties(Packet packet) {
        super.checkMessageAddressingProperties(packet);

        // wsaw:Anonymous validation
        WSDLBoundOperation wsdlBoundOperation = getWSDLBoundOperation(packet);
        checkAnonymousSemantics(wsdlBoundOperation, replyTo, faultTo);
         // check if addresses are valid
        checkNonAnonymousAddresses(replyTo,faultTo);
    }
View Full Code Here


    @Override
    protected void validateAction(Packet packet) {
        //There may not be a WSDL operation.  There may not even be a WSDL.
        //For instance this may be a RM CreateSequence message.
        WSDLBoundOperation wbo = getWSDLBoundOperation(packet);

        if (wbo == null)    return;

        String gotA = packet.getMessage().getHeaders().getAction(addressingVersion, soapVersion);
        if (gotA == null)
View Full Code Here

        if (!foundTo)
            throw new MissingAddressingHeaderException(addressingVersion.toTag,packet);

        //we can find Req/Response or Oneway only with WSDLModel
        if (wsdlPort != null) {
            WSDLBoundOperation wbo = getWSDLBoundOperation(packet);
            // if two-way, must contain wsa:ReplyTo
            // Unlike W3C version, we cannot assume default value as anonymous if not present.
            // For protocol messages, don't check as they do not have any corresponding wsdl operations
            if (wbo != null && !wbo.getOperation().isOneWay() && !foundReplyTo) {
                throw new MissingAddressingHeaderException(addressingVersion.replyToTag,packet);
            }
        }
        if (!validation.equals(MemberSubmissionAddressing.Validation.LAX)) {
            // wsa:MessageId is required if wsa:ReplyTo is present.
View Full Code Here

            // as anonymous ReplyTo MUST NOT be added in that case. BindingProvider need to
            // disable AddressingFeature and MemberSubmissionAddressingFeature and hand-craft
            // the SOAP message with non-anonymous ReplyTo/FaultTo.
            if (!oneway && packet.getMessage() != null)
            {
                WSDLBoundOperation wbo = wsdlPort.getBinding().get(packet.getWSDLOperation());
                if (wbo != null && wbo.getAnonymous() == WSDLBoundOperation.ANONYMOUS.prohibited) {
                    throw new WebServiceException(AddressingMessages.WSAW_ANONYMOUS_PROHIBITED());
                }
            }
        }
        if (!binding.isFeatureEnabled(OneWayFeature.class)) {
View Full Code Here

        else
            action = addVer.getDefaultFaultAction();
        if (wsdlPort != null) {
            QName wsdlOp = requestPacket.getWSDLOperation();
            if (wsdlOp != null) {
                WSDLBoundOperation wbo = wsdlPort.getBinding().get(wsdlOp);
                return getFaultAction(wbo, responsePacket);
            }
        }
        return action;
    }                       
View Full Code Here

        String action = null;

        if (wsdlPort != null) {
            QName wsdlOp = packet.getWSDLOperation();
            if (wsdlOp != null) {
                WSDLBoundOperation wbo = wsdlPort.getBinding().get(wsdlOp);
                WSDLOperation op = wbo.getOperation();
                action = op.getInput().getAction();
            }
        }

        return action;
View Full Code Here

        String action = null;

        if (wsdlPort != null) {
            QName wsdlOp = packet.getWSDLOperation();
            if (wsdlOp != null) {
                WSDLBoundOperation wbo = wsdlPort.getBinding().get(wsdlOp);
                WSDLOperation op = wbo.getOperation();
                action = op.getInput().getAction();
            } else
                action = packet.soapAction;
        } else {
            action = packet.soapAction;
View Full Code Here

        if (wsdlPort == null)
            return false;
        QName wsdlOp = packet.getWSDLOperation();
        if(wsdlOp == null)
            return false;
        WSDLBoundOperation wbo = wsdlPort.getBinding().get(wsdlOp);
        WSDLOperation op = wbo.getOperation();
        return ((WSDLOperationImpl) op).getInput().isDefaultAction();

    }
View Full Code Here

        QName opName = packet.getWSDLOperation();
        if(opName == null)
            return action;

        WSDLBoundOperation op = wsdlPort.getBinding().get(opName);
        action = op.getSOAPAction();
        return action;
    }
View Full Code Here

                if (jm != null && jm.getOutputAction() != null && !jm.getOutputAction().equals("")) {
                    return jm.getOutputAction();
                }
            }
            if (wsdlPort != null) {
                WSDLBoundOperation wbo = wsdlPort.getBinding().get(wsdlOp);
                return getOutputAction(wbo);
            }
        }
        return action;
    }
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation

Copyright © 2018 www.massapicom. 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.