• 大小: 31.6MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-16
  • 语言: Java
  • 标签: apache  

资源简介

Apache-cxf 2.2.8 安装文件夹下的bin文件下的wsdl2java.bat(请提前下载apache-cxf,并且解压缩),把安装路径配置为全局变量

资源截图

代码片段和文件信息

/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License Version 2.0 (the
 * “License“); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing
 * software distributed under the License is distributed on an
 * “AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package demo.hw.client;


import org.apache.cxf.aegis.databinding.AegisDatabinding;
import org.apache.cxf.frontend.ClientProxyFactoryBean;


import demo.hw.server.HelloWorld;

public final class Client {

    private Client() {
    } 

    public static void main(String args[]) throws Exception {
        ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
        factory.setServiceClass(HelloWorld.class);
        if (args != null && args.length > 0 && !““.equals(args[0])) {
            factory.setAddress(args[0]);
        } else {
            factory.setAddress(“http://localhost:9000/Hello“);
        }
        factory.getServiceFactory().setDataBinding(new AegisDatabinding());
        HelloWorld client = (HelloWorld)factory.create();
        System.out.println(“Invoke sayHi()....“);
        System.out.println(client.sayHi(System.getProperty(“user.name“)));
        System.exit(0);
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-05-07 13:23  apache-cxf-2.2.8\
     文件        6390  2010-05-07 12:39  apache-cxf-2.2.8\release_notes.txt
     目录           0  2010-05-07 13:23  apache-cxf-2.2.8\lib\
     文件        2385  2010-05-07 12:39  apache-cxf-2.2.8\lib\WHICH_JARS
     文件        3770  2010-05-07 12:39  apache-cxf-2.2.8\README
     目录           0  2010-05-07 13:23  apache-cxf-2.2.8\licenses\
     文件        2378  2010-05-07 12:39  apache-cxf-2.2.8\licenses\oasis.txt
     文件        1073  2010-05-07 12:39  apache-cxf-2.2.8\licenses\ruby-mit.txt
     文件        1514  2010-05-07 12:39  apache-cxf-2.2.8\licenses\bsd.txt
     文件        1938  2010-05-07 12:39  apache-cxf-2.2.8\licenses\ws-policy.txt
     文件        4284  2010-05-07 12:39  apache-cxf-2.2.8\licenses\w3c.html
     文件       20162  2010-05-07 12:39  apache-cxf-2.2.8\licenses\cdd1-1.0.txt
     文件        1512  2010-05-07 12:39  apache-cxf-2.2.8\licenses\asm.txt
     文件        1134  2010-05-07 12:39  apache-cxf-2.2.8\licenses\bouncy-castle.txt
     文件        2564  2010-05-07 12:39  apache-cxf-2.2.8\licenses\jdom.txt
     文件        1133  2010-05-07 12:39  apache-cxf-2.2.8\licenses\sl4j.txt
     文件        2129  2010-05-07 12:39  apache-cxf-2.2.8\licenses\wsa.txt
     文件        1216  2010-05-07 12:39  apache-cxf-2.2.8\licenses\wsdl.txt
     文件        1581  2010-05-07 12:39  apache-cxf-2.2.8\licenses\jaxen.txt
     文件       25755  2010-05-07 12:39  apache-cxf-2.2.8\licenses\MPL-1.1.txt
     文件       11613  2010-05-07 12:39  apache-cxf-2.2.8\licenses\wsdl4j.txt
     文件        2594  2010-05-07 13:16  apache-cxf-2.2.8\NOTICE
     文件       14969  2010-05-07 13:16  apache-cxf-2.2.8\LICENSE
     目录           0  2010-05-07 12:39  apache-cxf-2.2.8\bin\
     文件        2962  2010-05-07 12:39  apache-cxf-2.2.8\bin\mc
     文件        1795  2010-05-07 12:39  apache-cxf-2.2.8\bin\wsdl2java.bat
     文件        2205  2010-05-07 12:39  apache-cxf-2.2.8\bin\wsdl2js
     文件        1742  2010-05-07 12:39  apache-cxf-2.2.8\bin\mc.bat
     文件        3087  2010-05-07 12:39  apache-cxf-2.2.8\bin\java2ws
     文件        2938  2010-05-07 12:39  apache-cxf-2.2.8\bin\wsdl2xml
     文件        1946  2010-05-07 12:39  apache-cxf-2.2.8\bin\wsdl2service.bat
............此处省略2409个文件信息

评论

共有 条评论