Package javax.xml.ws.addressing

Examples of javax.xml.ws.addressing.ReferenceParameters


      if (addrProps == null)
         throw new IllegalStateException("Cannot obtain AddressingProperties");

      String clientid = null;
      EndpointReference replyTo = addrProps.getReplyTo();
      ReferenceParameters refParams = replyTo!=null ? replyTo.getReferenceParameters() : null;
      if (refParams != null)
      {
         for (Object obj : refParams.getElements())
         {
            SOAPElement el = (SOAPElement)obj;
            QName qname = DOMUtils.getElementQName(el);
            if (qname.equals(IDQN))
            {
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

      if (addrProps == null)
         throw new IllegalStateException("Cannot obtain AddressingProperties");

      String clientid = null;
      EndpointReference replyTo = addrProps.getReplyTo();
      ReferenceParameters refParams = replyTo!=null ? replyTo.getReferenceParameters() : null;
      if (refParams != null)
      {
         for (Object obj : refParams.getElements())
         {
            SOAPElement el = (SOAPElement)obj;
            QName qname = DOMUtils.getElementQName(el);
            if (qname.equals(IDQN))
            {
View Full Code Here

         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         soapMessage.writeTo(baos);
         log.info(new String(baos.toByteArray()));
        
         SOAPAddressingProperties addrProps = (SOAPAddressingProperties)msgContext.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
         ReferenceParameters refParams = addrProps.getReferenceParameters();
         for (Object refParam : refParams.getElements())
         {
            input += "|" + ((SOAPElement)refParam).getValue();
         }
      }
      catch (Exception ex)
View Full Code Here

         {
            clientid = "clientid-" + (++maxClientId);
            log.info("New clientid: " + clientid);
         }

         ReferenceParameters refParams = replyTo.getReferenceParameters();
         refParams.addElement(getClientIdElement(clientid));

         msgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
         msgContext.setScope(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, Scope.APPLICATION);
      }
      catch (URISyntaxException ex)
View Full Code Here

      AddressingProperties addrProps = (AddressingProperties)msgContext.get(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_INBOUND);
      if (addrProps == null)
         throw new IllegalStateException("Cannot obtain AddressingProperties");

      ReferenceParameters refParams = addrProps.getReferenceParameters();
      for (Object obj : refParams.getElements())
      {
         SOAPHeaderElement el = (SOAPHeaderElement)obj;
         QName qname = DOMUtils.getElementQName(el);
         if (qname.equals(IDQN))
         {
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

      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

    if (epr == null)
         throw new IllegalArgumentException("Invalid null endpoint reference");

    this.to = epr.getAddress();
     
      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

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.