bindingOperation.setQName(operation.getQName()); if (operation.getOutput() != null) { bindingOperation.setMEP(SOAPMEPConstants.REQUEST_RESPONSE); } else { bindingOperation.setMEP(SOAPMEPConstants.ONE_WAY); bindingOperation.setSoapAction(operation.getQName().getNamespaceURI() + (operation.getQName().getNamespaceURI().endsWith( "/") ? "" : "/") + operation.getQName().getLocalPart().toString()); if (operation.getInput() != null) { BindingInput binput = bindingOperation.createInput(); bindingOperation.setInput(binput); if (operation.getOutput() != null) { BindingOutput boutput = bindingOperation.createOutput(); bindingOperation.setOutput(boutput); if (operation.getFaults() != null) { for (Fault faultop : operation.getFaults()) { BindingFault bfault = bindingOperation.createFault(); bindingOperation.addFault(bfault);
if (operation.getQName() != null && operation.getPattern() != null) { meps.put(operation.getQName(), operation.getPattern()); } else { logger.warning("Invalid data in component description for operation '" + operation.getQName() + "' of service '" + serviceName + "', MEP is '" + operation.getPattern() + "'");
String varName = op.getInput().getMessageName().getLocalPart()+"VarRequest"; bpelDef.createBPELElementVariable(varName, op.getInput().getMessageName(), BPELElementVariable.VariableType.MESSAGE); if(op.getOutput() != null){ String varOutName = op.getOutput().getMessageName().getLocalPart()+"VarResponse"; bpelDef.createBPELElementVariable(varOutName, op.getOutput().getMessageName(), BPELElementVariable.VariableType.MESSAGE); if(op.getFaults() != null){ Iterator<Fault> itFaults = op.getFaults().iterator(); while(itFaults.hasNext()){ Fault f = itFaults.next();
&& (op.getInput().getMessageName().getLocalPart().equals((internalMessage.getContent()).getName())|| ((op.getOutput() != null) && op.getOutput().getMessageName().getLocalPart().equals((internalMessage.getContent()).getName())))) { elmt = (org.jdom.Element) ((org.jdom.Element)internalMessage.getContent().getChildren().get(0)).clone(); } else { if(direction.equals(REQUEST)&&(op.getInput() != null)) { if((op.getInput().getParts() != null)&& (op.getInput().getParts().size()>0) && (op.getInput().getParts().get(0).getType() != null)&&(op.getInput().getParts().get(0).getPartQName() != null)) { elmt.setName(op.getInput().getParts().get(0).getPartQName().getLocalPart()); if(((op.getInput().getParts() != null)&& (op.getInput().getParts().size() > 0) && (op.getInput().getParts().get(0).getType() != null))) { elmt.setNamespace(null); if(((op.getInput().getParts() != null)&&(op.getInput().getParts().size() > 0)) || op.getInput().getElement() != null) { final org.jdom.Document doc = new org.jdom.Document(elmt); formattedMessage.setContent(doc.getRootElement());
final AxisOperation genericOperation = new InOutAxisOperation(operation.getQName()); genericOperation.setMessageReceiver(soapContext.getPetalsReceiver()); final Input input = operation.getInput(); if (input != null) { if (desc.getVersion().equals(WSDLVersionConstants.WSDL11)) { context.getLogger().warning("More than one part found for input " + input.getName() + "(operation " + operation.getQName() + "). If a received message does not start with the first WSDL declared part and there is no other way than using the SOAP message content to determine the operation (except for matching element name to operation name), then there will be an unsolvable ambiguity."); context.getLogger().warning("An element referenced by the input " + input.getName() + "(operation " + operation.getQName() + ") seems to be missing from the types present in the WSDL... skipping this input! If there is no other way than using the SOAP message content to determine the operation (except for matching element name to operation name), then there will be an unsolvable ambiguity.");
private BPELInternalMessage formatAsRpc(final BPELInternalMessage internalMessage, final BindingOperation bOp, final Operation op, final String direction) throws BPELException { final BPELInternalMessage formattedMessage = new BPELInternalMessageImpl(); if(internalMessage != null) { formattedMessage.setEndpoint(internalMessage.getEndpoint()); formattedMessage.setQName(internalMessage.getQName()); formattedMessage.setService(internalMessage.getService()); // change message name by the binding operation name final org.jdom.Element elmt = (org.jdom.Element) internalMessage.getContent().clone(); String operationName = bOp.getQName().getLocalPart(); if(direction.equals(RESPONSE)) { operationName = operationName + "Response"; } elmt.setName(operationName); if(!elmt.getNamespaceURI().equals(bOp.getQName().getNamespaceURI())) { elmt.setNamespace(Namespace.getNamespace(bOp.getQName().getNamespaceURI())); } if(((op.getInput().getParts() != null)&& (op.getInput().getParts().size() > 0)) || op.getInput().getElement() != null) { final org.jdom.Document doc = new org.jdom.Document(elmt); formattedMessage.setContent(doc.getRootElement()); } } else { throw new BPELException("Internal message cannot be null."); } return formattedMessage; }
if(bOpItem.getQName().getLocalPart().equals(op.getQName().getLocalPart())) { bOp = bOpItem;
op.setQName(new QName(itf.getQName().getNamespaceURI(), "GetManageabilityReferences")); itf.addOperation(op); final Input input = op.createInput(); input.setName("GetManageabilityReferencesRequest"); input.setMessageName(new QName("http://docs.oasis-open.org/wsdm/mows-2.wsdl", "GetManageabilityReferencesRequest")); op.setInput(input); final Output output = op.createOutput(); output.setName("GetManageabilityReferencesResponse"); output.setMessageName(new QName("http://docs.oasis-open.org/wsdm/mows-2.wsdl", "GetManageabilityReferencesResponse")); op.setOutput(output);
return wsdlOperation.getPattern(); } catch (final URISyntaxException | WSDL4ComplexWsdlException wsdl4cwe) { throw new MessagingException(wsdl4cwe);
String varName = op.getInput().getMessageName().getLocalPart()+"VarRequest"; this.bpelDef.createBPELElementVariable(varName, op.getInput().getMessageName(), BPELElementVariable.VariableType.MESSAGE); if(op.getOutput() != null){ String varOutName = op.getOutput().getMessageName().getLocalPart()+"VarResponse"; this.bpelDef.createBPELElementVariable(varOutName, op.getOutput().getMessageName(), BPELElementVariable.VariableType.MESSAGE); if(op.getFaults() != null){ Iterator<Fault> itFaults = op.getFaults().iterator(); while(itFaults.hasNext()){ Fault f = itFaults.next();
throw new CoreException("Impossible to find " + message.getOperationName() + " in wsdl descriptions"); message.setQName(op.getInput().getMessageName()); this.log.finest("Message name setted: " + message.getQName()); } else {
final MEPPatternConstants mep = interfaceType.getOperation(qName).getPattern();
String operationName = operation.getQName().getLocalPart(); List<WSDLEndpoint> currentWSDLEndpoints = new ArrayList<>(); int currentOperationIndex; currentOperationIndex = operationIndex; Input input = operation.getInput(); inputMessage = new InputMessage(messageParts); Output output = operation.getOutput(); OutputMessage outputMessage; if ((operation.getFaults() == null) || operation.getFaults().isEmpty()) { List<MessagePart> messageParts = new ArrayList<>(); faultMessage = new FaultMessage(messageParts); } else { Fault fault = operation.getFaults().get(0); faultMessage = new FaultMessage(getMessageParts(fault.getMessageName().toString()));
bindingOperation.setQName(operation.getQName()); .setSoapAction(operation.getQName().getNamespaceURI() + (operation.getQName().getNamespaceURI().endsWith( "/") ? "" : "/") + operation.getQName().getLocalPart().toString()); if (operation.getInput() != null) { BindingInput binput = bindingOperation.createInput(); bindingOperation.setInput(binput); if (operation.getOutput() != null) { BindingOutput boutput = bindingOperation.createOutput(); bindingOperation.setOutput(boutput); if (operation.getFaults() != null) { for (Fault faultop : operation.getFaults()) { BindingFault bfault = bindingOperation.createFault(); try {