Package org.apache.ws.addressing

Examples of org.apache.ws.addressing.EndpointReference


    super.tearDown();
  }

  public void testSubscribe() throws FaultException{
   
    EndpointReference response = m_resource.subscribe("http://12.35.246.160:8001/bogasendpoint",new QName("http://rim.pda","CodeModuleSize"));
    assertNotNull(response);
    System.out.println("Waiting for a message");
    String mess = m_listener.waitForIncomingMessage();
    assertNotNull(mess);
    System.out.println("Message:\n"+mess);
View Full Code Here


  private void updateStatusOfWs(EndpointReferenceType epr, String optStatus) {
    String epr1=epr.getAddress().getStringValue();
    for (Iterator iter = model.iterator(); iter.hasNext();) {
      WsImpl ws = (WsImpl) iter.next();
      if(!(ws instanceof IWc)){
        EndpointReference eprTest = ws.getEpr();
       
        if(epr.getAddress().getStringValue().endsWith("anonymous")){
          if(eprTest.getAddress().endsWith("WeatherStationSOAP")){
            Color color=colorFromStatus(optStatus);
            statusJPanel.setColor(ws.getName(),color);
          }         
        }
        else {
          if(eprTest.getAddress().equals(epr.getAddress().getStringValue())){
            Color color=colorFromStatus(optStatus);
            statusJPanel.setColor(ws.getName(),color);
          }
        }
        repairIfNeeded(ws.getName(),optStatus);
View Full Code Here

  public void onConnect() {
        try {
          startListener();
          // Subscribe
      m_resource = new ResourceStub( getEpr(subsciberInfoJPanel.getResourceUrl(),null) );
      EndpointReference response = m_resource.subscribe(subsciberInfoJPanel.getNotificationLister(),new QName(subsciberInfoJPanel.getTopicNamespace(),subsciberInfoJPanel.getTopicName()));
     
     
    } catch (XmlException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

        //make sure to have path in consumer url...not sure if he still needs it be we had added at one point
        String consumerUrl = "http://12.35.246.160:8001/notifs";

        //subscribe for the events
        EndpointReference subscriptionEPR = subscribeForOperationalStatusChangeEvents(consumerUrl, m_resource);

        //setup port listener
        m_listener = new PortListen(80, 600000);

        //call recalibrate (after noticing erratic behavior) on webservice to trigger the status change evennt
View Full Code Here

                    resource = (WeatherstationResource)createInstance(key);
                    FCCIDDocument fccidDocument = FCCIDDocument.Factory.newInstance();
                    //set the same value for both instances
                    fccidDocument.setFCCID(InteropConstants.FCCID);
                    ((WeatherstationResource) resource).setFCCID(fccidDocument);
                    EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
                    resource.setEndpointReference(epr);

                }
                catch (Exception e)
                {
View Full Code Here

            if (id.equals("bb1") || id.equals("bb2"))
            {
                try
                {
                    resource = (BlackberryResource)createInstance(key);
                    EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
                    resource.setEndpointReference(epr);
                }
                catch (Exception e)
                {
                    throw new ResourceException(e);
View Full Code Here

      Object resourceId = SERVICE_NAME + Long.toString( currentId );

      try
      {
         resource = new BusinessprocesstypeResource( resourceId, params );
         EndpointReference epr =
            getEndpointReference( resourceId );
         ( (BusinessprocesstypeResource) resource ).setEndpointReference( epr );
         resource.init(  );
         add( resource );
      }
View Full Code Here

      Object resourceId = SERVICE_NAME + Long.toString( currentId );
      try
      {
         // resource = createInstance(aKey);
         resource = new ApplicationResource( resourceId, params );
         EndpointReference epr =
            getEndpointReference( resourceId );
         ( (ApplicationResource) resource ).setEndpointReference( epr );
         resource.init(  );
         add( resource );
      }
View Full Code Here

         resource = new HostResource( 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(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , null, SPEC_NAMESPACE_SET.getAddressingNamespace());
         EndpointReference epr =
            getEndpointReference( resourceId );
         ( (HostResource) resource ).setEndpointReference( epr );
         resource.init(  );
         add( resource );
      }
View Full Code Here

   throws CallbackFailedException
   {
      try
      {
         DiscoveryDocument disc = DiscoveryDocument.Factory.newInstance(  );
         EndpointReference epr = null;
         InitialContext    ctx = new InitialContext(  );

         prop.clear(  );
         ResourceadminHome aHome     = (ResourceadminHome) ( ctx.lookup( ResourceadminHome.HOME_LOCATION ) );
         Map               resources = aHome.getResources(  );
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.