Could not find destination factory for transport
生活随笔
收集整理的這篇文章主要介紹了
Could not find destination factory for transport
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
在使用cxf開發webservice時,啟動Server時遇到Could not find destination factory for transport http://schemas.xmlsoap.org/soap/http錯誤。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;}調用時按照順序設置參數。
加入cxf-rt-transports-http-jetty包解決。
?
轉載于:https://my.oschina.net/u/151615/blog/1831229
總結
以上是生活随笔為你收集整理的Could not find destination factory for transport的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在.NET开发中的单元测试工具之(1)—
- 下一篇: 是否有必要使用 Oracle 向量数据库