Could not find destination factory for transport
生活随笔
收集整理的這篇文章主要介紹了
Could not find destination factory for transport
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
在使用cxf開發(fā)webservice時(shí),啟動(dòng)Server時(shí)遇到Could not find destination factory for transport http://schemas.xmlsoap.org/soap/http錯(cuò)誤。Server代碼如下:
public static Object[] invokeRemoteMethod(String url, String method, Object[] parameters) {JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();if (!url.endsWith("wsdl") && !url.endsWith("WSDL")) {url += "?wsdl";}org.apache.cxf.endpoint.Client client = dcf.createClient(url);try {Object[] objects = client.invoke(method, parameters);return objects;} catch (Exception e) {e.printStackTrace();}return null;}調(diào)用時(shí)按照順序設(shè)置參數(shù)。
加入cxf-rt-transports-http-jetty包解決。
?
轉(zhuǎn)載于:https://my.oschina.net/u/151615/blog/1831229
總結(jié)
以上是生活随笔為你收集整理的Could not find destination factory for transport的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在.NET开发中的单元测试工具之(1)—
- 下一篇: .net 8 C# 集成 AWS Cog