|
| Call a Java Webservice from a Aplication C#.Net |
 |
Sun, 30 Mar 2008 07:58:42 +000 |
Hi all!
I have a Java Webservice (I don't know Java) . Now, i write a aplication by
C#.Net call that Java Webservice to get result for partner, Plaese help me solve
this Problem. Because, To seem , Aplication C#.Net want use Java Webservice need
a tool generate Java to WSDL ....Please help me detail
Thank
|
| Post Reply
|
| Re: Call a Java Webservice from a Aplication C#.Net |
 |
Mon, 31 Mar 2008 07:31:02 +000 |
I think best way is to create the WebRequest. HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("urlforyourjava's webservice");
request.Method = "POST"; request.Timeout = timeout * 1000;
request.ContentType = "text/xml; encoding=UTF-8"; Stream stream =
request.GetRequestStream(); and you can get the ressponse using HttpWebResponse
response = (HttpWebResponse)request.GetResponse(); Because for the Java's
webservice if you will generate the wsdl file.as per my experience i didnt got
the add reference button enabled.because the Webservice was on another Server
and we can genrate the wsdl for that on the server of the same
application.whether your webservice is on the same server?
|
| Post Reply
|
| Re: Call a Java Webservice from a Aplication C#.Net |
 |
Tue, 1 Apr 2008 08:00:38 +0000 |
Hi all! No Java Webservice on the other server and Clent code by C#.Net use url
Java Webservice
|
| Post Reply
|
| Re: Call a Java Webservice from a Aplication C#.Net |
 |
Thu, 3 Apr 2008 07:56:28 +0000 |
http://ws.apache.org/axis/java/user-guide.html#Java2WSDLBuildingWSDLFromJava
visit this link it may be helpful to you..
|
| Post Reply
|
|
|
|
|
|
|
|
|
|