Package org.apache.ws.addressing

Examples of org.apache.ws.addressing.EndpointReference


   public org.apache.ws.muse.example.resourceadmin.properties.CreateResponseDocument Create( org.apache.ws.muse.example.resourceadmin.properties.CreateDocument requestDoc )
   throws org.apache.ws.muse.example.resourceadmin.InvalidResourcePropertiesException,
          org.apache.ws.muse.example.resourceadmin.ResourceUnknownFaultException,
          org.apache.ws.muse.example.resourceadmin.CreateFaultException
   {
      EndpointReference                                                                         epr              =
         null;
      org.apache.ws.muse.example.resourceadmin.properties.CreateResponseDocument                responseDocument =
         org.apache.ws.muse.example.resourceadmin.properties.CreateResponseDocument.Factory.newInstance(  );
      org.apache.ws.muse.example.resourceadmin.properties.CreateResponseDocument.CreateResponse response         =
         responseDocument.addNewCreateResponse(  );
View Full Code Here


        {
         
           if ( m_adminResource == null )
           {
              m_adminResource = (ResourceadminResource) createInstance( null );
              EndpointReference epr =
                 getEndpointReference( null );
              m_adminResource.setEndpointReference( epr );
              add( m_adminResource );
              System.out.println("epr is " + epr.toString());
           }
        }
        catch ( ResourceException e )
        {
           throw new ResourceUnknownException( "ResourceadminResource","ResourceadminResource"
View Full Code Here

                UnitResource myresource = new UnitResource(); //this will create the resource IF it is has default constructor
                myresource.setID("123");
                m_resource = myresource;
                myresource.init();
                //the next line will create an EPR
                EndpointReference epr = getEndpointReference(resourceContext.getBaseURL() + "/" + getServiceName().getLocalPart(), RESOURCE_KEY, m_namespaceSet.getAddressingNamespace());
                myresource.setEndpointReference(epr); //make sure to set the EPR on your new instance
                add(RESOURCE_KEY, myresource);
            }
            catch (Exception e)
            {
View Full Code Here

                    if ( m_subscription.getUseNotify() )  // wrap message in Notify element
                    {
                        msg = wrapMessageWithNotify( msg );
                    }
                    Document document = toDomDocument( msg );
                    EndpointReference consumerEPR = m_subscription.getConsumerReference();
                    SOAPMessage soapMessage =
                            buildSOAPMessage( document,
                                    (EndpointReferenceType) ( (XmlObjectWrapper) consumerEPR ).getXmlObject() );
                    EMITTER_POOL.execute( EmitterTask.createEmitterTask( soapMessage,
                            new URL( consumerEPR.getAddress().toString() ) ) );
                }
            }
        }
    }
View Full Code Here

        String id = (String) rs.getID();

        SimpleTypeResourceKey resourceKey = new SimpleTypeResourceKey( QName.valueOf( getResourceKeyName()), id);
        //TODO !!!!! woher kommt publisher epr url ??? HACK for tcpmon 12345-8080
        String subscriptionAddress = "http://localhost:12345/axis/services/SubscriptionManager";
        EndpointReference subscriptionEPR = getEndpointReference( subscriptionAddress, resourceKey, Constants.NS_URI_ADDRESSING_2004_08 );
        rs.setEpr(subscriptionEPR);
        rs.setResourceKey(resourceKey);

        addSubscription(rs);
        return rs;
View Full Code Here

            subscription.setPrecondition( precondition );
            subscription.setPolicy( policy );
            subscription.init()// initialize resource properties
            String id = (String) subscription.getID();
            SimpleTypeResourceKey resourceKey = new SimpleTypeResourceKey( QName.valueOf( getResourceKeyName() ), id );
            EndpointReference subscriptionEPR = getEndpointReference( getSubscriptionAddress( producerReference ),
                    resourceKey, nsSet.getAddressingNamespace() );
            subscription.setEndpointReference( subscriptionEPR );
            add( resourceKey, subscription );
            return subscription;
        }
View Full Code Here

            subPolicy = request.getSubscriptionPolicy();
        }
        EndpointReferenceType subscriptionEPR = null;

        boolean useNotify = request.isSetUseNotify() ? request.getUseNotify() : true// NOTE: we must set the default value ourselves, as XMLBeans does NOT do this for us
        EndpointReference producerEPR = getResource().getEndpointReference();
        SubscriptionHome subscriptionHome = null;
        try
        {
            subscriptionHome = (SubscriptionHome) new InitialContext().lookup(
                            SubscriptionHome.HOME_LOCATION );
View Full Code Here

    {
        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

         resource = new HostResource( aKey, 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( resourceContext.getBaseURL(  ) + "/" + getServiceName(  ).getLocalPart(  ),
                                  aKey,
                                  ExampleConstants.getAddressingNamespace(  ) );
         ( (HostResource) resource ).setEndpointReference( epr );
         resource.init(  );
View Full Code Here

         resource = new ApplicationResource( aKey, params );

         //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( resourceContext.getBaseURL(  ) + "/" + getServiceName(  ).getLocalPart(  ),
                                  aKey,
                                  ExampleConstants.getAddressingNamespace(  ) );
         ( (ApplicationResource) resource ).setEndpointReference( epr );
         resource.init(  );
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.