Package javax.xml.soap

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


            SOAPElement element = soapBody.addChildElement("HelloWorld");

            /**
             * Add text message
             */
            element.addTextNode("Welcome to SunOne Web Services!");

            soapMessage.saveChanges();

            /**
             * Construct a default SOAP connection factory.
View Full Code Here


        SOAPElement element = soapBody.addChildElement(name);

        /**
         * Add another child element.
         */
        element.addTextNode( "Welcome to SunOne Web Services." );

        /**
         * Create an atachment with activation API.
         */
        URL url = new URL ("http://java.sun.com/webservices/");
View Full Code Here

      //  add the EncodingType attribute
      binarySecurityTokenElement.addAttribute(soapEnvelope.createName("EncodingType"), encodingType);
      //  add the ValueType attribute
      binarySecurityTokenElement.addAttribute(soapEnvelope.createName("ValueType"), valueType);
      //  add the certificate as a text node
      binarySecurityTokenElement.addTextNode(cert);
      return binarySecurityTokenElement;
  }
 
  private static SOAPElement createUsernameTokenHeaderElement(
      final SOAPEnvelope soapEnvelope,
View Full Code Here

      //  create and add the Username sub element
      if ( username != null )
      {
        Name usernameName = soapEnvelope.createName("Username", "wsse", SoapConstants.WSSE_NS);
          SOAPElement usernameNode = usernameTokenElement.addChildElement(usernameName);
          usernameNode.addTextNode(username);
      }
     
      //  create and add the password sub element
      if ( password != null )
      {
View Full Code Here

      //  create and add the password sub element
      if ( password != null )
      {
        Name passwordName = soapEnvelope.createName("password", "wsse", SoapConstants.WSSE_NS);
          SOAPElement passwordNode = usernameTokenElement.addChildElement(passwordName);
          passwordNode.addTextNode(password);
      }
   
      return usernameTokenElement;
  }
View Full Code Here

        Name bodyName = envelope.createName("getQuote", "n", "urn:xmethods-delayed-quotes");
        SOAPBodyElement gltp = body.addBodyElement(bodyName);

        Name name = envelope.createName("symbol");
        SOAPElement symbol = gltp.addChildElement(name);
        symbol.addTextNode(tickerSymbol);

        URLEndpoint endpoint = new URLEndpoint("http://66.28.98.121:9090/soap");
        SOAPMessage response = con.call(message, endpoint);
        con.close();
View Full Code Here

   {
      MessageElement ms1   = new MessageElement( axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );
      SOAPElement    elem1 =
         ms1.addChildElement( "State",
                              DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem1.addTextNode( "http://destroy" );
      SOAPElement elem2 =
         ms1.addChildElement( "TimeEntered",
                              DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem2.addTextNode( "2004-03-15T00:00:00" );
View Full Code Here

                              DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem1.addTextNode( "http://destroy" );
      SOAPElement elem2 =
         ms1.addChildElement( "TimeEntered",
                              DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem2.addTextNode( "2004-03-15T00:00:00" );

      MessageElement ms2    = new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );
      SOAPElement    elem11 =
         ms2.addChildElement( "State",
                              axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
View Full Code Here

      MessageElement ms2    = new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );
      SOAPElement    elem11 =
         ms2.addChildElement( "State",
                              axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem11.addTextNode( "http://destroy2" );
      SOAPElement elem22 =
         ms2.addChildElement( "TimeEntered",
                              DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem22.addTextNode( "2004-05-15T00:00:00" );
View Full Code Here

                              axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem11.addTextNode( "http://destroy2" );
      SOAPElement elem22 =
         ms2.addChildElement( "TimeEntered",
                              DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      elem22.addTextNode( "2004-05-15T00:00:00" );

      MessageElement[] SET_REQUEST_COMPONENT_TYPE_ARRAY__INSERT = new MessageElement[]
                                                                  {
                                                                     ms1,
                                                                     ms2
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.