How to access java webservices in c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vsrsid
    New Member
    • Jul 2008
    • 1

    How to access java webservices in c#

    i already have a java webservice and it is going to write a XML thing i want to deserialize that Java webservice in c# is it possible if there is any solutions pls forward me as early aspossible

    Thanks
    bye
    vsrsid@gmail.co m
  • vinot85
    New Member
    • Aug 2007
    • 53

    #2
    Hi buddy,

    If you are using visual studio 2005 and you are trying to access it from c#, just go to project and select Add web reference. it will automatically show an address bar showing enter the url for that web service.

    If you enter the URL of the web service created in Java, and click ok after specifying the name of the proxy class say "addproxy" for example.

    Then Visual studio will automatically create the proxy class to invoke the methods of the service by parsing the WSDL of your web service.

    All you need now is to create the object for proxy like,

    addproxy obj = new addproxy();obj.add(1, 2); // calls Web method written in Java

    like this you can access it using c#

    Regards,
    Vinoth

    Comment

    Working...