当前位置:网站首页>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>
边栏推荐
- Microbial Health Network, How to restore Microbial Communities
- Handling file exceptions
- kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
- Sword finger offer 55 - I. depth of binary tree
- Quelles sont les similitudes et les différences entre les communautés intelligentes et les villes intelligentes?
- 微信论坛交流小程序系统毕业设计毕设(5)任务书
- Clean C disk
- 消息队列与快递柜之间妙不可言的关系
- Talk about DART's null safety feature
- Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
猜你喜欢
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2
Are the microorganisms in the intestines the same as those on the skin?
Two minutes, talk about some wrong understandings of MySQL index
微信论坛交流小程序系统毕业设计毕设(4)开题报告
Line test - graphic reasoning - 1 - Chinese character class
The wonderful relationship between message queue and express cabinet
Cause analysis and solution of too laggy page of [test interview questions]
Cases of agile innovation and transformation of consumer goods enterprises
Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram
微生物健康网,如何恢复微生物群落
随机推荐
解决:信息中插入avi格式的视频时,提示“unsupported video format”
智慧社區和智慧城市之間有什麼异同
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
微信论坛交流小程序系统毕业设计毕设(1)开发概要
十三、系统优化
Brush question 6
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
This time, let's clear up: synchronous, asynchronous, blocking, non blocking
The wonderful relationship between message queue and express cabinet
Specific method example of V20 frequency converter manual automatic switching (local remote switching)
Unity dynamically merges mesh textures
Network security -burpsuit
Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
OC variable parameter transfer
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
Unity 动态合并网格纹理
Sword finger offer 55 - I. depth of binary tree
Why is network i/o blocked?
Personal statement of testers from Shuangfei large factory: is education important for testers?