开发者

How to convert WSDL file to class file

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

Is it possible? If yes ple开发者_如何学运维ase explain it to me in detail.


  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.


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.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜