Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

call .net webservice from java

 
J Vaughan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am VERY new to java (about 2 days) so please excuse me if this is a very simple question, however I cannot find an answer to it after spending the last day searching.

I have a fairly significant application built in .net & have now hit upon an issue which, from my research shows that I will need to use a java applet for one small piece of functionality.

This applet will need to consume a .Net webservice for certain information, to do this in c# is very simple.

However could someone please explain to me how I can do this in Java, with a code example if at all possible, as every method I have tried so far is just throwing an exception for me ?

Thanks in advance

 
Campbell Ritchie
Sheriff
Pie
Posts: 50240
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

That is by no means a simple question: don't know how to do it myself (sorry). Since we like to restrict this forum to simple questions, I shall move your thread elsewhere. It's not really a "Java in General intermediate" question, but I think you will get more replies here than in web services or similar.
 
Igor Schmuzkofski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

This isn't a simple question, even less for a java-newbe! Do you know something about WSDL and other Webservice-stuff? Then you make get a try with apache-cxf (http://cxf.apache.org/).

Lilte roadmap:
1. (create wsdl)
2. generate java-code with cxf out of the wsdl
3. insert generated code to you project
4. instanciate and call the generated client

There are other WS-frameworks for java as well, but cxf is the simplest one at the moment (anybody knows a simpler framework?)

Good look :-)

igor


 
Campbell Ritchie
Sheriff
Pie
Posts: 50240
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please have another look at your private messages, "Igor".
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also second Apache CXF. It supports JAX-WS as well as JAX-RS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic