• 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

Transform a webservice method from C# to Java

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,
I have to write a Web service that must expose a method called Registration. The following example shows an implementation of this method written in C#(???).
It comes from Office.
Could you help me to transform it in java?


And this is the response from provider:



Thanks a lot for any helps.

Fairlie
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The argument to the method has never been used in the method, you might want to look at it first.

First you may have look at different files referred in the code (xml files etc...) and a sample input and output and compare each. Then you should be able to see the logic behind each line (from a completely novice's PoV of the language used).
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The standard Java library for XML manipulation has all you need to build a DOM of the XML document in memory and extract items with XPath statements.

Harold's book on processing xml with java is freely available on line and shows plenty of examples.

Bill
reply
    Bookmark Topic Watch Topic
  • New Topic