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;
}
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;
}
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();
}
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;
}
Aggregations