camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miri eyni <miri.e...@sapiens.com>
Subject Content-Type
Date Tue, 07 Jun 2016 11:15:49 GMT


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.

Mime
View raw message