473,324 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Consume Java Web Service from C# client

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
3 18865
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Hatmaker | last post by:
I have begun experimenting with web services, and I created some simple web services in C# and was able to install them with IIS and create an equally simple C# client to consume them. My next...
2
by: Abeslom via .NET 247 | last post by:
Hi, I am trying to create a simple .NET http-Get client that willconsume a java webservice on a mainframe. If I type the URL forthe webservice in the Browser, the service works and I get theexpected...
4
by: John Bailo | last post by:
I wrote a .NET/c# webservice which I then needed to consume from java server pages. The simplest ( and best ) solution I found, was some code to open a socket, and send a SOAP message directly...
0
by: leslie_tighe | last post by:
Hello, I have a set of web services running on Java server that are exposed through axis 1.2.1. I can invoke these services in browser and through a java test client. However, when I try to...
5
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
3
by: frustratedcoder | last post by:
I need to consume a web service written in Perl but there is no wsdl file for this service. The perl soap client that can call and consume this web service looks like this (if it helps) #!perl...
0
by: Jerry Orenstein | last post by:
Hi, I hope someone can help or point me in the right direction. I'm using VB.NET 2003. I have written a web client (exe) which sends XML/string data to another company's web service, written...
2
by: adevikreates | last post by:
Greetings All! I have a Java Web service that I wrote. I need to use Classic ASP as the client for this web service. I have the following code in an asp page but I keep getting an error that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.