上网搜索~http://www.97t.org/ArticleView/2005-9-5/Article_View_48024.Htm上面有介绍,仔细看~~~

解决方案 »

  1.   

    WSDL2Java生成的文件中就有调用的类,叫XXXXClient。
      

  2.   

    public class TestCall
    {
    public static void main(String[] args) throws Exception
    {
    String who = "YuLimin";
    TestService service = new TestServiceLocator();
    Test_PortType test = service.getTest();
    if(args.length > 0)
    {
    who = args[0];
    }
    System.out.println("Response:" + test.hello(who));
    }
    }
      

  3.   

    public static void main(String[] args) {
    GetWeather w = new GetWeather();
    w.setCityName("Hangzhou");
    w.setCountryName("China");

    GetCitiesByCountry c = new GetCitiesByCountry();
    c.setCountryName("China");
    try {
    GlobalWeatherStub stub = new GlobalWeatherStub();

    GetWeatherResponse r = stub.GetWeather(w);

    System.out.println(r.getGetWeatherResult());

    GetCitiesByCountryResponse cr = stub.GetCitiesByCountry(c);

    System.out.println(cr.getGetCitiesByCountryResult());
    } catch (AxisFault e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (RemoteException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    }
      

  4.   

    如何在JAVA客房端将将验证信息发送到客户端啊?
    既请求XML中SOAPHeader中的内容??