当前位置:网站首页>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>
边栏推荐
- Clean C disk
- 网络安全-钓鱼
- 【刷题记录】3. 无重复字符的最长子串
- Unity and webgl love each other
- 消息队列与快递柜之间妙不可言的关系
- 微信论坛交流小程序系统毕业设计毕设(3)后台功能
- It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
- What does the model number of asemi rectifier bridge kbpc1510 represent
- Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!
- 【测试面试题】页面很卡的原因分析及解决方案
猜你喜欢

GEE(四):计算两个变量(影像)之间的相关性并绘制散点图

Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram

微信论坛交流小程序系统毕业设计毕设(5)任务书

14、 Two methods of database export and import

Knowledge drop - PCB manufacturing process flow

iNFTnews | NFT技术的广泛应用及其存在的问题

Wechat forum exchange applet system graduation design completion (7) Interim inspection report

微生物健康網,如何恢複微生物群落

Brush question 3
![[record of question brushing] 3 Longest substring without duplicate characters](/img/44/1cd8128d93c9c273e0f4718d84936e.png)
[record of question brushing] 3 Longest substring without duplicate characters
随机推荐
Guessing game (read data from file)
微信论坛交流小程序系统毕业设计毕设(3)后台功能
kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
聊聊 Dart 的空安全 (null safety) 特性
每日一题——PAT乙级1002题
Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
[network] Introduction to C language
肠道里的微生物和皮肤上的一样吗?
Network security CSRF
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
This time, let's clear up: synchronous, asynchronous, blocking, non blocking
数据库每日一题---第22天:最后一次登录
Unity and webgl love each other
Installing vmtools is gray
三菱PLC slmp(mc)协议
Statistical method for anomaly detection
Brush question 6