Package eu.planets_project.services.datatypes

Examples of eu.planets_project.services.datatypes.ServiceDescription.toXmlFormatted()


   */
  @Test
  public void testDescribe() {
        ServiceDescription desc = javaDigest.describe();
        assertNotNull("The ServiceDescription should not be NULL.", desc);
        System.out.println("Recieved service description: " + desc.toXmlFormatted());
  }

  private void testDefaultDigest(TestFile testFile, Fixity fixity) {
    // Ok let's make the call to test
        FixityResult fixityResult = fixity.calculateChecksum(
View Full Code Here


     */
    @Test
    public void testDescribe() {
        ServiceDescription desc = ids.describe();
        assertTrue("The ServiceDescription should not be NULL.", desc != null );
        System.out.println("Recieved service description: " + desc.toXmlFormatted());
    }

    /**
     * Test method for {@link eu.planets_project.ifr.core.simple.impl.SimpleIdentifyService#identify(eu.planets_project.services.datatypes.DigitalObject)}.
     * @throws MalformedURLException
View Full Code Here

    public static void main(String [] args) throws MalformedURLException {
        // If called from the command line, parse the argument as a WSDL URL.
        if( args.length == 1 ) {
            URL wsdl  = new URL(args[0]);
            ServiceDescription sd = DiscoveryUtils.getServiceDescription(wsdl);
            System.out.print(sd.toXmlFormatted());
            return;
        }
        // Otherwise, do a simple test:
        URL wsdls[] = new URL[] {
                new URL("http://127.0.0.1:8080/pserv-if-simple/AlwaysSaysValidService?wsdl"),
View Full Code Here

                new URL("http://127.0.0.1:8080/pserv-if-simple/PassThruMigrationService?wsdl"),
                new URL("http://127.0.0.1:8080/pserv-pa-sanselan/SanselanMigrate?wsdl")
                };
        for( URL wsdl : wsdls ) {
            ServiceDescription sd = DiscoveryUtils.getServiceDescription(wsdl);
            System.out.println(" Description: "+sd.toXmlFormatted());
        }
    }
   
}
View Full Code Here

        } else {
            classname = "eu.planets_project.services.sanselan.SanselanIdentify";
        }
       
        ServiceDescription sd = DescribeService.getServiceDescription(classname);
        System.out.print(sd.toXmlFormatted());
    }
}

/*
* Original idea was to do this as an ant task, but this means having ANT on the server classpath unless we modify the build system.
View Full Code Here

    assertTrue("The ServiceDescription should not be NULL.", sd != null );
      System.out.println("test: describe()");
      System.out.println("--------------------------------------------------------------------");
      System.out.println();
      System.out.println("Received ServiceDescription from: " + JTIDY.getClass().getName());
      System.out.println(sd.toXmlFormatted());
      System.out.println("--------------------------------------------------------------------");
  }
 
  @Test
  public void testAllPossibleMigrationPathways() {
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.