myeclipse jax-ws web client

draco 2012-05-30

myeclipse jax-ws web client 

客户端的建立:

一.建立 Java Project

    w_webservice_client

二.File -> new ->other -> MyEclipse ->Web service -> Web service Client

    Framework : jax-ws

    NEXT ->

    wsdl file:w_webservice\WebRoot\WEB-INF\wsdl\HelloService.wsdl

    NEXT -> Finish

三.写测试程序:

package com.wsg.test;

import com.wsg.ws.HelloDelegate;
import com.wsg.ws.HelloService;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		HelloService hello = new HelloService();
		HelloDelegate hd = hello.getHelloPort();
		System.out.println(hd.sayHello("dmm"));
		
	}

}
 

相关推荐