Package javax.xml.ws.addressing

Examples of javax.xml.ws.addressing.EndpointReference


    */
   public void initializeAsReply(AddressingProperties props, boolean isFault)
   {
    if(initialized) return;
   
    EndpointReference epr = (isFault ? props.getFaultTo() : null);
      if (epr == null)
      {
         epr = props.getReplyTo();
      }
      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


         EndpointInfo epInfo = (EndpointInfo)endpoint;
         targetAddress = epInfo.getTargetAddress();
      }
      else if (endpoint instanceof EndpointReference)
      {
         EndpointReference epr = (EndpointReference)endpoint;
         targetAddress = epr.getAddress().toString();
      }
      else
      {
         targetAddress = endpoint.toString();
      }
View Full Code Here

         }

      }
      else if (endpoint instanceof EndpointReference)
      {
         EndpointReference epr = (EndpointReference)endpoint;
         targetAddress = epr.getAddress().toString();
      }
      else
      {
         targetAddress = endpoint.toString();
      }
View Full Code Here

         EndpointInfo epInfo = (EndpointInfo)endpoint;
         targetAddress = epInfo.getTargetAddress();
      }
      else if (endpoint instanceof EndpointReference)
      {
         EndpointReference epr = (EndpointReference)endpoint;
         targetAddress = epr.getAddress().toString();
      }
      else
      {
         targetAddress = endpoint.toString();
      }
View Full Code Here

         }

      }
      else if (endpoint instanceof EndpointReference)
      {
         EndpointReference epr = (EndpointReference)endpoint;
         targetAddress = epr.getAddress().toString();
      }
      else
      {
         targetAddress = endpoint.toString();
      }
View Full Code Here

/*     */
/*     */   public void initializeAsReply(AddressingProperties props, boolean isFault)
/*     */   {
/* 202 */     if (this.initialized) return;
/*     */
/* 204 */     EndpointReference epr = isFault ? props.getFaultTo() : null;
/* 205 */     if (epr == null)
/*     */     {
/* 207 */       epr = props.getReplyTo();
/*     */     }
/* 209 */     this.to = (epr != null ? epr.getAddress() : new AttributedURIImpl(ADDR.getAnonymousURI()));
/*     */     Iterator i$;
/* 211 */     if (epr != null)
/*     */     {
/* 213 */       ReferenceParameters srcParams = epr.getReferenceParameters();
/* 214 */       for (i$ = srcParams.getElements().iterator(); i$.hasNext(); ) { Object obj = i$.next();
/*     */
/* 216 */         SOAPElement soapElement = (SOAPElement)obj;
/* 217 */         soapElement.setAttributeNS(getNamespaceURI(), "wsa:IsReferenceParameter", "true");
/* 218 */         addElement(soapElement);
View Full Code Here

/*     */     else
/*     */     {
/*     */       String targetAddress;
/* 153 */       if ((endpoint instanceof EndpointReference))
/*     */       {
/* 155 */         EndpointReference epr = (EndpointReference)endpoint;
/* 156 */         targetAddress = epr.getAddress().toString();
/*     */       }
/*     */       else
/*     */       {
/* 160 */         targetAddress = endpoint.toString();
/*     */       }
View Full Code Here

    */
   public void initializeAsReply(AddressingProperties props, boolean isFault)
   {
    if(initialized) return;
   
    EndpointReference epr = (isFault ? props.getFaultTo() : null);
      if (epr == null)
      {
         epr = props.getReplyTo();
      }
      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);
View Full Code Here

         EndpointInfo epInfo = (EndpointInfo)endpoint;
         targetAddress = epInfo.getTargetAddress();
      }
      else if (endpoint instanceof EndpointReference)
      {
         EndpointReference epr = (EndpointReference)endpoint;
         targetAddress = epr.getAddress().toString();
      }
      else
      {
         targetAddress = endpoint.toString();
      }
View Full Code Here

TOP

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

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.