• 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

.net web services with java!

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how can i consume a web service written in C#, from with my j2se application.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should not be any different from accessing a web service implemented in any other language. That is, after all, one of the benefits of web services: that they are platform and language-independent, as long as they work according to the specifications (SOAP, WSDL, BP etc.). Try to get the WSDL for the service, and create a Java client for it. It's very possible that it will just work.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may want to take a good look at the WSDL before you go any further.

Make sure that it is clear of .NET specific data types like DataSet, DataTable, DataRelation, DataRow, DataColumn etc.

If any of those are in there, it may very well be impossible. It is possible to build interoperable web services with .NET, as long as your web service provider is paying attention.

On the other hand, if you build a .NET web service from one of those early tutorials that hands out a ADO.NET DataSet - you might as well forget it.

Example: look for bizarre namespaces like "xmlns:s0="xmlnet/cs/0735618011" and later


Another problem can occur if the web services provider elects to use Windows Security rather than WS-Security to secure the web service - basically restricting potential clients to Windows-based .NET clients.

You could use WebServiceStudio 2.0 to "explore" the web service if you have access to a Windows machine and don't mind installing .NET 1.1 on. (I'm not aware of the Java equivalent; also, it is two years old, so it doesn't support some of the more recent fancy stuff).
[ October 03, 2005: Message edited by: Peer Reynders ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic