Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F3255200AC8 for ; Tue, 7 Jun 2016 13:17:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F1B83160A36; Tue, 7 Jun 2016 11:17:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 46F42160A35 for ; Tue, 7 Jun 2016 13:17:01 +0200 (CEST) Received: (qmail 18254 invoked by uid 500); 7 Jun 2016 11:17:00 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 9987 invoked by uid 99); 7 Jun 2016 11:15:54 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.285 X-Spam-Level: ** X-Spam-Status: No, score=2.285 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Date: Tue, 7 Jun 2016 04:15:49 -0700 (MST) From: miri eyni To: users@camel.apache.org Message-ID: <1465298149380-5783548.post@n5.nabble.com> Subject: Content-Type MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 07 Jun 2016 11:17:02 -0000 how can i change the Content-Type to appliation/json my response contain the json object but Content-Type=text/xml response example : HTTP/{0} {1} {2} Content-Type: text/xml; charset=UTF-8 Accept-Encoding: gzip,deflate breadcrumbId: ID-PortalBus-64186-1465288361638-0-80 Expires: -1 matchOnUriPrefix: true Records: 1 ResponseContext: {envelope.events=[[Stax Event #13], [Stax Event #13], [Stax Event #13]], javax.xml.ws.wsdl.port={http://services.postcodeanywhere.co.uk/}PostcodeAnywhere_Soap, org.apache.cxf.service.model.MessageInfo=[MessageInfo OUTPUT: {http://services.postcodeanywhere.co.uk/}BankAccountValidation_Interactive_Validate_v2_00_SoapOut], org.apache.cxf.client=true, schema-validation-enabled=NONE, org.apache.cxf.message.inbound=true, org.apache.cxf.message.Message.PROTOCOL_HEADERS={Cache-Control=[no-cache], Content-Length=[1636], content-type=[text/xml; charset=utf-8], Date=[Tue, 07 Jun 2016 11:05:23 GMT], Expires=[-1], Pragma=[no-cache], Records=[1], Server=[Microsoft-IIS/7.5], X-AspNet-Version=[4.0.30319], X-Powered-By=[ASP.NET]}, javax.xml.ws.wsdl.service={http://services.postcodeanywhere.co.uk/}PostcodeAnywhere, org.apache.cxf.ws.policy.AssertionInfoMap={}, org.apache.cxf.binding.soap.SoapVersion=org.apache.cxf.binding.soap.Soap11@34b719, org.apache.cxf.message.Message.ENCODING=UTF-8, javax.xml.ws.wsdl.interface={http://services.postcodeanywhere.co.uk/}PostcodeAnywhere_Soap, body.events=[], javax.xml.ws.wsdl.operation={http://services.postcodeanywhere.co.uk/}BankAccountValidation_Interactive_Validate_v2_00, javax.xml.ws.wsdl.description=http://services.postcodeanywhere.co.uk/BankAccountValidation/Interactive/Validate/v2.00/soapnew.ws?wsdl, org.apache.cxf.service.model.BindingMessageInfo=org.apache.cxf.service.model.BindingMessageInfo@4e0ca6a, Content-Type=text/xml; charset=utf-8, org.apache.cxf.headers.Header.list=[], org.apache.cxf.message.Message.RESPONSE_CODE=200, org.apache.cxf.transport.Conduit=conduit: class org.apache.cxf.transport.http.URLConnectionHTTPConduit1522193704target: http://services.postcodeanywhere.co.uk/BankAccountValidation/Interactive/Validate/v2.00/soapnew.ws} Server: Microsoft-IIS/7.5 User-Agent: OutSystemsPlatform X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET { "bankValidationResponse": [ { "correct": true, "correctedAccountNumber": "12345678" } ] } -- View this message in context: http://camel.465427.n5.nabble.com/Content-Type-tp5783548.html Sent from the Camel - Users mailing list archive at Nabble.com.