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 other server's WSDL file methods using Asp.Net?

How to call other server's WSDL file methods using Asp.Net?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwcfsysadmintutorial
5 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 have a link of a WSDL file, i want to access methods of that wsdl file. I have already added it as a web reference but i can't make object of that web reference. If i am adding a web refernce from same application then it works properly but if i am add web reference by giving other server's url, then i am not able to create an object of that web reference. So, any idea how i can call other server's WSDL file using my asp.net page?

    A 1 Reply Last reply
    0
    • A ashish bhakhar

      Hello, I have a link of a WSDL file, i want to access methods of that wsdl file. I have already added it as a web reference but i can't make object of that web reference. If i am adding a web refernce from same application then it works properly but if i am add web reference by giving other server's url, then i am not able to create an object of that web reference. So, any idea how i can call other server's WSDL file using my asp.net page?

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      When you added the wsdl file. it must have created a class. Open it and read the name. Include reference in your file. And create the object of that class.

      Ahsan Ullah Senior Software Engineer MCTS 2.0

      A 1 Reply Last reply
      0
      • A AhsanS

        When you added the wsdl file. it must have created a class. Open it and read the name. Include reference in your file. And create the object of that class.

        Ahsan Ullah Senior Software Engineer MCTS 2.0

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

        sorry, when i have added that wsdl link, no any class file is created. it has only create .wsdl, .xsd & .map files. It crates class but the condition is that if i have added it from same application.

        A 1 Reply Last reply
        0
        • A ashish bhakhar

          sorry, when i have added that wsdl link, no any class file is created. it has only create .wsdl, .xsd & .map files. It crates class but the condition is that if i have added it from same application.

          A Offline
          A Offline
          AhsanS
          wrote on last edited by
          #4

          Open wsdl file and see the name of service that you are adding.

          Ahsan Ullah Senior Software Engineer MCTS 2.0

          A 1 Reply Last reply
          0
          • A AhsanS

            Open wsdl file and see the name of service that you are adding.

            Ahsan Ullah Senior Software Engineer MCTS 2.0

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

            i have already try making object using that web service's name, but it doesn't supports. & also if i am adding same application asmx file as a web reference then it allows me to see & test web methods, But if i am adding it from URL then it displays me web methods but in read only form. Have you ever try using other server's WSDL link?

            modified on Monday, June 1, 2009 8:04 AM

            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