当前位置:网站首页>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>
边栏推荐
- 开发那些事儿:Go加C.free释放内存,编译报错是什么原因?
- 双非大厂测试员亲述:对测试员来说,学历重要吗?
- What are the similarities and differences between smart communities and smart cities
- Two kinds of curves in embedded audio development
- Talk about DART's null safety feature
- Specific method example of V20 frequency converter manual automatic switching (local remote switching)
- 微信论坛交流小程序系统毕业设计毕设(1)开发概要
- 网络安全-CSRF
- Network security sqlmap and DVWA explosion
- Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
猜你喜欢

Software test classification

今日创见|企业促进创新的5大关键要素

Microbial Health Network, How to restore Microbial Communities

【刷题记录】3. 无重复字符的最长子串

I wish you all the best and the year of the tiger

双非大厂测试员亲述:对测试员来说,学历重要吗?

The author of LinkedList said he didn't use LinkedList himself

Sword finger offer 55 - I. depth of binary tree

微信论坛交流小程序系统毕业设计毕设(1)开发概要

Innovation today | five key elements for enterprises to promote innovation
随机推荐
There is another problem just online... Warm
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
Brush question 6
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
[untitled] reprint melting ice - track icedid server with a few simple steps
Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
Understand the session, cookie and token at one time, and the interview questions are all finalized
Personal statement of testers from Shuangfei large factory: is education important for testers?
Handling file exceptions
十三、系统优化
【刷题记录】3. 无重复字符的最长子串
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
Locate to the bottom [easy to understand]
网络安全-sqlmap与DVWA爆破
OC variable parameter transfer
智慧社區和智慧城市之間有什麼异同
Two kinds of curves in embedded audio development
Brush question 4
Clean C disk