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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -