当前位置:网站首页>CXF call reports an error. Could not find conduct initiator for address:
CXF call reports an error. Could not find conduct initiator for address:
2022-07-07 23:13:00 【Scale biubiu】
rely on
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.2.2</version>
</dependency>
Test code
@Test
public void test1() {
JaxWsProxyFactoryBean jaxWs = new JaxWsProxyFactoryBean();
jaxWs.setAddress("http://192.168.8.254:11090/artesia-ux-ws/services/ArtesiaLoginService");
jaxWs.setServiceClass(ArtesiaLoginService.class);
ArtesiaLoginService als = (ArtesiaLoginService) jaxWs.create();
LoginSession login = als.login("tsuper", "Passw0rd!");
System.out.println(login.getId().getIdString());
}
Report errors :
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could not find conduit initiator for address: http://192.168.8.254:11090/artesia-ux-ws/services/ArtesiaLoginService and transport: http://schemas.xmlsoap.org/soap/http
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
at com.sun.proxy.$Proxy47.login(Unknown Source)
at com.zvn.test.hmc.WebServiceTest.main(WebServiceTest.java:16)
Caused by: java.lang.RuntimeException: Could not find conduit initiator for address: http://192.168.8.254:11090/artesia-ux-ws/services/ArtesiaLoginService and transport: http://schemas.xmlsoap.org/soap/http
at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:228)
at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:233)
at org.apache.cxf.endpoint.AbstractConduitSelector.createConduit(AbstractConduitSelector.java:146)
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:108)
at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:870)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:528)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:442)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:343)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
... 2 more
No problem with the interface address : So the question is transport: http://schemas.xmlsoap.org/soap/http
SOAP The transmission protocol of is based on http Agreed , Dependency required
Error reporting solutions :
Add dependency :
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>3.2.2</version>
</dependency>
边栏推荐
- Network security - install CentOS
- One question per day - pat grade B 1002 questions
- Some parameters of Haikang IPC
- Years of summary, some core suggestions for learning programming
- Quelles sont les similitudes et les différences entre les communautés intelligentes et les villes intelligentes?
- Network security - Eternal Blue
- Two minutes, talk about some wrong understandings of MySQL index
- 安踏DTC | 安踏转型,构建不只有FILA的增长飞轮
- 网络安全-burpsuit
- iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
猜你喜欢
Wechat forum exchange applet system graduation design (5) assignment
Database daily question --- day 22: last login
Online interview, how to better express yourself? In this way, the passing rate will be increased by 50%~
ArcGIS: two methods of attribute fusion of the same field of vector elements
V20变频器手自动切换(就地远程切换)的具体方法示例
【刷题记录】3. 无重复字符的最长子串
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
Unity与WebGL的相爱相杀
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
Wechat forum exchange applet system graduation design (3) background function
随机推荐
Transparent i/o model from beginning to end
Cause analysis and solution of too laggy page of [test interview questions]
Sword finger offer 55 - I. depth of binary tree
微信论坛交流小程序系统毕业设计毕设(5)任务书
Two minutes, talk about some wrong understandings of MySQL index
Network security -burpsuit
Network security - phishing
开发那些事儿:Go加C.free释放内存,编译报错是什么原因?
Brush question 5
网络安全-sqlmap与DVWA爆破
Brush question 3
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
PCL . VTK files and Mutual conversion of PCD
Wechat forum exchange applet system graduation design completion (4) opening report
The author of LinkedList said he didn't use LinkedList himself
iNFTnews | NFT技术的广泛应用及其存在的问题
小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
Database daily question --- day 22: last login
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
安踏DTC | 安踏转型,构建不只有FILA的增长飞轮