当前位置:网站首页>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>
边栏推荐
猜你喜欢

Unity and webgl love each other

Sword finger offer 55 - I. depth of binary tree

Brush question 4

Specific method example of V20 frequency converter manual automatic switching (local remote switching)

成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚

Software test classification

【微服务|SCG】gateway整合sentinel

iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地

Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!

GEE(四):计算两个变量(影像)之间的相关性并绘制散点图
随机推荐
十三、系统优化
为什么市场需要低代码?
JS triangle
Network security - Eternal Blue
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
网络安全-永恒之蓝
【刷题记录】3. 无重复字符的最长子串
Advantages and disadvantages of rest ful API
Network security -beef
Interview questions: how to test app performance?
V20变频器手自动切换(就地远程切换)的具体方法示例
[record of question brushing] 3 Longest substring without duplicate characters
What is ADC sampling rate (Hz) and how to calculate it
Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
Introduction to redis and jedis and redis things
微信论坛交流小程序系统毕业设计毕设(1)开发概要
三菱PLC slmp(mc)协议
leetcode-520. 检测大写字母-js
Network security - install CentOS