File: ThingImpl.java

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (43 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
 * ThingImpl.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package test.wsdl.wrapped_holders;



/**
 * This test verify's that arrays in a wrapped doc/lit service get holders
 * generated for them, and that they work.
 * 
 * @author Tom Jordahl
 */ 
public class ThingImpl implements test.wsdl.wrapped_holders.Thing{
    public void find_aThing(String aThing, 
                            test.wsdl.wrapped_holders.holders.AThingArrayHolder aThingUnbounded, 
                            test.wsdl.wrapped_holders.holders.OtherDataArrayHolder otherDataUnbounded) 
            throws java.rmi.RemoteException {
        // Verify we get a string in aThing input argument
        String input = aThing;
        if (input == null || !input.equals("This is a test")) {
            String error = "Input argument did not match expected string, got: ";
            error += input != null ? "'" + input + "'" : "NULL";
            error += " Expected: 'This is a test'";
            throw new java.rmi.RemoteException(error);
        }
        
        // now send something back
        String[] things = new String[2];
        things[0] = new String("Thing one");
        things[1] = new String("Thing two");
        aThingUnbounded.value = things;
        String[] others = new String[2];
        others[0] = new String("Other 1");
        others[1] = new String("Other 2");
        otherDataUnbounded.value = others;
    }

}