.Net and Java
-
- Registered User
- Posts: 5
- Joined: 15 Jan 2004, 02:00
.Net and Java
can any one tell me how to call a Java web service from .Net?
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
good question go ask @ http://www.experts-exchange.com
Last edited by RuadRauFlessa on 16 Jan 2004, 07:26, edited 1 time in total.
- Spoiler (show)
Take a look at this http://www.csharphelp.com/archives/archive53.html and see whether it helps. I've done it a while back - the big hassle at the time was with the encoding style. Make sure that both sides are set to the same (the recommendation is to set the .Net implementation to use rpc style encoding explicitly, as it defaults to literal. And depending on the framework used by the Java implementation, it may - or may not - support both encodings).
Unfortunately I have been out of the web services loop for a while - but I hope this helps.
Unfortunately I have been out of the web services loop for a while - but I hope this helps.
-
- Registered User
- Posts: 5
- Joined: 15 Jan 2004, 02:00
still .Net and Java
The main problem i have is how to implement it as a whole, can you just add a web reference as you would with a .Net service ( i have tried this though and it does not seen to work) or do you need to explicitly use SOAP.
-
- Registered User
- Posts: 5
- Joined: 15 Jan 2004, 02:00
still still .Net and Java
The URL look useful, i will try it out and let you know -- thanks
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
Ah, okay. Well, it depends - if you use one of the libraries available, there is very little work. I normally use Glue from http://www.themindelectric.com although they've recently undergone a name change due to another company buyout. Very simple, just write ye stock standard class, add a single line of code and viola, you have it exposed as a web service. Also, Glue used to be free - don't know after the buy-out though.The main problem i have is how to implement it as a whole, can you just add a web reference as you would with a .Net service ( i have tried this though and it does not seen to work) or do you need to explicitly use SOAP.
Otherwise http://www.apache.org also has a toolkit you can use. And there's a number of others as well, if you do a google you should find them. So, no, it sure ain't neccessary to use raw SOAP.
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
Never used it, propably never will eathermrberns wrote:raw SOAP is filthy....
*shudders*
- Spoiler (show)
-
- Registered User
- Posts: 696
- Joined: 04 Sep 2003, 02:00
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
J# is pure Java but compiled to an executable rather than bytecode. Same functionality as Java but only faster and platform dependant. Oh yeah and it uses the VS.NOT Dev IDELast-Attacker wrote:Well if you can get your hands on Visual Studio.NET 2003, then you have your hands on J# which is Java for .NET.
- Spoiler (show)
Isn't J# for .Net, meaning that it is platform independent, if you have the Framework? Also, I don't think .Net languages compile to machinecode exec, they compile to into IL metadata which is a similar idea to Java's bytecode, only faster.
UR@|\|1U|\/|
My PC:
AMD Athlon64 3500+
2GB DDR400 RAM
GeForce 6800GT 256MB
120 GB SATA HDD
My PC:
AMD Athlon64 3500+
2GB DDR400 RAM
GeForce 6800GT 256MB
120 GB SATA HDD
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
You are correct in saying that J# is for .Net hence the # and it does compile to a IL metadata just like the rest but you can still create a pure JDK1.4 app with it. Also on the topic of bytecode and IL. Yes doing this makes it cross platform but that wasn't the idea behind .Net the idea was to bring all of the current languages together under a unified command structure and class architecture. And for thet it has succeeded. The thing that makes .Net cross platform @ the moment is a open source project named Mono (Monkey) and mMicrosoft does not have a hand into it.
- Spoiler (show)
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
Have the filthy thing but rather stick to Eclipse or Netbeans for Java related development.Last-Attacker wrote:Well if you can get your hands on Visual Studio.NET 2003, then you have your hands on J# which is Java for .NET.
- Spoiler (show)
The whole of Indigo - next version of the underlying messaging / web services framework runs using it.RuadRauFlessa wrote:Never used it, propably never will eathermrberns wrote:raw SOAP is filthy....
*shudders*
Been using SOAP extensively for about 2 years now and wouldn't use anything else if I could.
Even currently - I'm using a POST verb for integration to a remote client because the client's developers just haven't implemented it yet.
If you're working on .net - you're more than likely using it without even knowing anyway.
Like any tech. there is a place for it - you just need to know when and how to use it.
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
Like I said I don't know verry much about SOAP and therefore cannot pass judgement upon it.
- Spoiler (show)