Package javax.xml.soap

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


        if(needApiAccountOnly) {
            SOAPElement credNode = reqCred.addChildElement("Credentials", EBayConstants.EBL_PREFIX);
            ApiAccount ac = apiContext.getApiCredential().getApiAccount();
            credNode.addChildElement("AppId", EBayConstants.EBL_PREFIX).addTextNode(ac.getApplication());
            credNode.addChildElement("DevId", EBayConstants.EBL_PREFIX).addTextNode(ac.getDeveloper());
            credNode.addChildElement("AuthCert", EBayConstants.EBL_PREFIX).addTextNode(ac.getCertificate());
           
            //for FetchToken call, need Username if SecretID is used
            eBayAccount ec = apiContext.getApiCredential().geteBayAccount();
            if (ec != null && ec.getUsername() != null) {
              credNode.addChildElement("Username", EBayConstants.EBL_PREFIX).addTextNode(ec.getUsername());
View Full Code Here


            credNode.addChildElement("AuthCert", EBayConstants.EBL_PREFIX).addTextNode(ac.getCertificate());
           
            //for FetchToken call, need Username if SecretID is used
            eBayAccount ec = apiContext.getApiCredential().geteBayAccount();
            if (ec != null && ec.getUsername() != null) {
              credNode.addChildElement("Username", EBayConstants.EBL_PREFIX).addTextNode(ec.getUsername());
            }
           
            return;
        }
 
View Full Code Here

        }
 
        if (tokenString == null || tokenString.length() == 0) {
          SOAPElement credNode = reqCred.addChildElement("Credentials", EBayConstants.EBL_PREFIX);
          ApiAccount ac = apiContext.getApiCredential().getApiAccount();
          credNode.addChildElement("AppId", EBayConstants.EBL_PREFIX).addTextNode(ac.getApplication());
          credNode.addChildElement("DevId", EBayConstants.EBL_PREFIX).addTextNode(ac.getDeveloper());
          credNode.addChildElement("AuthCert", EBayConstants.EBL_PREFIX).addTextNode(ac.getCertificate());
        } else {
            reqCred.addChildElement("eBayAuthToken", EBayConstants.EBL_PREFIX).addTextNode(tokenString);
        }
View Full Code Here

 
        if (tokenString == null || tokenString.length() == 0) {
          SOAPElement credNode = reqCred.addChildElement("Credentials", EBayConstants.EBL_PREFIX);
          ApiAccount ac = apiContext.getApiCredential().getApiAccount();
          credNode.addChildElement("AppId", EBayConstants.EBL_PREFIX).addTextNode(ac.getApplication());
          credNode.addChildElement("DevId", EBayConstants.EBL_PREFIX).addTextNode(ac.getDeveloper());
          credNode.addChildElement("AuthCert", EBayConstants.EBL_PREFIX).addTextNode(ac.getCertificate());
        } else {
            reqCred.addChildElement("eBayAuthToken", EBayConstants.EBL_PREFIX).addTextNode(tokenString);
        }
  }
View Full Code Here

        if (tokenString == null || tokenString.length() == 0) {
          SOAPElement credNode = reqCred.addChildElement("Credentials", EBayConstants.EBL_PREFIX);
          ApiAccount ac = apiContext.getApiCredential().getApiAccount();
          credNode.addChildElement("AppId", EBayConstants.EBL_PREFIX).addTextNode(ac.getApplication());
          credNode.addChildElement("DevId", EBayConstants.EBL_PREFIX).addTextNode(ac.getDeveloper());
          credNode.addChildElement("AuthCert", EBayConstants.EBL_PREFIX).addTextNode(ac.getCertificate());
        } else {
            reqCred.addChildElement("eBayAuthToken", EBayConstants.EBL_PREFIX).addTextNode(tokenString);
        }
  }
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

               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

                fault = SOAPVersion.SOAP_12.saajSoapFactory.createFault();
                fault.setFaultCode(SOAPConstants.SOAP_SENDER_FAULT);
                fault.appendFaultSubcode(subcode);
                Detail detail = fault.addDetail();
                SOAPElement se = detail.addChildElement(av.problemActionTag);
                se = se.addChildElement(av.actionTag);
                se.addTextNode(unsupportedAction);
            } else {
                fault = SOAPVersion.SOAP_11.saajSoapFactory.createFault();
                fault.setFaultCode(subcode);
            }
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.