Package javax.xml.soap

Examples of javax.xml.soap.SOAPBodyElement.addNamespaceDeclaration()


       SOAPBody soapBody = soapPart.getEnvelope().getBody();
       //Create the outer body element
       String uddins = IRegistry.UDDI_V2_NAMESPACE;
       Name bodyName = factory.createName(elem.getNodeName(), prefix, uddins);
       SOAPBodyElement bodyElement = soapBody.addBodyElement(bodyName);
       bodyElement.addNamespaceDeclaration(prefix,uddins);     
       appendAttributes(bodyElement, elem.getAttributes(), factory);
       appendElements(bodyElement,elem.getChildNodes(), factory);
       return message;
    }
   
View Full Code Here


       SOAPBody soapBody = soapPart.getEnvelope().getBody();
       //Create the outer body element
       String uddins = IRegistry.UDDI_V2_NAMESPACE;
       Name bodyName = factory.createName(elem.getNodeName(),prefix,uddins);
       SOAPBodyElement bodyElement = soapBody.addBodyElement(bodyName);
       bodyElement.addNamespaceDeclaration(prefix,uddins);     
       appendAttributes(bodyElement, elem.getAttributes(), factory);
       appendElements(bodyElement,elem.getChildNodes(), factory);
       return message;
    }
   
View Full Code Here

       SOAPBody soapBody = soapPart.getEnvelope().getBody();
       //Create the outer body element
       String uddins = IRegistry.UDDI_V2_NAMESPACE;
       Name bodyName = factory.createName(elem.getNodeName(),prefix,uddins);
       SOAPBodyElement bodyElement = soapBody.addBodyElement(bodyName);
       bodyElement.addNamespaceDeclaration(prefix,uddins);     
       appendAttributes(bodyElement, elem.getAttributes(), factory);
       appendElements(bodyElement,elem.getChildNodes(), factory);
       return message;
    }
   
View Full Code Here

        SOAPBody respBody = respEnv.getBody();
        Name respName = respEnv.createName(nodeName, Consts.WFXML_PREFIX,
                Consts.WFXML_NS);
       
        SOAPBodyElement node = respBody.addBodyElement(respName);
        node.addNamespaceDeclaration(Consts.ASAP_PREFIX, Consts.ASAP_NS);
       
        return node;
    }

    /**
 
View Full Code Here

            return;
        }
       
        SOAPBodyElement defsNode = createWfxmlResponseNode(respMsg,
                Consts.NEW_DEFINITION_RESPONSE);
        defsNode.addNamespaceDeclaration("",
                "http://www.wfmc.org/2002/XPDL1.0");
        Iterator prefixes = pkg.getNamespacePrefixes();
        while (prefixes.hasNext()) {
            String prefix = (String) prefixes.next();
            String uri = pkg.getNamespaceURI(prefix);
View Full Code Here

        Iterator prefixes = pkg.getNamespacePrefixes();
        while (prefixes.hasNext()) {
            String prefix = (String) prefixes.next();
            String uri = pkg.getNamespaceURI(prefix);
           
            defsNode.addNamespaceDeclaration(prefix, uri);
        }

        importAsChild(defsNode, pkg);
    }
View Full Code Here

            return;
        }

        SOAPBodyElement activitiesNode  = createWfxmlResponseNode(respMsg,
                Consts.LIST_ACTIVITIES_RESPONSE);
        activitiesNode.addNamespaceDeclaration(Consts.ASAP_PREFIX,
                Consts.ASAP_NS);
       
        Iterator iterator = activities.iterator();
        while(iterator.hasNext()) {
            Activity activity = (Activity) iterator.next();
View Full Code Here

            return;
        }

        SOAPBodyElement stateNode = createAsapResponseNode(respMsg,
                Consts.CHANGE_STATE_RESPONSE);
        stateNode.addNamespaceDeclaration(Consts.ASAP_PREFIX, Consts.ASAP_NS);
       
        SOAPElement newStateElement
            = stateNode.addChildElement("State", Consts.ASAP_PREFIX);
        newStateElement.addTextNode(newAsapState);
   
View Full Code Here

      SOAPBody        soapBody    = soapRequestMsg.getSOAPPart(  ).getEnvelope(  ).getBody(  );
      SOAPBodyElement requestElem =
         soapBody.addBodyElement( SOAPFactory.newInstance(  ).createName( "GetResourcePropertyRequest",
                                                                          ResourceProperties11Constants.NSPREFIX_WSRP,
                                                                          ResourceProperties11Constants.NSURI_WSRP ) );
      requestElem.addNamespaceDeclaration( propQName.getPrefix(  ),
                                           propQName.getNamespaceURI(  ) );
      SaajUtils.addTextNode( requestElem, propQName.getPrefix(  ) + ":" + propQName.getLocalPart(  ) );
      SOAPConnection soapConn        = SOAPConnectionFactory.newInstance(  ).createConnection(  );
      SOAPMessage    soapResponseMsg = soapConn.call( soapRequestMsg,
                                                      m_endpointRef.getAddress(  ).toString(  ) );
View Full Code Here

        SOAPPart soapPart = message.getSOAPPart();
        SOAPBody soapBody = soapPart.getEnvelope().getBody();
        //Create the outer body element
        Name bodyName = factory.createName(elem.getNodeName(), prefix, UDDI_V2_NAMESPACE);
        SOAPBodyElement bodyElement = soapBody.addBodyElement(bodyName);
        bodyElement.addNamespaceDeclaration(prefix, UDDI_V2_NAMESPACE);
        appendAttributes(bodyElement, elem.getAttributes(), factory);
        appendElements(bodyElement, elem.getChildNodes(), factory);
        return message;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.