我有一个使用apache公理库作为SOAP客户端的类介体:
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1.2.22</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-impl</artifactId>
<version>1.2.22</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-dom</artifactId>
<version>1.2.22</version>
<scope>runtime</scope>
</dependency>
该代码在本地用作Java应用程序。
但是当我尝试通过API在EI 6.6.0中运行它时,出现以下错误:
javax.xml.soap.SOAPException: Unable to create SOAP connection factory: com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectionFactory cannot be cast to javax.xml.soap.SOAPConnectionFactory