Examples of EndpointReferenceType


Examples of axis.org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType

   {
      // Subscribe to a TerminationNotification Notification
      QName                 notifQName   = ResourceLifetime11Constants.TOPIC_QNAME_RESOURCE_TERMINATION;
      SubscribeResponse    sub_response =
         subscribe( notifQName, "http://127.0.0.1:" + NOTIFICATION_LISTENER_PORT );
      EndpointReferenceType subRef = sub_response.getSubscriptionReference(  );
      assertNotNull( subRef );
      assertTrue( AxisGenTypesUtils.getResourceId( subRef ).length(  ) != 0 );

      //test as a listener for events
      PortListen notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, LISTENER_TIMEOUT );
View Full Code Here

Examples of com.arjuna.webservices.wsaddr.EndpointReferenceType

    protected void setUp()
        throws Exception
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        final String activationCoordinatorServiceURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_ACTIVATION_COORDINATOR) ;
        activationCoordinatorService = new EndpointReferenceType(new AttributedURIType(activationCoordinatorServiceURI)) ;
        final String activationRequesterServiceURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_ACTIVATION_REQUESTER) ;
        activationRequesterService = new EndpointReferenceType(new AttributedURIType(activationRequesterServiceURI)) ;
       
        final String registrationCoordinatorServiceURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_COORDINATOR) ;
        registrationCoordinatorService = new EndpointReferenceType(new AttributedURIType(registrationCoordinatorServiceURI)) ;
        final String registrationRequesterServiceURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_REQUESTER) ;
        registrationRequesterService = new EndpointReferenceType(new AttributedURIType(registrationRequesterServiceURI)) ;
    }
View Full Code Here

Examples of com.arjuna.webservices.wsaddr2005.EndpointReferenceType

        final MessageContext messageContext = createMessageContext(addressingContext) ;
        final SoapClient client = getSoapClient(toURI) ;
       
        final SoapBodyMessage soapBodyMessage = new SoapBodyMessage(soapBody, soapDetails, soapService, messageContext) ;
       
        final EndpointReferenceType replyTo = addressingContext.getReplyTo() ;
        if (replyTo != null)
        {
            if (!replyTo.isValid())
            {
                throw new IOException(WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_4")) ;
            }
            final AttributedURIType address = replyTo.getAddress() ;
            if (!AddressingConstants.WSA_ADDRESS_ANONYMOUS.equals(address.getValue()))
            {
                client.invokeOneWay(soapBodyMessage, toURI) ;
                return null ;
            }
View Full Code Here

Examples of org.activemq.ws.xmlbeans.addressing.v2003_03.EndpointReferenceType

            protected org.activemq.ws.notification.NotificationConsumer createNotificationConsumer(EndpointReferenceType consumerReference) {
                return new StubNotificationConsumer(result);
            }
        };

        EndpointReferenceType subRef = addSubscription(broker);
       
        // The sub should be running and we should be getting notifed now.
        sendNotification(broker);
        NotifyDocument subNotifyDoc = (NotifyDocument) result.poll(2000);
        assertNotNull(subNotifyDoc);
View Full Code Here

Examples of org.apache.axis.message.addressing.EndpointReferenceType

    *
    */
   public void testFindResource(  )
   throws Exception
   {
      EndpointReferenceType resource = m_stub.findResource( new FindResourceRequest( "disk", "1234" ) );
      Assert.assertNotNull( resource );
      MessageElement prop =
         resource.getProperties(  ).get( MuseAddressingConstants.REFERENCE_PROP_QNAME_RESOURCE_ID );
      Iterator       eleList = prop.getChildElements(  );
      Object         theText = eleList.next(  );
      Assert.assertEquals( "1234",
                           theText.toString(  ) );
   }
View Full Code Here

Examples of org.apache.cxf.ws.addressing.EndpointReferenceType

        }
    }

    private void encodeReferenceParameters(AddressingProperties maps, Element header,
                                           Marshaller marshaller) throws JAXBException {
        EndpointReferenceType toEpr = maps.getToEndpointReference();
        if (null != toEpr) {
            ReferenceParametersType params = toEpr.getReferenceParameters();
            if (null != params) {
                for (Object o : params.getAny()) {
                    if (o instanceof Element || o instanceof JAXBElement) {
                        JAXBElement jaxbEl = null;
                        if (o instanceof Element) {
View Full Code Here

Examples of org.apache.cxf.ws.addressing.v200408.EndpointReferenceType

        SourceSequence seq = source.getCurrent(inSeqId);
        if (null == seq) {
            // TODO: better error handling
            org.apache.cxf.ws.addressing.EndpointReferenceType to = null;
            boolean isServer = RMContextUtils.isServerSide(message);
            EndpointReferenceType acksTo = null;
            RelatesToType relatesTo = null;
            if (isServer) {

                AddressingPropertiesImpl inMaps = RMContextUtils.retrieveMAPs(message, false, false);
                inMaps.exposeAs(VersionTransformer.Names200408.WSA_NAMESPACE_NAME);
                acksTo = RMUtils.createReference2004(inMaps.getTo().getValue());
                to = inMaps.getReplyTo();
                source.getReliableEndpoint().getServant().setUnattachedIdentifier(inSeqId);
                relatesTo = (new org.apache.cxf.ws.addressing.ObjectFactory()).createRelatesToType();
                Destination destination = getDestination(message);
                DestinationSequence inSeq = inSeqId == null ? null : destination.getSequence(inSeqId);
                relatesTo.setValue(inSeq != null ? inSeq.getCorrelationID() : null);

            } else {
                to = RMUtils.createReference(maps.getTo().getValue());
                acksTo = VersionTransformer.convert(maps.getReplyTo());
                if (RMConstants.getNoneAddress().equals(acksTo.getAddress().getValue())) {
                    org.apache.cxf.transport.Destination dest = message.getExchange().getConduit(message)
                        .getBackChannel();
                    if (null == dest) {
                        acksTo = RMUtils.createAnonymousReference2004();
                    } else {
View Full Code Here

Examples of org.globus.axis.message.addressing.EndpointReferenceType

    try {
      String serviceURI = args[0];

      // Create endpoint reference to service
      EndpointReferenceType endpoint = new EndpointReferenceType();
      endpoint.setAddress(new Address(serviceURI));
      MapPortType map = locator.getMapPortTypePort(endpoint);

      // Get PortType
      map = locator.getMapPortTypePort(endpoint);
     
View Full Code Here

Examples of org.jboss.identity.federation.ws.addressing.EndpointReferenceType

    */
   public static AppliesTo createAppliesTo(String endpointURI)
   {
      AttributedURIType attributedURI = new AttributedURIType();
      attributedURI.setValue(endpointURI);
      EndpointReferenceType reference = new EndpointReferenceType();
      reference.setAddress(attributedURI);
      AppliesTo appliesTo = new AppliesTo();
      appliesTo.getAny().add(new ObjectFactory().createEndpointReference(reference));

      return appliesTo;
   }
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType

   {
      try
      {
         DeliveryType delivery = new DeliveryType();
         delivery.setMode(EventingConstants.getDeliveryPush().toString());
         EndpointReferenceType notifyEPR = new EndpointReferenceType();
         AttributedURIType attURI = new AttributedURIType();
         attURI.setValue("http://" + getServerHost() + ":8080/jaxws-wseventing/eventSink");
         notifyEPR.setAddress(attURI);                       
         delivery.setNotifyTo(notifyEPR);
         return delivery;
      }
      catch (Exception e)
      {
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.