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