asp.net - How to set REQUEST HEADER in spring Integration -
we have asp page reading information form request this:
varlogon = request.servervariables("http_logon")
if want post asp page using spring integration, unable pass http_logon
page,
this not working
any idea, , how can set request header information?
<int:header-enricher input-channel="pdfgenheaderchannel" output-channel="pdfgenchannel"> <int:header name="http_ordernumber" method="getordernumber" ref="reportbean"/> <int:header name="reportid" method="getreportid" ref="reportbean"/> <int:header name="content-type" value="text/html"/> <int:header name="logon" value="orderadcb"/> <int:header name="http_logon" value="orderadcb"/> </int:header-enricher> <int-http:outbound-gateway id="pdfgenerationoutboundgateway" request-channel="pdfgenchannel" url="http://x.xy.xx.y/converthtmltopdf.asp" http-method="post" expected-response-type="java.lang.string" charset="utf-8" reply-channel="replychannel" request-factory="requestfactory" />
you have specify header-mapper
<int-http:outbound-gateway>
. default maps standard http headers:
<beans:bean id="headermapper" class="org.springframework.integration.http.support.defaulthttpheadermapper" factory-method="outboundmapper"> <beans:property name="outboundheadernames" value="*"/> <beans:property name="userdefinedheaderprefix" value=""/> </beans:bean> <int-http:outbound-gateway header-mapper="headermapper"/>
Comments
Post a Comment