Web服务呼叫失败

时间:2013-10-09 14:03:22

标签: java soap jax-ws

我的网络服务电话如下:

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。

如何纠正此错误并使程序运行?

我能够获得它抛出的异常,下面是Stack Trace: java.lang.AbstractMethodError:org.apache.crimson.tree.XmlDocument.setDocumentURI(Ljava / lang / String;)V     在org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:1066)     at 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)     在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)

0 个答案:

没有答案