How to convert WSDL file to class file

蓝咒 提交于 2019-12-18 13:37:44

问题


I have a WSDL file. I want to convert wsdl file to web service class file.

Is it possible? If yes please explain it to me in detail.


回答1:


  1. In Solution Explorer right click on your project and go to "Add Service Reference..."
  2. Press "Advanced..." at the bottom of the window.
  3. Press "Add Web Reference..." at the bottom of the window.
  4. In the URL field enter the path to the file eg. C:\Documents and Settings\username\Desktop\filename
  5. Press Go arrow. Service description should display.
  6. Enter the reference name you wish.
  7. Press "Add reference".
  8. Watch Visual Studio do its magic and making your life easy.
  9. Take a break.



回答2:


If you are using .NET and you want to create a client class you can use WSDL.exe.

There are numerous examples on how to create a Java client proxy if you google correctly.




回答3:


For Android and Iphone: www.wsdl2code.com/ It converts WSDL file to Java and objective c files. Hopes it help.




回答4:


A WSDL is more of an interface; it's not going to have any implementation details. If you use WSDL.exe or pull the web service in a project and look at all files, you should get the method signatures.



来源:https://stackoverflow.com/questions/2582341/how-to-convert-wsdl-file-to-class-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!