@Test
 public void test() throws Throwable {
   MultihopTranslationWithTemporalDictionaryService s =
       LangridAxisClientFactory.getInstance()
           .create(
               MultihopTranslationWithTemporalDictionaryService.class,
               new URL(
                   "http://localhost:8080/jp.go.nict.langrid.webapps.mock/services/MultihopTranslationWithTemporalDictionary"));
   AxisRequestInterceptor.setOutputStreamForCurrentThread(System.out);
   System.out.println(
       s.multihopTranslate(
           "ja",
           new String[] {"en"},
           "fr",
           "こんにちは世界",
           new Translation[] {new Translation("世界", new String[] {"globe"})},
           "fr",
           new String[][][] {new String[][] {new String[] {"globbe"}}},
           new String[] {"en"}));
 }
예제 #2
0
 public static ClientFactory clientFactory() {
   return LangridAxisClientFactory.getInstance();
 }