How to call other server's WSDL file methods using Asp.Net?
-
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?
-
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?
-
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
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.
-
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.
-
Open wsdl file and see the name of service that you are adding.
Ahsan Ullah Senior Software Engineer MCTS 2.0
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