| 1 |
/** |
| 2 |
* StarWarsBindingImpl.java |
| 3 |
* |
| 4 |
* This file was auto-generated from WSDL |
| 5 |
* by the Apache Axis 1.3 Oct 16, 2005 (11:41:21 EDT) WSDL2Java emitter. |
| 6 |
*/ |
| 7 |
|
| 8 |
package samples.xbeans; |
| 9 |
|
| 10 |
public class StarWarsBindingImpl implements samples.xbeans.StarWarsPortType{ |
| 11 |
com.superflaco.xbeans.Character stashed; |
| 12 |
|
| 13 |
public com.superflaco.xbeans.Character getChewbecca() throws java.rmi.RemoteException { |
| 14 |
com.superflaco.xbeans.Character chewie = |
| 15 |
com.superflaco.xbeans.Character.Factory.newInstance(); |
| 16 |
chewie.setName("Chewbacca"); |
| 17 |
|
| 18 |
com.superflaco.xbeans.System sys = com.superflaco.xbeans.System.Factory.newInstance(); |
| 19 |
sys.setName("WookieSector"); |
| 20 |
|
| 21 |
chewie.setHome(sys); |
| 22 |
chewie.setFaction("smuggler"); |
| 23 |
chewie.setEvil(false); |
| 24 |
chewie.setJedi(false); |
| 25 |
return chewie; |
| 26 |
} |
| 27 |
|
| 28 |
public com.superflaco.xbeans.Character stashChar(com.superflaco.xbeans.Character newChew) throws java.rmi.RemoteException { |
| 29 |
if (stashed == null) { |
| 30 |
stashed = getChewbecca(); |
| 31 |
} |
| 32 |
|
| 33 |
if (newChew != null) { |
| 34 |
System.out.println("old: " + stashed.toString()); |
| 35 |
System.out.println("new: " + newChew.toString()); |
| 36 |
stashed = newChew; |
| 37 |
} |
| 38 |
return stashed; |
| 39 |
} |
| 40 |
|
| 41 |
} |