当前位置:网站首页>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>
边栏推荐
- Wechat forum exchange applet system graduation design completion (1) development outline
- Microbial Health Network, How to restore Microbial Communities
- Clean C disk
- 2021-01-11
- iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
- oc 可变參数传递
- 小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
- 网络安全-burpsuit
- Network security CSRF
- Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
猜你喜欢
Unity与WebGL的相爱相杀
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
[record of question brushing] 3 Longest substring without duplicate characters
消费品企业敏捷创新转型案例
【刷题记录】3. 无重复字符的最长子串
小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
JMeter interface automated test read case, execute and write back result
Personal statement of testers from Shuangfei large factory: is education important for testers?
【微服务|SCG】gateway整合sentinel
14、 Two methods of database export and import
随机推荐
解决:信息中插入avi格式的视频时,提示“unsupported video format”
[network] Introduction to C language
JMeter-接口自动化测试读取用例,执行并结果回写
Two kinds of curves in embedded audio development
Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
【刷题记录】3. 无重复字符的最长子串
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
Interview questions: how to test app performance?
Brush question 5
ArcGIS: two methods of attribute fusion of the same field of vector elements
When copying something from the USB flash disk, an error volume error is reported. Please run CHKDSK
Microbial Health Network, How to restore Microbial Communities
消息队列与快递柜之间妙不可言的关系
Why is network i/o blocked?
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
Wechat forum exchange applet system graduation design completion (1) development outline
Transparent i/o model from beginning to end
2021-01-12
今日创见|企业促进创新的5大关键要素
智慧社區和智慧城市之間有什麼异同