Package org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01

Examples of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument$Factory


      for ( int i = 0; i < propNames.length; i++ )
      {
         getMultipleResourceProperties.addResourceProperty( propNames[i] );
      }

      GetMultipleResourcePropertiesResponseDocument                                       responseDoc =
         provider.getMultipleResourceProperties( doc );
      GetMultipleResourcePropertiesResponseDocument.GetMultipleResourcePropertiesResponse response =
         responseDoc.getGetMultipleResourcePropertiesResponse(  );
      return response;
   }
View Full Code Here


    *
    * @return the response XMLBean
    */
   public GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( GetMultipleResourcePropertiesDocument requestDoc )
   {
      GetMultipleResourcePropertiesResponseDocument responseDoc = createResponseDocument(  );
      QName[]                                       propNames =
         requestDoc.getGetMultipleResourceProperties(  ).getResourcePropertyArray(  );
      ResourceProperty[]                            props = getMultipleProperties( propNames );
      addPropertiesToResponse( props,
                               responseDoc.getGetMultipleResourcePropertiesResponse(  ) );
      return responseDoc;
   }
View Full Code Here

      return responseDoc;
   }

   private GetMultipleResourcePropertiesResponseDocument createResponseDocument(  )
   {
      GetMultipleResourcePropertiesResponseDocument responseDoc =
         GetMultipleResourcePropertiesResponseDocument.Factory.newInstance(  );
      responseDoc.addNewGetMultipleResourcePropertiesResponse(  );
      return responseDoc;
   }
View Full Code Here

    }

    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

        ResourcePropertyValueChangeNotificationType.OldValue oldValue2 = 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

    }

    protected GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourceProperty( QName propName )
    {
        GetResourcePropertyProvider get_provider = new GetResourcePropertyProvider( 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

    }

    public static String getResourceId(EndpointReferenceType endpointReferenceType)
    {
        System.out.println("Getting resourceid for epr: " + endpointReferenceType.getAddress().getStringValue());
        GetResourcePropertyDocument getResourcePropertyDocument = GetResourcePropertyDocument.Factory.newInstance();
        getResourcePropertyDocument.setGetResourceProperty(IdentityCapability.PROP_NAME_RESOURCE_ID);
        XmlObject xmlObject = sendRequest(getResourcePropertyDocument, "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl/GetResourceProperty", new XmlBeansEndpointReference(endpointReferenceType));
        String resourceID = null;
        if (xmlObject instanceof GetResourcePropertyResponseDocument.GetResourcePropertyResponse)
        {
            GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = (GetResourcePropertyResponseDocument.GetResourcePropertyResponse) xmlObject;
View Full Code Here

       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","P" );
        if ( ! ( response instanceof GetResourcePropertyResponseDocument.GetResourcePropertyResponse ) )
        {
            throw new FaultException( response.toString() );
        }
View Full Code Here

    }

    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

    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

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument$Factory

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.