&& (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(); 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());
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; }
currentOperationIndex = operationIndex; Input input = operation.getInput();
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 {
if (operation.getInput() != null) { BindingInput binput = bindingOperation.createInput(); bindingOperation.setInput(binput);
final Input input = operation.getInput(); if (input != null) { if (desc.getVersion().equals(WSDLVersionConstants.WSDL11)) {
if (operation.getInput() != null) { BindingInput binput = bindingOperation.createInput(); bindingOperation.setInput(binput);