easyWSDL Generator plugin
This is an extension for Android Studio and IntelliJ IDE which allows you to generate classes for your Web Service directly from your IDE. It simplify entire operation a lot.
Main features:
- Generating java classes without leaving IDE
- Supports remote and local WSDL addresses. You can use http://mywebservice.com/service?wsdl or c:\myproject\service.wsdl path
- Works with localhost paths. If you are in the middle of developing your web service and it is hosted on your machine then there was no easy way to generate classes in this situation. Problem is that easyWSDL web site cannot reach wsdl file hosted on you local machine. But now, using easyWSDL Generator plugin you can easy use your localhost wsdl address and generate classes for it
- Automatically adds references to required libraries (jar) used by generated classes
- Supports many web service proxies in one Android application project
How to use easyWSDL Generator plugin
Based on IntelliJ IDE but for Android Studio steps are simillar
- First you should install it from official plugins reposidory. Click here to read more about installing plugins.
- Open you Android app project in IntelliJ/Android Studio.
- Now you should create a new package for generated classes in Project view. You can of course generate classes into existing packages if you want
- Right click on the package where you want to put generated classes and choose easyWSDL-Add web service option from the context menu.
- If you do this for the first time you need to login using your easyWSDL credentials.
-
After this you should see easyWSDL Generator dialog. Put your wsdl url there and change more options if needed.
Tip
You can use remote URL (likehttp://myserver.com/service.svc?wsdl
), local path (c:\myservice\service.wsdl
) and local URL (likehttp://localhost/service.svc?wsdl
) - Press OK to generate classes.
You can also update existing classes (for example when new version of easyWSDL generator has been released) by right click on the package where you have your generated classes and click easyWSDL-Update web service from context menu