Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to call Java Web service using Asp.Net?

How to call Java Web service using Asp.Net?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavaasp-netwcf
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashish bhakhar
    wrote on last edited by
    #1

    Hello, I want to call a java web service from my asp.net application? I have a WSDL file URL for a java web service. Can anyone tell how can i use the web methods of java web service using a WSDL URL in my asp.net application?

    A 1 Reply Last reply
    0
    • A ashish bhakhar

      Hello, I want to call a java web service from my asp.net application? I have a WSDL file URL for a java web service. Can anyone tell how can i use the web methods of java web service using a WSDL URL in my asp.net application?

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Add the web service url as web service as Web Reference. Create the object of Class and Access the methods. Here is an good article in Code project. Please have a look How to invoke Java web service in ASP.net using C# Hope this will help you. :)

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

      A 1 Reply Last reply
      0
      • A Abhijit Jana

        Add the web service url as web service as Web Reference. Create the object of Class and Access the methods. Here is an good article in Code project. Please have a look How to invoke Java web service in ASP.net using C# Hope this will help you. :)

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

        A Offline
        A Offline
        ashish bhakhar
        wrote on last edited by
        #3

        You have given good solution, but i can not add the reference of a web reference in my C# page. where you have write "using JSimpCalcWebServiceService;", i can't get my added web reference at this position. so, anything required for this?

        A 1 Reply Last reply
        0
        • A ashish bhakhar

          You have given good solution, but i can not add the reference of a web reference in my C# page. where you have write "using JSimpCalcWebServiceService;", i can't get my added web reference at this position. so, anything required for this?

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          ashish bhakhar wrote:

          but i can not add the reference of a web reference in my C# page.

          Why? In your Web Site, Right Click on the Project > Add Web Reference > Then one popup window will come. you have to give the WSDL link on that Address bar. Now Click on the Go link. It will Create a proxy of that web service url. After successuly creation, you will get the reference name in the below text box, you can change the Reference name. Suppose you have given the reference name as MyWS. Then Click on Add Reference Button. Then Add the namespace using MyWS; Now you can create object of the class of Web service and can call the methods. Let me know if any other issue. Hope this will help you. Thanks you.

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

          A 1 Reply Last reply
          0
          • A Abhijit Jana

            ashish bhakhar wrote:

            but i can not add the reference of a web reference in my C# page.

            Why? In your Web Site, Right Click on the Project > Add Web Reference > Then one popup window will come. you have to give the WSDL link on that Address bar. Now Click on the Go link. It will Create a proxy of that web service url. After successuly creation, you will get the reference name in the below text box, you can change the Reference name. Suppose you have given the reference name as MyWS. Then Click on Add Reference Button. Then Add the namespace using MyWS; Now you can create object of the class of Web service and can call the methods. Let me know if any other issue. Hope this will help you. Thanks you.

            cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

            A Offline
            A Offline
            ashish bhakhar
            wrote on last edited by
            #5

            I have done, all you have written. but after adding a web reference with some name, i can't add the namespace using my given name, bcoz it can't found!

            A 1 Reply Last reply
            0
            • A ashish bhakhar

              I have done, all you have written. but after adding a web reference with some name, i can't add the namespace using my given name, bcoz it can't found!

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              did you tried access via code, like say if you have given the name space like MyWS, then are you able to access it like MyWS.ClassName ? Do one think, after adding the reference, Build your application once then try ? That will resolve your issue. Thank you !!

              cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

              A 1 Reply Last reply
              0
              • A Abhijit Jana

                did you tried access via code, like say if you have given the name space like MyWS, then are you able to access it like MyWS.ClassName ? Do one think, after adding the reference, Build your application once then try ? That will resolve your issue. Thank you !!

                cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

                A Offline
                A Offline
                ashish bhakhar
                wrote on last edited by
                #7

                Yes, i have given the name space like MyWS, but i am not able to access it like MyWS.ClassName even after application Re Build. this is the problem.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups