Package javax.xml.ws.addressing

Examples of javax.xml.ws.addressing.ReferenceParameters


      }
      this.to = (epr != null ? epr.getAddress() : new AttributedURIImpl(ADDR.getAnonymousURI()));

      if (epr != null)
      {
         ReferenceParameters srcParams = epr.getReferenceParameters();
         for (Object obj : srcParams.getElements())
         {
            SOAPElement soapElement = (SOAPElement)obj;
            soapElement.setAttributeNS(getNamespaceURI(), "wsa:IsReferenceParameter", "true");
            addElement(soapElement.cloneNode(true));
         }
View Full Code Here


      relList.toArray(relArr);
      setRelatesTo(relArr);

      // Read wsa:ReferenceParameters
      QName refQName = new QName(getNamespaceURI(), "IsReferenceParameter");
      ReferenceParameters refParams = getReferenceParameters();
      Iterator it = soapHeader.examineAllHeaderElements();
      while (it.hasNext())
      {
        SOAPHeaderElement headerElement = (SOAPHeaderElement)it.next();
        if ("true".equals(DOMUtils.getAttributeValue(headerElement, refQName)))
        {
          refParams.addElement(headerElement);
        }
      }
    }
    catch (SOAPException ex)
    {
View Full Code Here

          wsaRelatesTo.addTextNode(rel.getID().toString());
        }
      }

      // Write wsa:ReferenceParameters
      ReferenceParameters refParams = getReferenceParameters();
      if (refParams.getElements().size() > 0)
      {
            for (Object obj : refParams.getElements())
            {
               SOAPElement refElement = appendElement(soapHeader, obj);
               QName refQName = new QName(ADDR.getNamespaceURI(), "IsReferenceParameter", ADDR.getNamespacePrefix());
               refElement.addAttribute(refQName, "true");
            }
View Full Code Here

      relList.toArray(relArr);
      setRelatesTo(relArr);

      // Read wsa:ReferenceParameters
      QName refQName = new QName(getNamespaceURI(), "IsReferenceParameter");
      ReferenceParameters refParams = getReferenceParameters();
      Iterator it = soapHeader.examineAllHeaderElements();
      while (it.hasNext())
      {
        SOAPHeaderElement headerElement = (SOAPHeaderElement)it.next();
        if ("true".equals(DOMUtils.getAttributeValue(headerElement, refQName)))
        {
          refParams.addElement(headerElement);
        }
      }
    }
    catch (SOAPException ex)
    {
View Full Code Here

          wsaRelatesTo.addTextNode(rel.getID().toString());
        }
      }

      // Write wsa:ReferenceParameters
      ReferenceParameters refParams = getReferenceParameters();
      if (refParams.getElements().size() > 0)
      {
            for (Object obj : refParams.getElements())
            {
               SOAPElement refElement = appendElement(soapHeader, obj);
               QName refQName = new QName(ADDR.getNamespaceURI(), "IsReferenceParameter", ADDR.getNamespacePrefix());
               refElement.addAttribute(refQName, "true");
            }
View Full Code Here

               addrProps.setTo(builder.newURI(w3cepr.getAddress()));
           
            List<Element> w3cRefParams = w3cepr.getReferenceParameters();
            if (w3cRefParams != null)
            {
               ReferenceParameters refParams = addrProps.getReferenceParameters();
               for (Element w3cRefParam : w3cRefParams)
               {
                  refParams.addElement(w3cRefParam);
               }
            }
         }
         catch (URISyntaxException ex)
         {
View Full Code Here

/* 145 */     if (null == addrProps)
/*     */     {
/* 147 */       throw new SOAPFaultException(Constants.SOAP11_FAULT_CODE_CLIENT, "The message is not valid and cannot be processed: Cannot obtain addressing properties.", null, null);
/*     */     }
/*     */
/* 155 */     ReferenceParameters refParams = addrProps.getReferenceParameters();
/*     */     Iterator i$;
/* 156 */     if (refParams != null)
/*     */     {
/* 158 */       for (i$ = refParams.getElements().iterator(); i$.hasNext(); ) { Object obj = i$.next();
/*     */
/* 160 */         if ((obj instanceof Element))
/*     */         {
/* 162 */           Element el = (Element)obj;
/* 163 */           QName qname = DOMUtils.getElementQName(el);
View Full Code Here

            addrProps.setTo(builder.newURI(nepr.getAddress()));

         List<Element> w3cRefParams = nepr.getReferenceParameters();
         if (w3cRefParams != null)
         {
            ReferenceParameters refParams = addrProps.getReferenceParameters();
            for (Element w3cRefParam : w3cRefParams)
            {
               refParams.addElement(w3cRefParam);
            }
         }
      }
      catch (URISyntaxException ex)
      {
View Full Code Here

/* 163 */       Relationship[] relArr = (Relationship[])(Relationship[])Array.newInstance(Relationship.class, relList.size());
/* 164 */       relList.toArray(relArr);
/* 165 */       setRelatesTo(relArr);
/*     */
/* 168 */       QName refQName = new QName(getNamespaceURI(), "IsReferenceParameter");
/* 169 */       ReferenceParameters refParams = getReferenceParameters();
/* 170 */       Iterator it = soapHeader.examineAllHeaderElements();
/* 171 */       while (it.hasNext())
/*     */       {
/* 173 */         SOAPHeaderElement headerElement = (SOAPHeaderElement)it.next();
/* 174 */         if ("true".equals(DOMUtils.getAttributeValue(headerElement, refQName)))
/*     */         {
/* 176 */           refParams.addElement(headerElement);
/*     */         }
/*     */       }
/*     */     }
/*     */     catch (SOAPException ex)
/*     */     {
View Full Code Here

/* 280 */           wsaRelatesTo.addTextNode(rel.getID().toString());
/*     */         }
/*     */
/*     */       }
/*     */
/* 285 */       ReferenceParameters refParams = getReferenceParameters();
/* 286 */       if ((refParams.getElements().size() > 0) || (refParams.getAttributes().size() > 0))
/*     */       {
/* 288 */         SOAPElement wsaRefParams = soapHeader.addChildElement(new NameImpl(ADDR.getReferenceParametersQName()));
/* 289 */         appendAttributes(wsaRefParams, refParams.getAttributes());
/* 290 */         appendElements(wsaRefParams, refParams.getElements());
/*     */       }
/*     */
/* 293 */       appendElements(soapHeader, getElements());
/*     */     }
/*     */     catch (SOAPException ex)
View Full Code Here

TOP

Related Classes of javax.xml.ws.addressing.ReferenceParameters

Copyright © 2018 www.massapicom. 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.