Package org.apache.ws.addressing

Examples of org.apache.ws.addressing.XmlBeansEndpointReference


   {
      EndpointReferenceType epr1 = EndpointReferenceType.Factory.newInstance(  );
      AttributedURI         uri = AttributedURI.Factory.newInstance(  );
      uri.setStringValue( "http://consumer" );
      epr1.setAddress( uri );
      EndpointReference       epr           = new XmlBeansEndpointReference( epr1 );
      TopicExpressionDocument topicExprType = null;
      try
      {
         topicExprType =
            (TopicExpressionDocument) XmlObject.Factory.parse( "<wsnt:TopicExpression xmlns:wsnt=\"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd\" Dialect=\"http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple\">fs:MountPointDirectory</wsnt:TopicExpression>" );
View Full Code Here


            org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI.Factory.newInstance(  );
         auri.setStringValue( url );
         e.setAddress( auri );

         //wrapper
         this.epr = new XmlBeansEndpointReference( e );

         //getlocal SubscriptionHome from jndi-config
         Context initialContext = new InitialContext(  );
         sH = (SubscriptionHome) initialContext.lookup( SubscriptionHome.HOME_LOCATION );
      }
View Full Code Here

      XmlBeanUtils.setValueAsQName( topicExpr, m_topic );
      XmlObject response = m_portTypeImpl.subscribe( requestDoc );
      assertTrue( response instanceof SubscribeResponseDocument.SubscribeResponse );
      SubscribeResponseDocument.SubscribeResponse subscribeResponse         =
         (SubscribeResponseDocument.SubscribeResponse) response;
      XmlBeansEndpointReference                   xmlBeansEndpointReference =
         new XmlBeansEndpointReference( subscribeResponse.getSubscriptionReference(  ) );
      return xmlBeansEndpointReference;
   }
View Full Code Here

    * @param sresdom DOCUMENT_ME
    */
   public void setSubscriptionManager( SubscribeResponseDocument.SubscribeResponse sresdom )
   {
      sMan = sresdom.getSubscriptionReference(  );
      super.setEndpointReference( new XmlBeansEndpointReference( sMan ) );
   }
View Full Code Here

            org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI.Factory.newInstance(  );
         auri.setStringValue( url );
         e.setAddress( auri );

         //wrapper
         this.epr = new XmlBeansEndpointReference( e );

         //getlocal SubscriptionHome from jndi-config
         Context initialContext = new InitialContext(  );
         sH = (SubscriptionHome) initialContext.lookup( SubscriptionHome.HOME_LOCATION );
      }
View Full Code Here

      {
         e.printStackTrace(  );
      }

      //set SubscriptionManager
      ls.setSubscriptionManager( new XmlBeansEndpointReference( sresres.getSubscriptionManager(  ) ) );
      ls.setNotificationConsumer( notificationConsumer );
      return ls;
   }
View Full Code Here

      Subscription subscription = null;
      try
      {
         subscription =
            subscriptionHome.create( SubscriptionResource.class,
                                     new XmlBeansEndpointReference( request.getConsumerReference(  ) ),
                                     producerEPR,
                                     initialTerminationTime,
                                     subPolicy,
                                     precondition,
                                     selector,
View Full Code Here

        }
    }

    private static EndpointReference createEpr(String filesystemUrl)
    {
        XmlBeansEndpointReference epr = null;
        try
        {
            EndpointReferenceDocument eprdoc = (EndpointReferenceDocument) XmlObject.Factory.parse(new URL(filesystemUrl));
            epr = new XmlBeansEndpointReference(eprdoc.getEndpointReference());
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
View Full Code Here

            actionType.setStringValue(action);
            actionElem = actionDoc;
        }
        XmlBeanUtils.addChildElement(header, toElem);
        XmlBeanUtils.addChildElement(header, actionElem);
        XmlBeansEndpointReference newepr = null;
        if (eprXBean.schemaType().getName().getNamespaceURI().equals(Constants.NS_URI_ADDRESSING_2003_03))
        {
            newepr = new XmlBeansEndpointReference((org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType) eprXBean);
        }
        else
        {
            newepr = new XmlBeansEndpointReference((org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType) eprXBean);
        }
        if (newepr.getReferenceProperties() != null)
        {
            XmlObject[] refPropElems = (XmlObject[]) newepr.getReferenceProperties();
            for (int i = 0; i < refPropElems.length; i++)
            {
                XmlBeanUtils.addChildElement(header, refPropElems[i]);
            }
        }
View Full Code Here

      NotifyDocument.Notify         notify         = notifyDoc.addNewNotify(  );
      NotificationMessageHolderType notifMsgHolder = notify.addNewNotificationMessage(  );
      notifMsgHolder.setMessage( msg );
      EndpointReference         producerEPR       =
         m_subscription.getProducerResource(  ).getEndpointReference(  );
      XmlBeansEndpointReference xBeansProducerEPR = ( (XmlBeansEndpointReference) producerEPR );
      notifMsgHolder.setProducerReference( (EndpointReferenceType) xBeansProducerEPR.getXmlObject( org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA ) );
      TopicExpressionType topicExpr =
         (TopicExpressionType) ( (XmlObjectWrapper) m_subscription.getTopicExpression(  ) ).getXmlObject(  );
      notifMsgHolder.setTopic( topicExpr );
      return notifyDoc;
   }
View Full Code Here

TOP

Related Classes of org.apache.ws.addressing.XmlBeansEndpointReference

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.