Package com.fengjing.framework.webservice.xfire.client

Source Code of com.fengjing.framework.webservice.xfire.client.HelloXfireServiceClient

package com.fengjing.framework.webservice.xfire.client;

import java.net.URL;

import org.codehaus.xfire.client.Client;
import org.junit.Test;

public class HelloXfireServiceClient {
 
  @Test
  public void test() throws Exception{
    Client client = new Client(new URL("http://localhost:8080/maven-framework/helloXfireService.ws?wsdl"));
        Object[] results = client.invoke("sayHello", new Object[] { "Spring" });
        System.out.println(results[0]);
  }
 
}
TOP

Related Classes of com.fengjing.framework.webservice.xfire.client.HelloXfireServiceClient

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.