I'm just learning WSDL and I'm working on a new project that requires me to develop a WSDL file. I've gone over numerous tutorials on the internet and put together a file that I hope will do what I expect it to. Following is the file I've so far put together. I need someone who knows WSDL really well to look over my file and let me know if it is written properly. I'm afraid I might have made the wsdl file more complicated than it needs to be. It needs to be rewritten. Please advise.
1. Define a user defined type named ListItem: contains an integer and a string 2. Define an array of type ListItem named ArrayOfListItems
3. Describe java method getIndustryList: takes one parameter of type integer and returns an array of ListItems
4. Describe java method getCategoryList: takes two parameters of type integer and returns an array of ListItems
5. Describe java method getKeywordList: takes two parameters of type integer and returns a String
I went ahead and used WSDL2Java to create my Axis2KeywordServiceStub.java file which I tried to attach but this darn forum won't let me because it's too big.
In short, however, I need it to contain methods with these signatures:
public static ListItem getIndustryList(int id);
public static ListItem getCategoryList(int id1, int id2);
public static String getKeywordList(int id1, int id2);
I created a KeywordsClient.java file in order to make use of classes and methods in Axis2KeywordServiceStub class. It's not compliling as I would have hoped. I'm really confused about this. Methods I expect to find there, don't exist. Obviously my wsdl file below needs more work. My KeywordsClient class looks like the following:
If there is any corrections or additions that are required, please let me know.