Examples of GetResourcePropertyDocument


Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument

        //todo test notifs....???are there notifs anymore??
    }

    public void testgetRelationships()
    {
        GetResourcePropertyDocument getResourcePropertyDocument;
        //get relationships from dir > 0
        getResourcePropertyDocument = GetResourcePropertyDocument.Factory.newInstance();
        getResourcePropertyDocument.setGetResourceProperty(WeatherStationDirPropertyQNames.RELATIONSHIP);     //need epr
        XmlObject getRelResp = InteropRequestUtils.sendRequest(getResourcePropertyDocument, "http://wsdmdemo.org/service/weather-station-dir/GetResourceProperties", WEATHER_STATION_DIR_SERVICE_URL);
        //todo assert we get both relationships
    }
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument

       m_epr = epr;
    }

    public XmlObject[] getResourceProperty( QName propName ) throws FaultException
    {
        GetResourcePropertyDocument requestDoc = GetResourcePropertyDocument.Factory.newInstance();
        requestDoc.setGetResourceProperty( propName );
        XmlObject response = sendRequest( requestDoc, "http://xyz.com/action/GetResourceProperty" );
        if ( ! ( response instanceof GetResourcePropertyResponseDocument.GetResourcePropertyResponse ) )
        {
            throw new FaultException( response.toString() );
        }
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument

    }

    public static LastMessageType getLastMessage(String serviceURL)
    {

        GetResourcePropertyDocument getResourcePropertyDocument = GetResourcePropertyDocument.Factory.newInstance();
        getResourcePropertyDocument.setGetResourceProperty(ConsumerPropertyQNames.LASTMESSAGE);
        XmlObject xmlObject = sendRequest(getResourcePropertyDocument, "http://getResourceProp", createEpr(serviceURL));
        if (xmlObject instanceof GetResourcePropertyResponseDocument.GetResourcePropertyResponse)
        {
            GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyDocumentResponse = (GetResourcePropertyResponseDocument.GetResourcePropertyResponse) xmlObject;
            XmlObject[] childElements = XmlBeanUtils.getChildElements(getResourcePropertyDocumentResponse);
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument

    * @return DOCUMENT_ME
    */
   protected GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourceProperty( QName propName )
   {
      GetResourcePropertyPortTypeImpl get_provider = new GetResourcePropertyPortTypeImpl( m_resourceContext );
      GetResourcePropertyDocument     get_document = GetResourcePropertyDocument.Factory.newInstance(  );
      get_document.setGetResourceProperty( propName );
      GetResourcePropertyResponseDocument                             resourceProperty =
         get_provider.getResourceProperty( get_document );
      GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse =
         resourceProperty.getGetResourcePropertyResponse(  );
      return getResourcePropertyResponse;
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument

    * @return DOCUMENT_ME
    */
   protected GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourceProperty( QName propName )
   {
      GetResourcePropertyPortTypeImpl get_provider = new GetResourcePropertyPortTypeImpl( m_resourceContext );
      GetResourcePropertyDocument     get_document = GetResourcePropertyDocument.Factory.newInstance(  );
      get_document.setGetResourceProperty( propName );
      GetResourcePropertyResponseDocument                             resourceProperty =
         get_provider.getResourceProperty( get_document );
      GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse =
         resourceProperty.getGetResourcePropertyResponse(  );
      return getResourcePropertyResponse;
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument

    }

    public static LastMessageType getLastMessage(String serviceURL)
    {

        GetResourcePropertyDocument getResourcePropertyDocument = GetResourcePropertyDocument.Factory.newInstance();
        getResourcePropertyDocument.setGetResourceProperty(ConsumerPropertyQNames.LASTMESSAGE);
        XmlObject xmlObject = sendRequest(getResourcePropertyDocument, "http://getResourceProp", createEpr(serviceURL));
        if (xmlObject instanceof GetResourcePropertyResponseDocument.GetResourcePropertyResponse)
        {
            GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyDocumentResponse = (GetResourcePropertyResponseDocument.GetResourcePropertyResponse) xmlObject;
            XmlObject[] childElements = XmlBeanUtils.getChildElements(getResourcePropertyDocumentResponse);
View Full Code Here

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument

         resourcePropertyValueChangeNotificationType2.addNewOldValue(  );
      oldValue2.newCursor(  ).setTextValue( "two" );
      oldValue1 = (ResourcePropertyValueChangeNotificationType.OldValue) oldValue1.set( oldValue2 );
      System.out.println( resourcePropertyValueChangeNotificationDocument1 );

      GetResourcePropertyDocument getResourcePropertyDoc1 = GetResourcePropertyDocument.Factory.newInstance(  );
      getResourcePropertyDoc1.setGetResourceProperty( new QName( "one" ) );
      GetResourcePropertyDocument getResourcePropertyDoc2 = GetResourcePropertyDocument.Factory.newInstance(  );
      getResourcePropertyDoc2.setGetResourceProperty( new QName( "two" ) );
      getResourcePropertyDoc1 =
         (GetResourcePropertyDocument) getResourcePropertyDoc1.set( getResourcePropertyDoc2 );
      System.out.println( getResourcePropertyDoc1 );
   }
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.resource.properties.GetResourcePropertyDocument

public class ActiveMQNotificationBrokerTest extends TestSupport {

    public void testGetRequiresRegistrationProperty() throws Exception {
        ActiveMQNotificationBroker broker = new ActiveMQNotificationBroker();
       
        GetResourcePropertyDocument request = GetResourcePropertyDocument.Factory.newInstance();
        QName property = new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BrokeredNotification-1.2-draft-01.xsd", "RequiresRegistration");
        request.setGetResourceProperty( property );
        System.out.println(request);
        GetResourcePropertyResponseDocument response = broker.getResourceProperty(null, request);
        System.out.println(response);
        assertNotNull(response);
        XmlCursor cursor = response.newCursor();
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.resource.properties.GetResourcePropertyDocument

*/
public abstract class TestSupport extends TestCase {
    protected ActiveMQTopic topic = new ActiveMQTopic("Test");

    protected XmlObject createMessage() {
        GetResourcePropertyDocument xml = GetResourcePropertyDocument.Factory.newInstance();
        QName property = new QName("test", "test");
        xml.setGetResourceProperty( property );
        return xml;
    }
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.