pw); DOMUtils.printAttribute(Constants.ATTR_NAMESPACE, soapBody.getNamespaceURI(), pw);
private String getNamespaceFromSoapBody(List extensibilityElements) { ExtensibilityElement extElement; String namespace = null; for (Iterator iter = extensibilityElements.iterator(); iter.hasNext();) { extElement = (ExtensibilityElement) iter.next(); // SOAP 1.1 body element found! if (extElement instanceof SOAPBody) { SOAPBody soapBody = (SOAPBody) extElement; namespace = soapBody.getNamespaceURI(); } else if (extElement instanceof SOAP12Body) { SOAP12Body soapBody = (SOAP12Body) extElement; namespace = soapBody.getNamespaceURI(); } } return namespace; }
private String getNamespaceFromSoapBody(List extensibilityElements) { ExtensibilityElement extElement; String namespace = null; for (Iterator iter = extensibilityElements.iterator(); iter.hasNext();) { extElement = (ExtensibilityElement) iter.next(); // SOAP 1.1 body element found! if (extElement instanceof SOAPBody) { SOAPBody soapBody = (SOAPBody) extElement; namespace = soapBody.getNamespaceURI(); } else if (extElement instanceof SOAP12Body) { SOAP12Body soapBody = (SOAP12Body) extElement; namespace = soapBody.getNamespaceURI(); } } return namespace; }
public String getTargetNamespace() { if (targetNs == null) { SOAPBody soapBody = getSOAPBody(true); if (soapBody != null) { targetNs = soapBody.getNamespaceURI(); } if (targetNs == null) { targetNs = cache.getTargetNamespace(); } } return targetNs; }
public void visit(SOAPBody body, Object parent, WSDLTraversalContext ctx) { // assert style == "document" if (WSIConstants.ATTRVAL_SOAP_BODY_USE_LIT.equals(body.getUse())) { docLiteralFound = true; List parts = body.getParts(); if (parts != null && parts.size() > 1) //how to pick out one body from another one ? errors.add(body.getElementType(), body.getNamespaceURI()); } }
public void visit(SOAPBody body, Object parent, WSDLTraversalContext ctx) { // assert style == "document" if (WSIConstants.ATTRVAL_SOAP_BODY_USE_LIT.equals(body.getUse())) { docLiteralFound = true; List parts = body.getParts(); if (parts != null && parts.size() > 1) //how to pick out one body from another one ? errors.add(body.getElementType(), body.getNamespaceURI()); } }
if (log.isDebugEnabled()) { log.debug("Returning SOAPBody namespace: " + ((SOAPBody) extObj).getNamespaceURI()); return ((SOAPBody) extObj).getNamespaceURI(); } else if (extObj instanceof SOAP12Body) { if (log.isDebugEnabled()) {
defaultNamespace = bodyElement.getNamespaceURI(); } else { boolean found = false; if (parameterPartName.equals((String)o)) { paramName = new QName(bodyElement.getNamespaceURI(), parameterPartName); found = true;
if (SOAPBody.class.isInstance(element)) { SOAPBody body = (SOAPBody)element; if (body.getNamespaceURI() != null) { qn = new QName(body.getNamespaceURI(), op.getName());
/** * Returns the namespace URI that should be used for the elements of the * soap:Body of the SOAP Message. Only useful with the RPC style: if the * style is "document", WS-I forbids using the namespace attribute in the * soap:body child of the binding of the port type. */ public String getBodyNamespace() { SOAPBody soapBody; if (SOAPOperationDirectionIdentifier.INPUT.equals(getDirection())) { soapBody = getSoapBody(fOperation.getBindingInput()); } else { soapBody = getSoapBody(fOperation.getBindingOutput()); } if (soapBody != null && soapBody.getNamespaceURI() != null) { return soapBody.getNamespaceURI(); } else { return getTargetNamespace(); } }
if (extElements != null && extElements.size() > 0) { SOAPBody body = (SOAPBody) extElements.get(0); result = body.getNamespaceURI(); } else { extElements = binding.getBindingOutput() if (extElements != null && extElements.size() > 0) { SOAPBody body = (SOAPBody) extElements.get(0); result = body.getNamespaceURI();
pw); DOMUtils.printAttribute(Constants.ATTR_NAMESPACE, soapBody.getNamespaceURI(), pw);
for (Object ext : bOp.getBindingOutput().getExtensibilityElements()){ if (ext instanceof javax.wsdl.extensions.soap.SOAPBody){ wrapperNamespace = ((javax.wsdl.extensions.soap.SOAPBody)ext).getNamespaceURI(); break loopend;
String namespace = body.getNamespaceURI(); if (namespace == null || namespace.length() == 0)
checkOperation = new QName(name); else checkOperation = new QName(soapBody.getNamespaceURI(), name);
checkOperation = new QName(name); else checkOperation = new QName(soapBody.getNamespaceURI(), name);
Wsdl1SoapMessageImpl output = new Wsdl1SoapMessageImpl(); output.setName(wsdlOutput.getMessage().getQName()); output.setNamespace(wsdlSoapBody.getNamespaceURI()); String outputName = wsdlOutput.getName(); if (outputName == null || outputName.length() == 0) {
Wsdl1SoapMessageImpl input = new Wsdl1SoapMessageImpl(); input.setName(wsdlInput.getMessage().getQName()); input.setNamespace(wsdlSoapBody.getNamespaceURI()); String inputName = wsdlInput.getName(); if (inputName == null || inputName.length() == 0) {
responseFromPartnerService.getBody(), soapBodyDefinition.getParts(), soapBodyDefinition.getNamespaceURI(), partnerInvocationContext.isRPCStyleOperation()); } else {
private boolean ensureNamespace(BindingOperation operation, boolean body, boolean set) { List<ElementExtensible> els = WSDLUtils.getElements(operation); if (body) { for (SOAPBody sb : WSDLUtils.getExtensions(els, SOAPBody.class)) { if (!checkNullOrNonEmpty(sb.getNamespaceURI(), set)) { return false; } } } else { for (SOAPHeader sh : WSDLUtils.getExtensions(els, SOAPHeader.class)) { if (!checkNullOrNonEmpty(sh.getNamespaceURI(), set)) { return false; } for (SOAPHeaderFault shf : WSDLUtils.getSOAPHeaderFaults(sh)) { if (!checkNullOrNonEmpty(shf.getNamespaceURI(), set)) { return false; } } } for (SOAPFault sf : WSDLUtils.getExtensions(els, SOAPFault.class)) { if (!checkNullOrNonEmpty(sf.getNamespaceURI(), set)) { return false; } } } return true; }