Click here to Skip to main content
15,905,683 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalhey jerk! Pin
leckey31-Dec-07 15:39
leckey31-Dec-07 15:39 
Generalstored procedure Pin
niki_nilu31-Dec-07 0:50
niki_nilu31-Dec-07 0:50 
GeneralRe: stored procedure Pin
Colin Angus Mackay31-Dec-07 1:03
Colin Angus Mackay31-Dec-07 1:03 
GeneralRe: stored procedure Pin
N a v a n e e t h31-Dec-07 1:31
N a v a n e e t h31-Dec-07 1:31 
GeneralRe: stored procedure Pin
Colin Angus Mackay31-Dec-07 1:45
Colin Angus Mackay31-Dec-07 1:45 
GeneralRe: stored procedure Pin
N a v a n e e t h31-Dec-07 1:50
N a v a n e e t h31-Dec-07 1:50 
GeneralRe: stored procedure Pin
niki_nilu31-Dec-07 1:51
niki_nilu31-Dec-07 1:51 
GeneralC# How to use HttpWebRequest to dowload document from Java Web Service Pin
miauwmiauwmiauw31-Dec-07 0:47
miauwmiauwmiauw31-Dec-07 0:47 
Hi!

My company bought a software from other company and that company provides us an Apache Java Web Service.

I have to connect to that web service using C#. I use Http Web Request to do that ?

Is it secure to use Http Web Request?

If it's not, how do i make it more secure?
how to download document from Apache Java Web Service using HttpWebRequest ?
Is there any tutorial about using C# to connect to Java Web Service


string inputXML = "";
inputXML = inputXML + " http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>";
inputXML = inputXML + "<soapenv:body>";
inputXML = inputXML + " http://url'>";
inputXML = inputXML + "<packagename>test";
inputXML = inputXML + "<servicename>TestServices ";
inputXML = inputXML + "<methodname>Download";
inputXML = inputXML + "<parameterlist>";
inputXML = inputXML + "<attribute>";
inputXML = inputXML + "<attributename>User";
inputXML = inputXML + "<attributevalues>";
inputXML = inputXML + "<strloginname>" +test+ "";
inputXML = inputXML + "<strpassword>" + test + "";
inputXML = inputXML + "";
inputXML = inputXML + "";
inputXML = inputXML + "";
inputXML = inputXML + "";
inputXML = inputXML + "";
inputXML = inputXML + "";


XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(inputXML);
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Headers.Add("SOAPAction","");

req.ContentType = "text/xml;charset=\"utf-8\"";
req.Accept = "text/xml";
req.Method = "POST";
Stream stm = req.GetRequestStream();
xmlDoc.Save(stm);
stm.Close();
WebResponse resp = req.GetResponse();
stm = resp.GetResponseStream();
StreamReader r = new StreamReader(stm);
string sRet = r.ReadToEnd();
GeneralRe: C# How to use HttpWebRequest to dowload document from Java Web Service Pin
Colin Angus Mackay31-Dec-07 1:09
Colin Angus Mackay31-Dec-07 1:09 
GeneralWant to open new window on datagrid editbutton Pin
raushan_931-Dec-07 0:41
raushan_931-Dec-07 0:41 
GeneralRe: Want to open new window on datagrid editbutton Pin
Abhijit Jana31-Dec-07 1:16
professionalAbhijit Jana31-Dec-07 1:16 
GeneralRe: Want to open new window on datagrid editbutton Pin
raushan_931-Dec-07 1:24
raushan_931-Dec-07 1:24 
GeneralRe: Want to open new window on datagrid editbutton Pin
Abhijit Jana31-Dec-07 1:30
professionalAbhijit Jana31-Dec-07 1:30 
Questionhow to give more than one column to the datavalue field of the dropdown field Pin
jagan12330-Dec-07 23:59
jagan12330-Dec-07 23:59 
AnswerRe: how to give more than one column to the datavalue field of the dropdown field Pin
DotNetXenon31-Dec-07 5:25
DotNetXenon31-Dec-07 5:25 
GeneralNeed Tech. support in ASP.NET 2.0. Pin
S R Madhavan30-Dec-07 23:42
S R Madhavan30-Dec-07 23:42 
GeneralRe: Need Tech. support in ASP.NET 2.0. Pin
Paul Conrad31-Dec-07 12:52
professionalPaul Conrad31-Dec-07 12:52 
GeneralProblem with UserControl Pin
amin_behzadi30-Dec-07 22:29
professionalamin_behzadi30-Dec-07 22:29 
GeneralRe: Problem with UserControl Pin
Abhijit Jana31-Dec-07 1:38
professionalAbhijit Jana31-Dec-07 1:38 
Generalis datatable in loop kills the application speed Pin
jagan12330-Dec-07 21:14
jagan12330-Dec-07 21:14 
GeneralRe: is datatable in loop kills the application speed Pin
Michael Sync30-Dec-07 21:22
Michael Sync30-Dec-07 21:22 
GeneralRe: is datatable in loop kills the application speed Pin
N a v a n e e t h30-Dec-07 21:37
N a v a n e e t h30-Dec-07 21:37 
GeneralRe: is datatable in loop kills the application speed Pin
jagan12330-Dec-07 21:50
jagan12330-Dec-07 21:50 
GeneralRe: is datatable in loop kills the application speed Pin
N a v a n e e t h30-Dec-07 22:00
N a v a n e e t h30-Dec-07 22:00 
Generalplease help Pin
Basheer30-Dec-07 21:13
Basheer30-Dec-07 21:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.