| 1 |
/** |
| 2 |
* CityBBBBindingImpl.java |
| 3 |
* |
| 4 |
* This file was auto-generated from WSDL |
| 5 |
* by the Apache Axis Wsdl2java emitter. |
| 6 |
*/ |
| 7 |
|
| 8 |
package test.wsdl.wrapped; |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
public class City_BBBBindingImpl implements City_BBBPortType { |
| 13 |
public static final String OID_STRING = "Attraction@cityCF::1028:1028"; |
| 14 |
|
| 15 |
public Attraction getAttraction(String attname) throws java.rmi.RemoteException { |
| 16 |
// The only acceptable attNames are Christmas and Xmas |
| 17 |
// Apparently no one ones to go to New Orleans for Mardi Gras. :-) |
| 18 |
if (attname == null || |
| 19 |
!(attname.equals("Christmas") || |
| 20 |
attname.equals("Xmas"))) { |
| 21 |
return null; |
| 22 |
} |
| 23 |
Attraction attraction = new Attraction(); |
| 24 |
attraction.set_OID(OID_STRING); |
| 25 |
attraction.setFacts("New Orleans at Christmastime is a city with the best food in the world, the best music" + |
| 26 |
" in the world, international shopping, the French Quarter -- America's most " + |
| 27 |
" romantic neighborhood, and the friendliest, most big-hearted people you'd ever " + |
| 28 |
" want to share a rousing celebration with. New Orleans is a natural place for Christmas " + |
| 29 |
" merry making, and if it is not, then, to quote a New Orleans R&B classic, " + |
| 30 |
" 'grits ain't groceries, eggs ain't poultry, and Mona Lisa was a " + |
| 31 |
" man.' Indeed, Christmas is an especially great time to come because New Orleans " + |
| 32 |
" hotels have attractive Papa Noel rates. Throughout the month of December, New Orleans " + |
| 33 |
" will be decorated like never before, which is saying a lot for a town that loves " + |
| 34 |
" exhibitionism. From the quaint, light-entwined cast iron lamp posts to the historic " + |
| 35 |
" houses and museums bright in their period holiday garb, the French Quarter will sparkle "+ |
| 36 |
" like an antique toy store. The twinkling lights and the cheery voices of carolers will " + |
| 37 |
" have you dancing and prancing through Jackson Square, in the jingle bell air. Riverwalk "+ |
| 38 |
" shopping center is a leader in the celebrations, launching brass band parades twice " + |
| 39 |
" daily that include the grand ol' rogue, Papa Noel, and putting on a light show " + |
| 40 |
" every evening in Spanish Plaza. Woldenberg Park, on the riverfront, will decorate the " + |
| 41 |
" night with commissioned light sculptures by local artists. First National Bank of " + |
| 42 |
" Commerce is sponsoring free nightly concerts of soul-stirring gospel music in the " + |
| 43 |
" stately St. Louis Cathedral. And New Orleans restaurants have revived the tradition of "+ |
| 44 |
" 'Reveillon' dinners, a name that comes from the French word for " + |
| 45 |
" 'awakening' because it was a meal that was eaten in the early morning " + |
| 46 |
" immediately after Christmas Midnight Mass, in celebration of the good news, of course, " + |
| 47 |
" but, just as happily, in celebration of the end of the Advent fast. You, however, do " + |
| 48 |
" not have to wait til midnight, nor do you have to observe the Advent fast. All you have"+ |
| 49 |
" to do is walk into a New Orleans restaurant and order food so sublime, it is in itself" + |
| 50 |
" a proof for the existence of heaven. And as every New Orleanian knows, Heaven is " + |
| 51 |
" presided over by a French-Italian-Creole chef with a gumbo-pot belly and a laugh " + |
| 52 |
" that fills that human heart with gladness. Merry Christmas to ya, New Orleans style."); |
| 53 |
return attraction; |
| 54 |
} |
| 55 |
|
| 56 |
public Attraction[] getAttractions(String[] attnames) throws java.rmi.RemoteException { |
| 57 |
Attraction[] attractions = null; |
| 58 |
if (attnames != null) { |
| 59 |
attractions = new Attraction[attnames.length]; |
| 60 |
for (int i=0; i < attnames.length; i++) { |
| 61 |
attractions[i] = getAttraction(attnames[i]); |
| 62 |
} |
| 63 |
} |
| 64 |
return attractions; |
| 65 |
} |
| 66 |
|
| 67 |
public Attraction[] getAttractions2(Query[] attnames) throws java.rmi.RemoteException { |
| 68 |
Attraction[] attractions = null; |
| 69 |
if (attnames != null) { |
| 70 |
attractions = new Attraction[attnames.length]; |
| 71 |
for (int i=0; i < attnames.length; i++) { |
| 72 |
if (attnames[i] != null) { |
| 73 |
attractions[i] = getAttraction(attnames[i].getValue()); |
| 74 |
} |
| 75 |
} |
| 76 |
} |
| 77 |
return attractions; |
| 78 |
} |
| 79 |
} |