Setting the content type of a message in a Request-Response HTTP Adapter
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Setting the content type of a message in a Request-Response HTTP Adapter




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Setting the content type of a message in a Request-Response HTTP Adapter  
darin dimitrov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-20-04 10:53 PM

Hello,

I have a request-response receive adapter which is bound to the
HTTP protocol. I am using the default BTSHTTPReceive.dll ISAPI. I
receive a XML file, make some transformations in my orchestration and
prepare a message which in fact represents a HTML page. Then I route
this message to the response part of my adapter via a PassThru
pipeline.

The problem I encounter is that the BTSHTTPReceive.dll ISAPI
always sets the Content-Type to text/xml and my HTML page cannot be
well displayed in the browser. I tried using the microsoft's SDKUtils
method : SetContentType (as shown in
http://msdn.microsoft.com/library/d..._email_kqel.asp)
but it didn't change anything, although I can succesfully send html
emails with this method. Is there any way to set the Content-Type of
the BTSHTTPReceive.dll ISAPI to text/html when used in a
request-response receive adapter?





[ Post a follow-up to this message ]



    RE: Setting the content type of a message in a Request-Response HTTP Adapter  
Adrian Hamza[MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-21-04 01:53 AM

What about still returning XML but instead change the XML to reference the
stylesheet stored somewhere else? You just need to add a PI to the XML.

<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="/StyleSheets/simple.xsl"?>
<ns0:PurchaseOrder xmlns:ns0="mynamespace">
<ns0:PoID>10001</ns0:PoID>
</ns0:PurchaseOrder>

Some links I found on the web

http://www.w3schools.com/xml/xml_xsl.asp
http://www.w3schools.com/xsl/default.asp

--------------------[vbcol=seagreen] 
Adapter[vbcol=seagreen] 
15:26:43 GMT)[vbcol=seagreen] 
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!fr.ip.ndsoftware.net!proxad.net!postnews2.google.com!not-for-mail[vbcol=seagreen] 
biz_prog_email_kqel.asp)[vbcol=seagreen] 

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team






[ Post a follow-up to this message ]



    Re: Setting the content type of a message in a Request-Response HTTP Adapter  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-21-04 01:53 AM

I haven't tried this, so I don't know it will work on the response or if it
is only used for a solicit-response port, but, try this:

MyMessage(HTTP.ContentType)  = "text/html";

Matt

"darin dimitrov" <darin_dimitrov@hotmail.com> wrote in message
news:2b32e7c2.0407200726.4a78e78d@posting.google.com...
> Hello,
>
>      I have a request-response receive adapter which is bound to the
> HTTP protocol. I am using the default BTSHTTPReceive.dll ISAPI. I
> receive a XML file, make some transformations in my orchestration and
> prepare a message which in fact represents a HTML page. Then I route
> this message to the response part of my adapter via a PassThru
> pipeline.
>
>     The problem I encounter is that the BTSHTTPReceive.dll ISAPI
> always sets the Content-Type to text/xml and my HTML page cannot be
> well displayed in the browser. I tried using the microsoft's SDKUtils
> method : SetContentType (as shown in
>
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdk/htm/ebiz_prog_email_kqel.asp[
/url])
> but it didn't change anything, although I can succesfully send html
> emails with this method. Is there any way to set the Content-Type of
> the BTSHTTPReceive.dll ISAPI to text/html when used in a
> request-response receive adapter?







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:02 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register