cxf

    0熱度

    1回答

    我們正在將CXF 2.7.7版遷移到3.1.8並面臨以下問題。 而且還更新javax.rs.ws 2.0-M10到2.0.1 Exception in thread "main" java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException 如果我們使用相同的javax.rs.ws 2.0-M10,面臨跌破發行 Excep

    0熱度

    1回答

    我正在嘗試使用CXFs WSDL2Java解析第三方WSDL文件(我無法更改)到Java,但我遇到了異常(如下所示)。這個完全相同的例外重複7次。它們完全相同。我猜問題是在XSD,在那裏我找到幾個片段是這樣的: <xs:complexType name="CCTUserDetails"> <xs:sequence> <xs:element minOccurs="0" na

    0熱度

    1回答

    我有一個位於src \ main \ resources \ wsdl \文件夾下的WSDL文件,它有多個在其中定義的操作。我的應用程序在Weblogic 12C服務器上運行。我試圖揭露使用Apache Cammel(版本:2.18.3)的SOAP Web服務與Java DSL - CxfComponent cxfComponent = new CxfComponent(getContext())

    1熱度

    1回答

    我知道我可以通過聲明某些CXF bean來使用Apache CXF,但是想知道這些框架在技術上如何與相互集成。 CXF庫是否提供了Spring已知的一些服務提供者接口,所以Spring爲此掃描,實例化服務並控制它?或者CXF是否爲Spring集成實現了其他一些標準機制?如果是這樣,那麼這個標準是什麼? 抑或CXF庫暴露Spring註解/ bean聲明參加在classpath當Spring的配置?

    0熱度

    1回答

    當在Tomcat中使用內部的Servlet Elasticsearh的Java API,讓 「org.elasticsearch.client.transport.NoNodeAvailableException:配置的節點都不是可用」 我試圖創建一個簡單的REST使用cxf的API。 它會做以下工作 - 將宣讀Elasticsearch集羣的一些記錄(使用https://www.elastic.

    0熱度

    1回答

    如何在Web Service客戶端請求上添加標題,如下所示: 下面的xml是SOAP UI自動生成的一個請求,它的工作正常,給出了正確的用戶名/密碼。 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dof="http://dof.ad.com"> <soapenv:Hea

    0熱度

    1回答

    正在編寫基於CXF的Web服務。我需要傳遞日期響應頭爲本地服務器時間,但這是被退回爲GMT,如下面顯示 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5 D

    -1熱度

    1回答

    我與Apache CXF工作,春JAX-RS服務,我有以下服務定義和實現提供, 定義 @POST @Path("/generateAddress") @Consumes(MediaType.APPLICATION_JSON) @Produces({MediaType.APPLICATION_JSON}) WalletInfo generateAddress(

    0熱度

    1回答

    我通過擴展jax-rs api的WebApplicationException類創建了自定義異常類。我在錯誤的輸入上拋出這個異常。 public class RestException extends WebApplicationException { public RestException(String message, Response.Status status) {

    1熱度

    1回答

    我一直在試圖建立在駱駝一CXF端點,使用的Spring Java配置,像這樣: @Bean public CxfEndpoint anEndpoint() { CxfEndpoint endpoint = new CxfEndpoint(); endpoint.setAddress(getEndpointUrl()); endpoint.setServiceClas