0

我有一个如下的网络服务调用:

public void getServiceSessionId() throws Exception{
    InfrastructureService service1 = new InfrastructureService();
    InfrastructureServiceSoap port1 = service1.getInfrastructureServiceSoap();
    LoginRequestType loginR = new LoginRequestType();
}

并且在InfraStructureService(). 当我尝试通过我的 Eclipse IDE 进行测试时,它不会引发任何错误,而是会进入堆栈的底部。

InfrastructureService()方法是JAX-WS自动生成的WSDL服务实现文件。

我能够在 IE 中打开WSDL,还能够通过SOAP UI获取会话 ID 。

我怎样才能纠正这个错误并使我的程序运行?

我能够获得它抛出的异常,下面是 Stack Trace: java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.setDocumentURI(Ljava/lang/String;)V at org.apache.cxf.staxutils .StaxUtils.read(StaxUtils.java:1066) 在 org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:234) 在 org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:192) 在org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:98) 在 org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203) 在 org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl. java:147) at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:98) at javax.xml.ws.Service.(Unknown Source) at 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)在 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)在 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)com.b.ca.referrals278.Referral278CAWebServiceHelper.createCaseRequest(Referral278CAWebServiceHelper.java:1555) 上的referrals278.caws.CAWebServiceClient.createCaseRequest(CAWebServiceClient.java:222) 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.Referral278CAWebServiceHelper.createCaseRequest(Referral278CAWebServiceHelper.java:1555) 上的referrals278.caws.CAWebServiceClient.createCaseRequest(CAWebServiceClient.java:222) 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)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)

4

0 回答 0