Package org.jboss.ws.core.soap

Examples of org.jboss.ws.core.soap.SOAPFactoryImpl.createElement()


      try
      {
         SOAPFactoryImpl factory = (SOAPFactoryImpl)SOAPFactory.newInstance();
         if (obj instanceof Element)
         {
            child = factory.createElement((Element)obj);
            soapElement.addChildElement(child);
         }
         else if (obj instanceof String)
         {
            Element el = DOMUtils.parse((String)obj);
View Full Code Here


            soapElement.addChildElement(child);
         }
         else if (obj instanceof String)
         {
            Element el = DOMUtils.parse((String)obj);
            child = factory.createElement(el);
            soapElement.addChildElement(child);
         }
         else
         {
            throw new AddressingException("Unsupported element: " + obj.getClass().getName());
View Full Code Here

         String xmlStr = xmlFragment.toXMLString();
         log.debug("Fault detail: " + xmlStr);

         Element domElement = xmlFragment.toElement();
         SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
         return soapFactory.createElement(domElement);
      }
      catch (BindingException e)
      {
         throw new WebServiceException(e);
      }
View Full Code Here

      // Write wsa:From
      if (getFrom() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
        epr.setRootQName(ADDR.getFromQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:ReplyTo
View Full Code Here

      // Write wsa:ReplyTo
      if (getReplyTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getReplyTo();
        epr.setRootQName(ADDR.getReplyToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      // Write wsa:FaultTo
View Full Code Here

      // Write wsa:FaultTo
      if (getFaultTo() != null)
      {
        EndpointReferenceImpl epr = (EndpointReferenceImpl)getFaultTo();
        epr.setRootQName(ADDR.getFaultToQName());
        SOAPElement soapElement = factory.createElement(epr.toElement());
        soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
        soapHeader.addChildElement(soapElement);
      }

      appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
View Full Code Here

      try
      {
         SOAPFactoryImpl factory = (SOAPFactoryImpl)SOAPFactory.newInstance();
         if (obj instanceof Element)
         {
            child = factory.createElement((Element)obj);
            soapElement.addChildElement(child);
         }
         else if (obj instanceof String)
         {
            Element el = DOMUtils.parse((String)obj);
View Full Code Here

            soapElement.addChildElement(child);
         }
         else if (obj instanceof String)
         {
            Element el = DOMUtils.parse((String)obj);
            child = factory.createElement(el);
            soapElement.addChildElement(child);
         }
         else
         {
            throw new AddressingException("Unsupported element: " + obj.getClass().getName());
View Full Code Here

         String xmlStr = xmlFragment.toXMLString();
         log.debug("Fault detail: " + xmlStr);

         Element domElement = xmlFragment.toElement();
         SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
         return soapFactory.createElement(domElement);
      }
      catch (BindingException e)
      {
         throw new WebServiceException(e);
      }
View Full Code Here

/*     */
/* 228 */       if (getFrom() != null)
/*     */       {
/* 230 */         EndpointReferenceImpl epr = (EndpointReferenceImpl)getFrom();
/* 231 */         epr.setRootQName(ADDR.getFromQName());
/* 232 */         SOAPElement soapElement = factory.createElement(epr.toElement());
/* 233 */         soapElement.removeNamespaceDeclaration(ADDR.getNamespacePrefix());
/* 234 */         soapHeader.addChildElement(soapElement);
/*     */       }
/*     */
/* 238 */       if (getReplyTo() != null)
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.