473,793 Members | 2,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing Java WebServices with C#

Hi, about Java WebServices, accessed by C#, I have two questions:

1) what I have to do, in order to use java webservices?
2) I search and I guess I must type the wsdl path in "add web reference".
Everything is fine... But I'm behind a proxy and I got this message, after
type my username and password (in the "Discovery Credential for Proxy Server"
popup:

"The underlying connection was closed: Unable to connect to the remote
server."

One coment: In the browser, after the proxy login, the wsdl is fine
displayed .

Tks!
Daniel's
Nov 17 '05 #1
2 4098
Daniel,

You pretty much are doing the right thing.

If there is a proxy between your machine and the web service, then you
will have to access the object making the call on the client side, and set
the proxy details. Basically, your browser is getting through because the
proxy settings are already applied, and the request goes through
successfully.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:06******** *************** ***********@mic rosoft.com...
Hi, about Java WebServices, accessed by C#, I have two questions:

1) what I have to do, in order to use java webservices?
2) I search and I guess I must type the wsdl path in "add web reference".
Everything is fine... But I'm behind a proxy and I got this message, after
type my username and password (in the "Discovery Credential for Proxy
Server"
popup:

"The underlying connection was closed: Unable to connect to the remote
server."

One coment: In the browser, after the proxy login, the wsdl is fine
displayed .

Tks!
Daniel's

Nov 17 '05 #2
Yes Nicholas... You helped me.

But one more question...

In the browser, the proxy info is typed in the popup window of IE. In the
Visual Studio .Net, the popup is displayed... But even when I type the info,
I can't access ( I got the underlying message ).

How do I do that? Or... how do I use the wsdl command (in .Net Command),
bypassing the proxy ou setting the proxy settings?
Tks again.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

You pretty much are doing the right thing.

If there is a proxy between your machine and the web service, then you
will have to access the object making the call on the client side, and set
the proxy details. Basically, your browser is getting through because the
proxy settings are already applied, and the request goes through
successfully.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:06******** *************** ***********@mic rosoft.com...
Hi, about Java WebServices, accessed by C#, I have two questions:

1) what I have to do, in order to use java webservices?
2) I search and I guess I must type the wsdl path in "add web reference".
Everything is fine... But I'm behind a proxy and I got this message, after
type my username and password (in the "Discovery Credential for Proxy
Server"
popup:

"The underlying connection was closed: Unable to connect to the remote
server."

One coment: In the browser, after the proxy login, the wsdl is fine
displayed .

Tks!
Daniel's


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4464
by: Paul Hutchinson | last post by:
All, I wonder if anyone can help/advise with the following interoperability issue we are encountering? We have a .NET web service that takes an abstract type as parameter. Using it from a .net client works OK. However calling the method from a java client (Websphere 5.0) we see the following error being thrown on the call to the method.
0
1375
by: Jinashe | last post by:
what do i need to enable accessing of webservices from a clients PC i'm hosting some webservices from my server in VB.NET. i've got some client windows applications done in VB.NET. what have i got to install on the clients PC to be able to access these webservices?? Will just the .NET Framework suffice??? Or do i have to install SOAP?? note - the OS of the client can be win98, win2K, win3000, winXP
7
4988
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
3
7682
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the error below. Can I access a Web Service through a Query Sting. I need to send XML to a Flash movie using a Web Service. Thank You, Jim Lewis Server Error in '/WebService1' Application.
1
3318
by: William | last post by:
I have a few questions. First, I have a java webservice, which was developed using the Java Webserices Developer Pack 1.3. Here is the wsdl for the service. (Note: That this service is not exposed publicly.) <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.xxx.com/im/webservices/"
3
5006
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function HelloWorld() As > <System.Xml.Serialization.SoapElementAttribute("return")> String
2
6970
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
4
4469
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get this exception: System.Net.WebException: The request failed with HTTP status 407: Proxy Authentication Required. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream...
0
9671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.