Package org.apache.ws.addressing

Examples of org.apache.ws.addressing.EndpointReference


            ResourceContextException,
            ResourceUnknownException
    {
        ++m_printerId;
        String printerId = "Printer" + m_printerId;
        EndpointReference printerEpr = getEndpointReference( printerId );
        PrinterPortResource printer = new PrinterPortResource( "Printer" + printerId, printerEpr );
        printer.init();
        add( printer );
        return printer;
    }
View Full Code Here


             // But Integration server is a singleton, we do not want to use ResourceID in the EPR, we will create EPR with null as resouceId
             m_serverResource = new IntegrationserverResource( resourceId, createParams );
             //The EPRs should be build using "http://schemas.xmlsoap.org/ws/2003/03/addressing" addressing namespace. It introduces spec conflicts
         //To work around thes problem the "http://schemas.xmlsoap.org/ws/2004/08/addressing" is used as namespace for addressing
            
             EndpointReference epr = getEndpointReference(null);
              ((IntegrationserverResource)m_serverResource).setEndpointReference( epr );
              m_serverResource.init();
        add(m_serverResource);
          }
          catch (Exception e)
View Full Code Here

     */
    public void creationOccurred(ResourceCreationEvent event)
    {
        CreationNotificationDocument creationNotificationDocument = CreationNotificationDocument.Factory.newInstance();
        org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CreationNotificationDocument.CreationNotification creationNotification = creationNotificationDocument.addNewCreationNotification();
        EndpointReference endpointReference = event.getEndpointReference();
        if(endpointReference != null && endpointReference instanceof XmlBeansEndpointReference)
        {
            XmlBeansEndpointReference xmlepr = (XmlBeansEndpointReference)endpointReference;
            XmlObject xmlObject = xmlepr.getXmlObject(org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA);
            if(xmlObject instanceof EndpointReferenceType)
View Full Code Here

            ResourceContextException,
            ResourceUnknownException
    {
        ++m_printerId;
        String printerId = "Printer" + m_printerId;
        EndpointReference printerEpr = getEndpointReference( printerId );
        PrinterPortResource printer = new PrinterPortResource( "Printer" + printerId, printerEpr );
        printer.init();
        add( printer );
        return printer;
    }
View Full Code Here

         subPolicy = request.getSubscriptionPolicy(  );
      }

      Boolean           useNotify =
         request.isSetUseNotify(  ) ? Boolean.valueOf( request.getUseNotify(  ) ) : null;
      EndpointReference consumerEPR     = new XmlBeansEndpointReference( request.getConsumerReference(  ) );
      EndpointReference subscriptionEPR;
      try
      {
         subscriptionEPR =
            m_producerResource.subscribe( consumerEPR, topicExpr, useNotify, precondition, selector, subPolicy,
                                          initialTerminationTime );
View Full Code Here

               {
                  msgXBean = wrapMessageWithNotify( msgXBean, topicExpr );
               }

               Document          msgDom      = toDomDocument( msgXBean );
               EndpointReference consumerEPR = subscription.getConsumerReference(  );
               SOAPMessage       soapMsg     = buildSOAPMessage( msgDom, consumerEPR );
               EMITTER_POOL.execute( EmitterTask.createEmitterTask( soapMsg,
                                                                    new URL( consumerEPR.getAddress(  ).toString(  ) ) ) );
            }
         }
      }
   }
View Full Code Here

      // TODO (ips, 09/28/05): creation of Notify xbean should be spec-version-sensitive
      NotifyDocument                notifyDoc      = NotifyDocument.Factory.newInstance(  );
      NotifyDocument.Notify         notify         = notifyDoc.addNewNotify(  );
      NotificationMessageHolderType notifMsgHolder = notify.addNewNotificationMessage(  );
      notifMsgHolder.setMessage( msgXBean );
      EndpointReference         producerEPR       = m_producerResource.getEndpointReference(  );
      XmlBeansEndpointReference xBeansProducerEPR = ( (XmlBeansEndpointReference) producerEPR );
      notifMsgHolder.setProducerReference( (EndpointReferenceType) xBeansProducerEPR.getXmlObject( org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA ) );
      TopicExpressionType topicExprType =
         (TopicExpressionType) TopicsTypeWriter.newInstance( TopicsConstants.NSURI_WSTOP_SCHEMA ).toXmlObject( topicExpr,
                                                                                                               NotificationProducerPortType.PROP_QNAME_TOPIC );
View Full Code Here

         //create Subscription
         //System.out.println("get RemoteResourceSubscriptionHome " + RemoteSubscriptionHome.HOME_LOCATION);
         SubscriptionHome sH = (SubscriptionHome) new InitialContext(  ).lookup( SubscriptionHome.HOME_LOCATION );

         //create NotifyTO EPR
         EndpointReference notifyto = null;
         if ( body.getSubscribe(  ).getDelivery(  ).getNotifyTo(  ) != null )
         {
            notifyto = new XmlBeansEndpointReference( body.getSubscribe(  ).getDelivery(  ).getNotifyTo(  ) );
         }

         //create EndTO EPR
         EndpointReference endto = null;
         if ( body.getSubscribe(  ).getEndTo(  ) != null )
         {
            endto = new XmlBeansEndpointReference( body.getSubscribe(  ).getEndTo(  ) );
         }
View Full Code Here

                                      byte[] base64Data,
                                      PrinterPortResource printerResource )
    {
        ++m_jobId;
        String jobId = "Job" + m_jobId;
        EndpointReference jobEpr = getEndpointReference( jobId );
        JobPortResource job = new JobPortResource( jobEpr, jobId, jobName, printerResource, origUserName );
        job.init();
        try
        {
            add( job );
View Full Code Here

                                      String jobName,
                                      PrinterPortResource printerResource )
    {
        ++m_jobId;
        String jobId = "Job" + m_jobId;
        EndpointReference jobEpr = getEndpointReference( jobId );
        JobPortResource job = new JobPortResource( jobEpr, jobId, jobName, printerResource );
        job.init();
        try
        {
            add( job );
View Full Code Here

TOP

Related Classes of org.apache.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.