.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to pass XML file as request to BizTalk server and get back the response also in XML file?

Posted By: Pravin     Posted Date: August 05, 2011    Points:5   Category :C#
How to pass XML file as request to BizTalk server and get back the response also in XML file?


I m trying to create a Biztalk testing Application using C#.net,
so i need some helping hands , i just want know how to pass the xml file to Biztalk recevier port?

Here is the sample Code i have used to get response from remote server:


string url = "http://192.168.1.20/BizTalkServerIsolatedHost/BTSHTTPReceive.dll";
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
httpWebRequest.AllowWriteStreamBuffering = false;
httpWebRequest.Method = "POST";
httpWebRequest.ContentType = "application/x-www-form-urlencoded "; //"text/xml; charset=\"utf-8\"";
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
Stream responseStream = httpWebResponse.GetResponseStream();
StreamReader streamReader = new StreamReader(responseStream);
string response = streamReader.ReadToEnd();

Response.Write(Response);


Responses
Author: Narayanan             
Posted Date: September 20, 2011     Points: 20   

Hi
Refer this sites:
http://www.codeproject.com/KB/biztalk/BizEnvelop.aspx
http://masteringbiztalkserver.wordpress.com/2010/11/23/splitting-xml-files-using-envelope-schema/
http://biztalkmessages.vansplunteren.net/articles/dealing-with-base64/


Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend