• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

call .net webservice from java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And please have another look at your private messages, "Igor".
 
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also second Apache CXF. It supports JAX-WS as well as JAX-RS.
 
Let me tell you a story about a man named Jed. He made this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic