C# Client to acess a WebService in Java

S

Suresh

Hi,
Iam trying to develop a client in C# on .NET, that would
acess a webservice written in Java.I dont know anything
about what kind of WSDL would be required, how to set the
web references programtically , dynamically during
execution to pick a specified webservice( VS.NET provides
a way to add the web refernce by right clicking on
refernces icon, but this way is static)Is it possible to
do so?
Pleas help.

Thanks
Suresh
 
N

Nicholas Paldino [.NET/C# MVP]

Suresh,

When adding a reference to a web service, you can choose the button on
the solution explorer that has the tooltip "show all files". If you click
this, it will show the .cs files that are generated that are compiled into
the proxy that accesses the web service. If you look at the code here, you
can find out how to switch which web service you want to call.

Also, to connect to the java web service, you will have to get a WSDL
file from the web service. If you can't get it from the server itself, then
you can always use the WDSL utility to generate the proxy from a file on
disc or somewhere else.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top