Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Sending HTML back to client as Response msg of HTTP Port
- This topic has 3 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
January 21, 2006 at 6:14 AM #12692
So I have an HTTP Request-Respond port. I receive an http post on that port, parse the variables, do what i have to do basically. Now I need to send a response but I am not sure. Can I just send HTML back through a PassThrough Pipeline? If so, I have a generic message I want to send. Something like,
[code:1:b706d9b817]
<br><br>Your order has been received. Thank you.<br><br><center><a href=’javascript:window.close();’>Click to close</a></center>
[/code:1:b706d9b817]of that nature……
I was thinking that i’d have to use a transform shape and create my own XSLT code with the HTML and the use it in a MAP? That sounds too complicated for a thing like that.
So basically, I need to be able to respond back with HTML.
Anyone have any idea on how to accomplish this?
Thanks
Gino-
January 21, 2006 at 7:19 AM #12693
I think i am getting closer to a solution to my problem. I created MessageAssignemtn shape and then I am trying to send a msg type System.String from a HttpRequest-Response with a Passthrough pipeline.
Now i have another problem. All my shapes are inside a scope shape and I have an exception handler which catches System.Exception. So what i want to do is, inside the Scope shape, send an html msg with sucess as a reply to the original http post. or if something inside the scope fails, send a failure html msg to the same port where i got the request from as a response. Now that’s a problem since the Receive shape is not in the same scope as the Send shape that resides in the ExceptionHandler.
Any ideas?
-
January 22, 2006 at 1:41 AM #12694
the problem is, it needs to be a direct response to that request which is being made by the other party. it seems to me, the scope is changed one you are in the exception code because if an exception occurs there is no quarantee for the receive shape to be successful and therefore there cannot be a corresponding send shape….. 🙁
-
-
-
January 21, 2006 at 9:53 PM #12691
Are you using a request response port?
I think I did something similar to this in the past using the HTTP Adapter. I didn’t use the Receive Response port but rather a Receive and then Send. I was returning an ID or the error text.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.