资源简介

SpringBoot WebService cxf接口发布以及logbok日志集成, 希望对学习的小伙伴们有帮助

资源截图

代码片段和文件信息

package com.ophiux;

import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.encoding.xmlType;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

/**
 * 需要架包  commons-discovery-0.2.jar,jaxrpc.jaraxis.jar
 * @author hhl
 *
 */
public class AxisUtil {
public static void main(String[] args) {
micropay();
}

public static void micropay() {
String param = “{‘USER_ACC‘:‘1314‘}“;
invoke(param “getHello“);
}

public static String invoke(String paramString method) {
String result=““;
try {
String endpoint = “http://localhost:8080/webservice/WechatPayService?wsdl“;
// 直接引用远程的wsdl文件
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(endpoint);
QName qname = new QName(“http://wechatpay.ophiux.com/“ method);
call.setOperationName(qname);
call.addParameter(“data“ xmlType.XSD_STRING ParameterMode.IN);
object[] obj = { param };
call.setReturnType(xmlType.XSD_STRING);
result = (String) call.invoke(obj);
System.out.println(result);
} catch (Exception e) {
System.err.println(e.toString());
}
return result;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-07 16:29  OphiuxOnlineInquiryDataService\
     文件        1433  2018-08-07 17:11  OphiuxOnlineInquiryDataService\.classpath
     目录           0  2018-08-07 16:49  OphiuxOnlineInquiryDataService\.idea\
     目录           0  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\artifacts\
     文件         367  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\artifacts\OphiuxOnlineInquiryDataService_war.xml
     文件        9057  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\artifacts\OphiuxOnlineInquiryDataService_war_exploded.xml
     文件         672  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\compiler.xml
     文件         172  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\encodings.xml
     目录           0  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\
     文件         575  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_11.xml
     文件         554  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_11.xml
     文件         580  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__commons_discovery_commons_discovery_0_2.xml
     文件         572  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__commons_logging_commons_logging_1_0_3.xml
     文件         514  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_alibaba_fastjson_1_2_47.xml
     文件         522  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_fasterxml_classmate_1_3_4.xml
     文件         644  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml
     文件         602  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_8_10.xml
     文件         630  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_8_10.xml
     文件         546  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_2_0.xml
     文件         541  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_sun_xml_bind_jaxb_core_2_2_11.xml
     文件         541  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_sun_xml_bind_jaxb_impl_2_2_11.xml
     文件         700  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
     文件         578  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__javax_servlet_javax_servlet_api_3_1_0.xml
     文件         611  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__javax_validation_validation_api_1_1_0_Final.xml
     文件         437  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__jdom_jdom_1_0.xml
     文件         455  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__junit_junit_4_12.xml
     文件         542  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__net_minidev_accessors_smart_1_1.xml
     文件         521  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__net_minidev_json_smart_2_2_1.xml
     文件         667  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__nz_net_ultraq_thymeleaf_thymeleaf_layout_dialect_1_4_0.xml
     文件         451  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__ognl_ognl_3_0_8.xml
     文件         481  2018-08-07 16:29  OphiuxOnlineInquiryDataService\.idea\libraries\Maven__org_apache_axis_axis_1_4.xml
............此处省略332个文件信息

评论

共有 条评论