Package org.apache.ws.addressing

Examples of org.apache.ws.addressing.XmlBeansEndpointReference


         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,
View Full Code Here


    */
   public void updateProperty( Object[] propElems )
   throws CallbackFailedException
   {
      EndpointReferenceType consumerRef = (EndpointReferenceType) propElems[0];
      m_subscription.setConsumerReference( new XmlBeansEndpointReference( consumerRef ) );
   }
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(AddressingConstants.NSURI_ADDRESSING_SCHEMA))
        {
            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                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 );
      notifMsgHolder.setTopic( topicExprType );
      return notifyDoc;
View Full Code Here

         //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(  ) );
         }

         Filter   filter  = FilterFactory.createFilter( body.getSubscribe(  ).getFilter(  ) );
         Calendar expires = (Calendar) body.getSubscribe(  ).getExpires(  );
View Full Code Here

      {
         if ( metadata instanceof org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceDocument )
         {
            org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceDocument metadataReferenceDoc      =
               (org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceDocument) metadata;
            XmlBeansEndpointReference                                             xmlBeansEndpointReference =
               new XmlBeansEndpointReference( metadataReferenceDoc.getEndpointReference(  ) );
            EndpointReferenceType                                                 epr =
               (EndpointReferenceType) xmlBeansEndpointReference.getXmlObject( AddressingConstants.NSURI_ADDRESSING_SCHEMA );
            metadata = createMetadataReferenceDocument( epr );
         }
         else
         {
            LOG.error( "Error resolving MetadataEntry - dialect was " + m_dialect + ", but document at location "
View Full Code Here

   {
      EndpointReferenceType epr           = EndpointReferenceType.Factory.newInstance(  );
      AttributedURI         attributedURI = AttributedURI.Factory.newInstance(  );
      attributedURI.setStringValue( "http://foo" );
      epr.setAddress( attributedURI );
      return new XmlBeansEndpointReference( epr );
   }
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

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.