.Net and Java

Get help on programming - C++, Java, Delphi, etc.
Post Reply
grant_onecom
Registered User
Posts: 5
Joined: 15 Jan 2004, 02:00

.Net and Java

Post by grant_onecom »

can any one tell me how to call a Java web service from .Net?
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

good question go ask @ http://www.experts-exchange.com
Last edited by RuadRauFlessa on 16 Jan 2004, 07:26, edited 1 time in total.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
passif
Registered User
Posts: 52
Joined: 06 Dec 2003, 02:00

Post by passif »

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.
grant_onecom
Registered User
Posts: 5
Joined: 15 Jan 2004, 02:00

still .Net and Java

Post by grant_onecom »

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. :cry:
grant_onecom
Registered User
Posts: 5
Joined: 15 Jan 2004, 02:00

still still .Net and Java

Post by grant_onecom »

The URL look useful, i will try it out and let you know -- thanks :?
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

That is kinda a nice site for beginners.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
passif
Registered User
Posts: 52
Joined: 06 Dec 2003, 02:00

Post by passif »

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.
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.

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.
mrberns
Registered User
Posts: 224
Joined: 10 Oct 2003, 02:00
Location: Pretoria
Contact:

Post by mrberns »

raw SOAP is filthy....

*shudders*
*insert witty comment here*
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

mrberns wrote:raw SOAP is filthy....

*shudders*
Never used it, propably never will eather
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Last-Attacker
Registered User
Posts: 696
Joined: 04 Sep 2003, 02:00

Post by Last-Attacker »

Well if you can get your hands on Visual Studio.NET 2003, then you have your hands on J# which is Java for .NET.
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

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.
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 IDE
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Uranium
Registered User
Posts: 275
Joined: 30 Apr 2003, 02:00

Post by Uranium »

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
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

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.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

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.
Have the filthy thing but rather stick to Eclipse or Netbeans for Java related development.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Garret
Registered User
Posts: 826
Joined: 18 Feb 2004, 02:00
Location: Johannesburg

Post by Garret »

RuadRauFlessa wrote:
mrberns wrote:raw SOAP is filthy....

*shudders*
Never used it, propably never will eather
The whole of Indigo - next version of the underlying messaging / web services framework runs using it.

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.
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

Like I said I don't know verry much about SOAP and therefore cannot pass judgement upon it.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Post Reply