以下のようなWebサービス呼び出しがあります。
public void getServiceSessionId() throws Exception{
InfrastructureService service1 = new InfrastructureService();
InfrastructureServiceSoap port1 = service1.getInfrastructureServiceSoap();
LoginRequestType loginR = new LoginRequestType();
}
の初期化中に呼び出しが失敗しますInfraStructureService()
。エラーはスローされず、Eclipse IDE でテストしようとすると、代わりにスタックの一番下に移動します。
このInfrastructureService()
メソッドは、 WSDLのJAX-WS自動生成サービス実装ファイルです。
IE でWSDLを開くことができ、SOAP UIを介してセッション ID を取得することもできます。
このエラーを修正してプログラムを実行するにはどうすればよいですか?
私はそれがスローする例外を取得することができました。以下はスタック トレースです。 org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:234) の .StaxUtils.read(StaxUtils.java:1066) org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:192) のorg.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:98) at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203) at org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl. java:147) で org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:98) で javax.xml.ws.Service.(不明なソース) で com.t.webservices.cqc.cae.infra .infrastructue.InfrastructureService.(InfrastructureService.java:41) com.b.ca.referrals278.caws.CAWebServiceClient.getServiceSessionId(CAWebServiceClient.java:186) com.b.ca.referrals278.caws.CAWebServiceClient.createCaseRequest(CAWebServiceClient.java:222) com.b.ca.referrals278.Referral278CAWebServiceHelper.createCaseRequest(Referral278CAWebServiceHelper.java:1555) com.b.ca.referrals278.Referral278Processor.createUmCase(Referral278Processor.java:4038) com.b.ca.referrals278.Referral278Processor.createInitialResponse( Referral278Processor.java:4158) com.b.ca.referrals278.Referral278Processor.getProcessInitialRequest(Referral278Processor.java:216) com.b.ca.referrals278.Referral278Main.processRequest(Referral278Main.java:130) com.b.ca .referrals278.Referral278Main.main(Referral278Main.java:49)referrals278.caws.CAWebServiceClient.getServiceSessionId(CAWebServiceClient.java:186) com.b.ca.referrals278.caws.CAWebServiceClient.createCaseRequest(CAWebServiceClient.java:222) com.b.ca.referrals278.Referral278CAWebServiceHelper.createCaseRequest(Referral278CAWebServiceHelper. java:1555) com.b.ca.referrals278.Referral278Processor.createUmCase(Referral278Processor.java:4038) com.b.ca.referrals278.Referral278Processor.createInitialResponse(Referral278Processor.java:4158) com.b.ca.referrals278 .Referral278Processor.getProcessInitialRequest(Referral278Processor.java:216)、com.b.ca.referrals278.Referral278Main.processRequest(Referral278Main.java:130)、com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49)referrals278.caws.CAWebServiceClient.getServiceSessionId(CAWebServiceClient.java:186) com.b.ca.referrals278.caws.CAWebServiceClient.createCaseRequest(CAWebServiceClient.java:222) com.b.ca.referrals278.Referral278CAWebServiceHelper.createCaseRequest(Referral278CAWebServiceHelper. java:1555) com.b.ca.referrals278.Referral278Processor.createUmCase(Referral278Processor.java:4038) com.b.ca.referrals278.Referral278Processor.createInitialResponse(Referral278Processor.java:4158) com.b.ca.referrals278 .Referral278Processor.getProcessInitialRequest(Referral278Processor.java:216)、com.b.ca.referrals278.Referral278Main.processRequest(Referral278Main.java:130)、com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49)referrals278.caws.CAWebServiceClient.createCaseRequest(CAWebServiceClient.java:222) com.b.ca.referrals278.Referral278CAWebServiceHelper.createCaseRequest(Referral278CAWebServiceHelper.java:1555) com.b.ca.referrals278.Referral278Processor.createUmCase(Referral278Processor.java: 4038) com.b.ca.referrals278.Referral278Processor.createInitialResponse(Referral278Processor.java:4158) com.b.ca.referrals278.Referral278Processor.getProcessInitialRequest(Referral278Processor.java:216) com.b.ca.referrals278.Referral278Main .processRequest(Referral278Main.java:130) at com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49)referrals278.caws.CAWebServiceClient.createCaseRequest(CAWebServiceClient.java:222) com.b.ca.referrals278.Referral278CAWebServiceHelper.createCaseRequest(Referral278CAWebServiceHelper.java:1555) com.b.ca.referrals278.Referral278Processor.createUmCase(Referral278Processor.java: 4038) com.b.ca.referrals278.Referral278Processor.createInitialResponse(Referral278Processor.java:4158) com.b.ca.referrals278.Referral278Processor.getProcessInitialRequest(Referral278Processor.java:216) com.b.ca.referrals278.Referral278Main .processRequest(Referral278Main.java:130) at com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49)java:1555) com.b.ca.referrals278.Referral278Processor.createUmCase(Referral278Processor.java:4038) com.b.ca.referrals278.Referral278Processor.createInitialResponse(Referral278Processor.java:4158) com.b.ca.referrals278 .Referral278Processor.getProcessInitialRequest(Referral278Processor.java:216)、com.b.ca.referrals278.Referral278Main.processRequest(Referral278Main.java:130)、com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49)java:1555) com.b.ca.referrals278.Referral278Processor.createUmCase(Referral278Processor.java:4038) com.b.ca.referrals278.Referral278Processor.createInitialResponse(Referral278Processor.java:4158) com.b.ca.referrals278 .Referral278Processor.getProcessInitialRequest(Referral278Processor.java:216)、com.b.ca.referrals278.Referral278Main.processRequest(Referral278Main.java:130)、com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49)com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49) の processRequest(Referral278Main.java:130)com.b.ca.referrals278.Referral278Main.main(Referral278Main.java:49) の processRequest(Referral278Main.java:130)