Package javax.xml.soap

Examples of javax.xml.soap.SOAPElement.addChildElement()


        SOAPEnvelope se = sp.getEnvelope();
        SOAPBody sb = se.getBody();
        SOAPElement el1 = sb.addBodyElement(se.createName("element1",
                                                          "prefix1",
                                                          "http://www.sun.com"));
        el1.addChildElement(se.createName("element2",
                                          "prefix2",
                                          "http://www.apache.org"));

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        msg.writeTo(baos);
View Full Code Here


               xencTransforms = cipherReference.addChildElement(xencTransforms);
           } else
               xencTransforms = (SOAPElement)i.next();

           xencTransforms.addChildElement(dsTransform);
          
        } catch (SOAPException e) {
           // log
           throw new XWSSecurityException(e);
        }
View Full Code Here

                (SOAPElement) ownerDoc.createElementNS(
                    MessageConstants.DSIG_NS,
                    MessageConstants.DSIG_PREFIX + ":X509Data");
            x509DataElement.addNamespaceDeclaration(
                MessageConstants.DSIG_PREFIX, MessageConstants.DSIG_NS);
            x509DataElement.addChildElement(issuerSerialElement);
            setSOAPElement(x509DataElement);
            return x509DataElement;
        } catch (Exception e) {
            log.log(Level.SEVERE,
                    "WSS0750.soap.exception",
View Full Code Here

        SOAPEnvelope se = sp.getEnvelope();
        SOAPBody sb = se.getBody();
        SOAPElement el1 = sb.addBodyElement(se.createName("element1",
                                                          "prefix1",
                                                          "http://www.sun.com"));
        el1.addChildElement(se.createName("element2",
                                          "prefix2",
                                          "http://www.apache.org"));

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        msg.writeTo(baos);
View Full Code Here

  public TaxDataBasicSoap getTaxService() throws Exception {
    TaxDataBasicLocator locator = new TaxDataBasicLocator();
    TaxDataBasicSoapStub service = (TaxDataBasicSoapStub)locator.getTaxDataBasicSoap();
        SOAPHeaderElement header = new SOAPHeaderElement(HEADER_NS, LICENSE_INFO);
        SOAPElement element = header.addChildElement(REGISTERED_USER);
        element.addChildElement(USER_ID).addTextNode(userid);
        element.addChildElement(PASSWORD).addTextNode(password);
        service.setHeader(header);
        return service;
  }
View Full Code Here

    TaxDataBasicLocator locator = new TaxDataBasicLocator();
    TaxDataBasicSoapStub service = (TaxDataBasicSoapStub)locator.getTaxDataBasicSoap();
        SOAPHeaderElement header = new SOAPHeaderElement(HEADER_NS, LICENSE_INFO);
        SOAPElement element = header.addChildElement(REGISTERED_USER);
        element.addChildElement(USER_ID).addTextNode(userid);
        element.addChildElement(PASSWORD).addTextNode(password);
        service.setHeader(header);
        return service;
  }

}
View Full Code Here

         QName terminateSequenceResponseQName = wsrmConstants.getTerminateSequenceResponseQName();
         SOAPElement terminateSequenceResponseElement = soapEnvelope.getBody().addChildElement(terminateSequenceResponseQName);

         // write required wsrm:Identifier element
         QName identifierQName = wsrmConstants.getIdentifierQName();
         terminateSequenceResponseElement.addChildElement(identifierQName).setValue(o.getIdentifier());
      }
      catch (SOAPException se)
      {
         throw new RMException("Unable to serialize RM message", se);
      }
View Full Code Here

         QName createSequenceResponseQName = wsrmConstants.getCreateSequenceResponseQName();
         SOAPElement createSequenceResponseElement = soapEnvelope.getBody().addChildElement(createSequenceResponseQName);

         // write required wsrm:Identifier element
         QName identifierQName = wsrmConstants.getIdentifierQName();
         createSequenceResponseElement.addChildElement(identifierQName).setValue(o.getIdentifier());
        
         if (o.getExpires() != null)
         {
            // write optional wsrm:Expires element
            QName expiresQName = wsrmConstants.getExpiresQName();
View Full Code Here

        
         if (o.getExpires() != null)
         {
            // write optional wsrm:Expires element
            QName expiresQName = wsrmConstants.getExpiresQName();
            createSequenceResponseElement.addChildElement(expiresQName).setValue(RMHelper.durationToString(o.getExpires()));
         }
        
         if (o.getIncompleteSequenceBehavior() != null)
         {
            // write optional wsrm:IncompleteSequenceBehavior element
View Full Code Here

            SOAPElement acceptElement = createSequenceResponseElement.addChildElement(acceptQName);

            // write required wsrm:AcksTo element
            QName acksToQName = wsrmConstants.getAcksToQName();
            QName addressQName = ADDRESSING_CONSTANTS.getAddressQName();
            acceptElement.addChildElement(acksToQName)
               .addChildElement(addressQName)
                  .setValue(o.getAccept().getAcksTo());
         }
      }
      catch (SOAPException se)
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.