XXXX referenced from a method is not visible from class loader问题

通过javax.xml.ws.Service的方式调用WebService时

如果是jdk1.8,不需要引入任何依赖,可以直接通过

URL url = new URL(url);

QName name = new QName("http://xmlns.oracle.com/....", "HFM_HR_DEPARTMENT_BindingQSService");

javax.xml.ws.Service sc = javax.xml.ws.Service.create(url, name);

HFMHRDEPARTMENTPortType port = sc.getPort(HFMHRDEPARTMENTPortType.class);

response = port.getdepartment(parameter);

来获取数据。

如果需要账号密码,另加上Authenticator.setDefault(new MyAuthentication());进行验证。

public class MyAuthentication extends Authenticator {

@Override

protected PasswordAuthentication getPasswordAuthentication(){

String password="hfm_7898";

return new PasswordAuthentication("esb_fm01",password.toCharArray());

}

}

如果jdk更新到11版本,则加上

<dependency>

<groupId>com.sun.xml.ws</groupId>

<artifactId>jaxws-ri</artifactId>

<version>2.3.3</version>

<type>pom</type>

</dependency>

依赖即可

如果出现XXXX referenced from a method is not visible from class loader 问题,则查看是否依赖使用的是2.3.2版本,如果是,换成2.3.3版本即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
General Electrical Hardware Requirements and Guidelines 1 Introduction 1.1 Scope This document is the base of general hardware requirements for Electrical/Electronic (E/E) components. It shall be referenced in each Component Technical Specification (CTS) or Subsystem Technical Specification (SSTS). It is intended to be a guideline when creating a CTS/SSTS, and a guideline for suppliers when implementing the requirements of the CTS/SSTS. It is one of the documents the supplier receives with the Request For Quotation (RFQ) of automotive E/E components. 1.2 Mission/Theme This specification describes hardware requirements which apply to E/E components. This specification also provides descriptions, recommended circuits, and parameters to be specified for most standard inputs and outputs. These definitions are intended to be used for E/E components. This includes, but is not limited to, Powertrain, Chassis, Heating Ventilation and Air Conditioning (HVAC), Interior, Body, Closures, Exterior, and Electrical. This document may be used to cut and paste requirements into a CTS/SSTS, or may be used to eliminate sections of the CTS/SSTS by referencing the appropriate section of this document. 1.3 Requirement Wording Conventions Within this document, the following conventions are applied: The word "shall" is to be used in the following ways: To state a binding requirement on the E/E component or the interfaces which comprise the E/E component, which is verifiable by external manipulation and/or observation of an input or output. To state a binding requirement upon an E/E component’s requirements document that is verifiable through a review of the document. The word "must" is used to indicate that a binding requirement exists on components or devices which are outside the scope of this specification. The word "will" is used to state an immutable law of physics. he word "should" is used to denote a preference or desired conformance.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值