Package org.apache.axis.message.addressing

Examples of org.apache.axis.message.addressing.EndpointReferenceType


    *
    */
   public void testFindResource(  )
   throws Exception
   {
      EndpointReferenceType resource = m_stub.findResource( new FindResourceRequest( "disk", "1234" ) );
      Assert.assertNotNull( resource );
      MessageElement prop =
         resource.getProperties(  ).get( MuseAddressingConstants.REFERENCE_PROP_QNAME_RESOURCE_ID );
      Iterator       eleList = prop.getChildElements(  );
      Object         theText = eleList.next(  );
      Assert.assertEquals( "1234",
                           theText.toString(  ) );
   }
View Full Code Here


      // subscribe the consumer to all sensor services
      for ( int i = 0; i < endpointReferences.length; i++ )
      {
         // locate the sensor service
         EndpointReferenceType     sensorEpr = endpointReferences[i];
         SensorSoapHttpBindingStub sensor = getSensorService( sensorEpr );

         // build the request to subscribe to the sensor services' change notifications
         Subscribe         subscribeRequest  = buildSubscribe( sensorEpr );
         SubscribeResponse subscribeResponse = sensor.subscribe( subscribeRequest );
View Full Code Here

        System.out.println("**************************************** ");
        System.out.println("Call the service to estimate resources ");
        System.out.println("**************************************** ");
        //create resource
        PesResource pesResourceProxy = null;
        EndpointReferenceType estResourceEPR = null;
//        EndpointReferenceType reestResourceEPR = null;

        try {
            //create resource
            System.out.println("Create PES resource");
View Full Code Here

     */
    private static RemotePesService getServiceProxy(String pesSvcEndpoint, String clientKeystorePath, String password, CertificateTrustValidator validator) {

        ProxyFactory proxyFactory;

        EndpointReferenceType pesEpr;
        RemotePesService pesProxy;


        try {
            proxyFactory = createProxyFactory(clientKeystorePath, password, validator);
View Full Code Here

     */
    private static PesResource getResourceProxy(EndpointReferenceType resourceEPR, String clientKeystorePath, String password, CertificateTrustValidator validator) {

        ProxyFactory proxyFactory;

        EndpointReferenceType pesEpr;
        PesResource pesResourceProxy;


        try {
            proxyFactory = createProxyFactory(clientKeystorePath, password, validator);
View Full Code Here

        WSDLCache cache;
        SAMLTokenCache tokenCache;
        GridClientPluginManager pluginManager;
        ProxyFactory proxyFactory;
        ProxyFactory rawProxyFactory;
        EndpointReferenceType pesEpr;
        RemotePesService pesProxy;
        CertificateTrustValidator manager;

        try {
            // Create a keystore identity
View Full Code Here

public class BaseClientUtil {

    public static EndpointReferenceType getEPRfromFile(String path)
            throws IOException, DeserializationException {

        EndpointReferenceType epr;
        FileInputStream in = null;
        try {
            in = new FileInputStream(path);
            epr = (EndpointReferenceType) ObjectDeserializer.deserialize(
                             new InputSource(in), EndpointReferenceType.class);
View Full Code Here

                if (in != null) {
                    try { in.close(); } catch (Exception e) {}
                }
            }
        } else if (line.hasOption("s")) {
            this.endpoint = new EndpointReferenceType();
            this.endpoint.setAddress(new Address(line.getOptionValue("s")));
        } else {
            throw new ParseException("-s or -e argument is required");
        }
View Full Code Here

        // Boolean object can be null for conversion like this (null==false)
        final boolean ensDone =
                Boolean.TRUE.equals(wsreq.getEnsembleDone());
        final boolean partOfEnsemble =
                Boolean.TRUE.equals(wsreq.getPartOfEnsemble());
        final EndpointReferenceType ensembleEPR = wsreq.getEnsembleEPR();

        // it'd be interesting to not require this and use all defaults but
        // it is currently required:
        final WorkspaceDeployment_Type dep = wsreq.getResourceRequest();
        if (dep == null) {
View Full Code Here

    // VALIDATION
    // -------------------------------------------------------------------------

    private void validateEndpoint() throws ParameterProblem {

        final EndpointReferenceType epr = this.stubConf.getEPR();

        if (epr == null) {
            throw new ParameterProblem(name() + " requires EPR");
        }
View Full Code Here

TOP

Related Classes of org.apache.axis.message.addressing.EndpointReferenceType

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.