By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,361 Members | 1,727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,361 IT Pros & Developers. It's quick & easy.

Consume Java Web Service from C# client

P: n/a
Hello,

I have a java web service, and created a wsdl file from the java class;
based on the resulting wsdl file i generated the proxy C# class using
wsdl.exe utility and the result i included in my window app.
i am calling the web method but, i get no answer back, and after 1,2 minutes
i get something like 'Operation time out'. if i check on the server where it
runs the java web service, the method was called and parameters corectly
passed, so i don't understand why it does not return from the
function-procedure.
with a java client everything works.

thank you very much!
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Have you got network traces of the incoming and outgoing messages?
Something like proxytrace will do, if you are going over HTTP ?
-D

"Valeriu Filip" <Valeriu Fi***@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
Hello,

I have a java web service, and created a wsdl file from the java class;
based on the resulting wsdl file i generated the proxy C# class using
wsdl.exe utility and the result i included in my window app.
i am calling the web method but, i get no answer back, and after 1,2
minutes
i get something like 'Operation time out'. if i check on the server where
it
runs the java web service, the method was called and parameters corectly
passed, so i don't understand why it does not return from the
function-procedure.
with a java client everything works.

thank you very much!

Nov 21 '05 #2

P: n/a
if the question, is if i am going over a proxy, then yes.
second i've made a test with a java service and my c# client in my local
network (no proxy between) and works fine.
the 'proxytrace' i never heard of; but i know tracert; still i don't see
what is the help.
i've also read other kind of problems, and i don't know if it is true and if
migth be my case: my proxy and the proxy that is in front of the java web
service use diff protocols (Http1.0 and Http1.1)

thanks.
"Dino Chiesa [Microsoft]" wrote:
Have you got network traces of the incoming and outgoing messages?
Something like proxytrace will do, if you are going over HTTP ?
-D

"Valeriu Filip" <Valeriu Fi***@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
Hello,

I have a java web service, and created a wsdl file from the java class;
based on the resulting wsdl file i generated the proxy C# class using
wsdl.exe utility and the result i included in my window app.
i am calling the web method but, i get no answer back, and after 1,2
minutes
i get something like 'Operation time out'. if i check on the server where
it
runs the java web service, the method was called and parameters corectly
passed, so i don't understand why it does not return from the
function-procedure.
with a java client everything works.

thank you very much!


Nov 21 '05 #3

P: n/a
Have you tried to force the .NET client that goes through the proxy to use
HTTP 1.0 , rather than HTTP 1.1 ? Or turn off Keep-Alive.

see here:
http://weblogs.asp.net/jan/archive/2.../28/63771.aspx
proxytrace is a tool based on tcptrace that helps trace web services
requests. http://www.pocketsoap.com/tcptrace/pt.aspx It may be of no use
to you, since you need a proxy anyway. But there are other webservice
network trace tools. Eg, Fiddler,
http://www.bayden.com/fiddler/ and HTTP Sniffer
http://www.effetech.com/sniffer/

tracert is something different

You may be able to twiddle the HTTP requests with one or more of these
tools, to try out the effects of turning on/off HTTP1.1 and Keep-alive.

-D

"Valeriu Filip" <Va**********@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
if the question, is if i am going over a proxy, then yes.
second i've made a test with a java service and my c# client in my local
network (no proxy between) and works fine.
the 'proxytrace' i never heard of; but i know tracert; still i don't see
what is the help.
i've also read other kind of problems, and i don't know if it is true and
if
migth be my case: my proxy and the proxy that is in front of the java web
service use diff protocols (Http1.0 and Http1.1)

thanks.
"Dino Chiesa [Microsoft]" wrote:
Have you got network traces of the incoming and outgoing messages?
Something like proxytrace will do, if you are going over HTTP ?
-D

"Valeriu Filip" <Valeriu Fi***@discussions.microsoft.com> wrote in
message
news:34**********************************@microsof t.com...
> Hello,
>
> I have a java web service, and created a wsdl file from the java class;
> based on the resulting wsdl file i generated the proxy C# class using
> wsdl.exe utility and the result i included in my window app.
> i am calling the web method but, i get no answer back, and after 1,2
> minutes
> i get something like 'Operation time out'. if i check on the server
> where
> it
> runs the java web service, the method was called and parameters
> corectly
> passed, so i don't understand why it does not return from the
> function-procedure.
> with a java client everything works.
>
> thank you very much!


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.