Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

newbie on WSDL

 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

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.

Objectives:
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.

Alan

 
That is a really big piece of pie for such a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic