Search in sources :

Example 6 with WSDLOperationMapping

use of com.sun.xml.ws.api.model.WSDLOperationMapping in project metro-jax-ws by eclipse-ee4j.

the class WsaTubeHelper method getSOAPAction.

public String getSOAPAction(Packet packet) {
    String action = "";
    if (packet == null || packet.getMessage() == null) {
        return action;
    }
    if (wsdlPort == null) {
        return action;
    }
    WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping();
    if (wsdlOp == null) {
        return action;
    }
    WSDLBoundOperation op = wsdlOp.getWSDLBoundOperation();
    action = op.getSOAPAction();
    return action;
}
Also used : WSDLOperationMapping(com.sun.xml.ws.api.model.WSDLOperationMapping) WSDLBoundOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation)

Example 7 with WSDLOperationMapping

use of com.sun.xml.ws.api.model.WSDLOperationMapping in project metro-jax-ws by eclipse-ee4j.

the class WsaTubeHelper method getEffectiveInputAction.

/**
 * This method gives the Input addressing Action for a message.
 * It gives the Action set in the wsdl operation for the corresponding payload.
 * If it is not explicitly set, it gives the soapAction
 * @return input Action
 */
public String getEffectiveInputAction(Packet packet) {
    // non-default SOAPAction beomes wsa:action
    if (packet.soapAction != null && !packet.soapAction.equals("")) {
        return packet.soapAction;
    }
    String action;
    if (wsdlPort != null) {
        WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping();
        if (wsdlOp != null) {
            WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation();
            WSDLOperation op = wbo.getOperation();
            action = op.getInput().getAction();
        } else {
            action = packet.soapAction;
        }
    } else {
        action = packet.soapAction;
    }
    return action;
}
Also used : WSDLOperationMapping(com.sun.xml.ws.api.model.WSDLOperationMapping) WSDLBoundOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation) WSDLOperation(com.sun.xml.ws.api.model.wsdl.WSDLOperation)

Example 8 with WSDLOperationMapping

use of com.sun.xml.ws.api.model.WSDLOperationMapping in project metro-jax-ws by eclipse-ee4j.

the class WsaTubeHelper method isInputActionDefault.

public boolean isInputActionDefault(Packet packet) {
    if (wsdlPort == null) {
        return false;
    }
    WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping();
    if (wsdlOp == null) {
        return false;
    }
    WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation();
    WSDLOperation op = wbo.getOperation();
    return op.getInput().isDefaultAction();
}
Also used : WSDLOperationMapping(com.sun.xml.ws.api.model.WSDLOperationMapping) WSDLBoundOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation) WSDLOperation(com.sun.xml.ws.api.model.wsdl.WSDLOperation)

Example 9 with WSDLOperationMapping

use of com.sun.xml.ws.api.model.WSDLOperationMapping in project metro-jax-ws by eclipse-ee4j.

the class WsaTubeHelper method getInputAction.

public String getInputAction(Packet packet) {
    String action = null;
    if (wsdlPort != null) {
        WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping();
        if (wsdlOp != null) {
            WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation();
            WSDLOperation op = wbo.getOperation();
            action = op.getInput().getAction();
        }
    }
    return action;
}
Also used : WSDLOperationMapping(com.sun.xml.ws.api.model.WSDLOperationMapping) WSDLBoundOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation) WSDLOperation(com.sun.xml.ws.api.model.wsdl.WSDLOperation)

Aggregations

WSDLOperationMapping (com.sun.xml.ws.api.model.WSDLOperationMapping)9 WSDLBoundOperation (com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation)5 Message (com.sun.xml.ws.api.message.Message)3 WSDLOperation (com.sun.xml.ws.api.model.wsdl.WSDLOperation)3 JavaMethodImpl (com.sun.xml.ws.model.JavaMethodImpl)2 NotNull (com.sun.istack.NotNull)1 MessageHeaders (com.sun.xml.ws.api.message.MessageHeaders)1 JavaMethod (com.sun.xml.ws.api.model.JavaMethod)1 CheckedExceptionImpl (com.sun.xml.ws.model.CheckedExceptionImpl)1 Detail (jakarta.xml.soap.Detail)1 SOAPException (jakarta.xml.soap.SOAPException)1 SOAPMessage (jakarta.xml.soap.SOAPMessage)1 WebServiceException (jakarta.xml.ws.WebServiceException)1 QName (javax.xml.namespace.QName)1