⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logclient.java

📁 webservices axis文档 例子
💻 JAVA
字号:
package anni;
import javax.xml.namespace.QName;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class LogClient {
    public static void main(String [] args) throws Exception {
		Log log = LogFactory.getLog(LogClient.class);
        String endpointURL = "http://localhost:8080/axis/services/HandleredService";            
        Service  service = new Service();
        Call     call    = (Call) service.createCall();
        call.setTargetEndpointAddress(new java.net.URL(endpointURL));
        call.setOperationName(new QName("HandleredService", "publicMethod"));//设置操作的名称。
        String res = (String) call.invoke(new Object[] {"Lingo"});
        log.info(res);
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -