Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Consuming ASP.Net Web Service from WSDL(Calling ASP.Net Web Service from code)
Consuming ASP.Net Web Service from WSDL [message #642849] Thu, 02 December 2010 17:58 Go to next message
Anthony Missing name is currently offline Anthony Missing name
Messages: 5
Registered: December 2010
Junior Member
I have a long standing and reliable web service that is written in asp.net and housed on our IIS web servers. I am creating a Lotus Notes plugin to interface with our application via web service calls. I have the web service in the Eclipse (Ganymede 3.4) IDE, but I can't figure out how to call the web services from code. I can test the web services using the Web Service Browser and it returns the correct data, but I have no clue how to reference in code and I can't find an example on the web.

I know I am just missing something simple, but I have no clue as to what that could be.

I have imported the WSDL into my project and it has created the java files/classes for each method in the web service. For example, one of the methods is called "Authenticate". You pass in a user and password and it returns a string with user information if it is successful or error information if it's not.

In my project under the package where the imported WSDL Methods are there are two items. One called Authenticate and one called AuthenticateResponse. How can I call this method, pass in the two parameters and get the return string from the invoked method?
Re: Consuming ASP.Net Web Service from WSDL [message #643087 is a reply to message #642849] Sat, 04 December 2010 00:16 Go to previous messageGo to next message
Eclipse User
Originally posted by: n.n.nnn

On Thu, 02 Dec 2010 17:58:55 -0500, Anthony wrote:

> In my project under the package where the imported WSDL Methods are
> there are two items. One called Authenticate and one called
> AuthenticateResponse. How can I call this method, pass in the two
> parameters and get the return string from the invoked method?

I'm on Ubuntu so I used Mono to create a .NET Web Service described here:
http://www.mono-project.com/Writing_a_WebService
and start it running under XSP and made sure the WSDL showed up here:
http://localhost:8080/NumberService.asmx?wsdl

Then in Eclipse right-click on my project, New Project | Other, Web Service
Client then type the URL to the WSDL in the Service definition
then assuming my server runtime supports this (I use Tomcat 6 which does)
make sure Apache AXIS runtime is selected Finish.

I end up with a package containing the proxy Java code that I call
like this:

Button btnDoit = new Button(shell, SWT.NONE);
btnDoit.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
int iRet = -1;
MathServiceSoapProxy svc = new MathServiceSoapProxy();
try {
iRet = svc.addNumbers(3, 2);
label.setText(String.valueOf(iRet));

} catch (RemoteException e1) {
e1.printStackTrace();
label.setText(e1.getLocalizedMessage());
}
}
});
Re: Consuming ASP.Net Web Service from WSDL [message #643458 is a reply to message #643087] Mon, 06 December 2010 18:04 Go to previous messageGo to next message
Anthony Missing name is currently offline Anthony Missing name
Messages: 5
Registered: December 2010
Junior Member
I followed the coding model that you suggested (thanks btw) and when I get to the line instantiate the ServiceProxy I get:

Source not Found
The JAR of this class file belongs to container 'Plug-in Dependencies' which does not allow modifications to source attachments on its entries.

// Compiled from EventTable.java (version 1.2 : 46.0, super bit)
class org.eclipse.swt.widgets.EventTable {

// Field descriptor #9 [I
int[] types;

// Field descriptor #55 [Lorg/eclipse/swt/widgets/Listener;
org.eclipse.swt.widgets.Listener[] listeners;

// Field descriptor #7 I
int level;

// Field descriptor #7 I
static final int GROW_SIZE = 4;

// Method descriptor #2 ()V
// Stack: 1, Locals: 1
EventTable();
0 aload_0 [this]
1 invokespecial java.lang.Object() [76]
4 return
Line numbers:
[pc: 0, line: 24]
Local variable table:
[pc: 0, pc: 5] local: this index: 0 type: org.eclipse.swt.widgets.EventTable

// Method descriptor #60 (I)[Lorg/eclipse/swt/widgets/Listener;
// Stack: 4, Locals: 5
public org.eclipse.swt.widgets.Listener[] getListeners(int eventType);
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
4 ifnonnull 12
7 iconst_0
8 anewarray org.eclipse.swt.widgets.Listener [49]
11 areturn
12 iconst_0
13 istore_2 [count]
14 iconst_0
15 istore_3 [i]
16 goto 35
19 aload_0 [this]
20 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
23 iload_3 [i]
24 iaload
25 iload_1 [eventType]
26 if_icmpne 32
29 iinc 2 1 [count]
32 iinc 3 1 [i]
35 iload_3 [i]
36 aload_0 [this]
37 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
40 arraylength
41 if_icmplt 19
44 iload_2 [count]
45 ifne 53
48 iconst_0
49 anewarray org.eclipse.swt.widgets.Listener [49]
52 areturn
53 iload_2 [count]
54 anewarray org.eclipse.swt.widgets.Listener [49]
57 astore_3 [result]
58 iconst_0
59 istore_2 [count]
60 iconst_0
61 istore 4 [i]
63 goto 93
66 aload_0 [this]
67 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
70 iload 4 [i]
72 iaload
73 iload_1 [eventType]
74 if_icmpne 90
77 aload_3 [result]
78 iload_2 [count]
79 iinc 2 1 [count]
82 aload_0 [this]
83 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
86 iload 4 [i]
88 aaload
89 aastore
90 iinc 4 1 [i]
93 iload 4 [i]
95 aload_0 [this]
96 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
99 arraylength
100 if_icmplt 66
103 aload_3 [result]
104 areturn
Line numbers:
[pc: 0, line: 31]
[pc: 12, line: 32]
[pc: 14, line: 33]
[pc: 19, line: 34]
[pc: 32, line: 33]
[pc: 44, line: 36]
[pc: 53, line: 37]
[pc: 58, line: 38]
[pc: 60, line: 39]
[pc: 66, line: 40]
[pc: 77, line: 41]
[pc: 90, line: 39]
[pc: 103, line: 44]
Local variable table:
[pc: 0, pc: 105] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 0, pc: 105] local: eventType index: 1 type: int
[pc: 14, pc: 105] local: count index: 2 type: int
[pc: 16, pc: 44] local: i index: 3 type: int
[pc: 58, pc: 105] local: result index: 3 type: org.eclipse.swt.widgets.Listener[]
[pc: 63, pc: 103] local: i index: 4 type: int

// Method descriptor #61 (ILorg/eclipse/swt/widgets/Listener;)V
// Stack: 5, Locals: 7
public void hook(int eventType, org.eclipse.swt.widgets.Listener listener);
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
4 ifnonnull 14
7 aload_0 [this]
8 iconst_4
9 newarray int [10]
11 putfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
14 aload_0 [this]
15 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
18 ifnonnull 29
21 aload_0 [this]
22 iconst_4
23 anewarray org.eclipse.swt.widgets.Listener [49]
26 putfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
29 aload_0 [this]
30 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
33 arraylength
34 istore_3 [length]
35 iload_3 [length]
36 iconst_1
37 isub
38 istore 4 [index]
40 goto 59
43 aload_0 [this]
44 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
47 iload 4 [index]
49 iaload
50 ifeq 56
53 goto 64
56 iinc 4 -1 [index]
59 iload 4 [index]
61 ifge 43
64 iinc 4 1 [index]
67 iload 4 [index]
69 iload_3 [length]
70 if_icmpne 124
73 iload_3 [length]
74 iconst_4
75 iadd
76 newarray int [10]
78 astore 5 [newTypes]
80 aload_0 [this]
81 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
84 iconst_0
85 aload 5 [newTypes]
87 iconst_0
88 iload_3 [length]
89 invokestatic java.lang.System.arraycopy(java.lang.Object, int, java.lang.Object, int, int) : void [77]
92 aload_0 [this]
93 aload 5 [newTypes]
95 putfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
98 iload_3 [length]
99 iconst_4
100 iadd
101 anewarray org.eclipse.swt.widgets.Listener [49]
104 astore 6 [newListeners]
106 aload_0 [this]
107 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
110 iconst_0
111 aload 6 [newListeners]
113 iconst_0
114 iload_3 [length]
115 invokestatic java.lang.System.arraycopy(java.lang.Object, int, java.lang.Object, int, int) : void [77]
118 aload_0 [this]
119 aload 6 [newListeners]
121 putfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
124 aload_0 [this]
125 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
128 iload 4 [index]
130 iload_1 [eventType]
131 iastore
132 aload_0 [this]
133 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
136 iload 4 [index]
138 aload_2 [listener]
139 aastore
140 return
Line numbers:
[pc: 0, line: 48]
[pc: 14, line: 49]
[pc: 29, line: 50]
[pc: 40, line: 51]
[pc: 43, line: 52]
[pc: 56, line: 53]
[pc: 59, line: 51]
[pc: 64, line: 55]
[pc: 67, line: 56]
[pc: 73, line: 57]
[pc: 80, line: 58]
[pc: 92, line: 59]
[pc: 98, line: 60]
[pc: 106, line: 61]
[pc: 118, line: 62]
[pc: 124, line: 64]
[pc: 132, line: 65]
[pc: 140, line: 66]
Local variable table:
[pc: 0, pc: 141] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 0, pc: 141] local: eventType index: 1 type: int
[pc: 0, pc: 141] local: listener index: 2 type: org.eclipse.swt.widgets.Listener
[pc: 35, pc: 141] local: length index: 3 type: int
[pc: 40, pc: 141] local: index index: 4 type: int
[pc: 80, pc: 124] local: newTypes index: 5 type: int[]
[pc: 106, pc: 124] local: newListeners index: 6 type: org.eclipse.swt.widgets.Listener[]

// Method descriptor #4 (I)Z
// Stack: 2, Locals: 3
public boolean hooks(int eventType);
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
4 ifnonnull 9
7 iconst_0
8 ireturn
9 iconst_0
10 istore_2 [i]
11 goto 29
14 aload_0 [this]
15 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
18 iload_2 [i]
19 iaload
20 iload_1 [eventType]
21 if_icmpne 26
24 iconst_1
25 ireturn
26 iinc 2 1 [i]
29 iload_2 [i]
30 aload_0 [this]
31 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
34 arraylength
35 if_icmplt 14
38 iconst_0
39 ireturn
Line numbers:
[pc: 0, line: 69]
[pc: 9, line: 70]
[pc: 14, line: 71]
[pc: 26, line: 70]
[pc: 38, line: 73]
Local variable table:
[pc: 0, pc: 40] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 0, pc: 40] local: eventType index: 1 type: int
[pc: 11, pc: 38] local: i index: 2 type: int

// Method descriptor #59 (Lorg/eclipse/swt/widgets/Event;)V
// Stack: 4, Locals: 9
public void sendEvent(org.eclipse.swt.widgets.Event event);
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
4 ifnonnull 8
7 return
8 aload_0 [this]
9 dup
10 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
13 aload_0 [this]
14 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
17 iflt 24
20 iconst_1
21 goto 25
24 iconst_m1
25 iadd
26 putfield org.eclipse.swt.widgets.EventTable.level : int [73]
29 iconst_0
30 istore_2 [i]
31 goto 79
34 aload_1 [event]
35 getfield org.eclipse.swt.widgets.Event.type : int [72]
38 ifne 45
41 jsr 99
44 return
45 aload_0 [this]
46 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
49 iload_2 [i]
50 iaload
51 aload_1 [event]
52 getfield org.eclipse.swt.widgets.Event.type : int [72]
55 if_icmpne 76
58 aload_0 [this]
59 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
62 iload_2 [i]
63 aaload
64 astore_3 [listener]
65 aload_3 [listener]
66 ifnull 76
69 aload_3 [listener]
70 aload_1 [event]
71 invokeinterface org.eclipse.swt.widgets.Listener.handleEvent(org.eclipse.swt .widgets.Event) : void [80] [nargs: 2]
76 iinc 2 1 [i]
79 iload_2 [i]
80 aload_0 [this]
81 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
84 arraylength
85 if_icmplt 34
88 goto 249
91 astore 5
93 jsr 99
96 aload 5
98 athrow
99 astore 4
101 aload_0 [this]
102 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
105 ifge 112
108 iconst_1
109 goto 113
112 iconst_0
113 istore 6 [compact]
115 aload_0 [this]
116 dup
117 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
120 aload_0 [this]
121 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
124 iflt 131
127 iconst_1
128 goto 132
131 iconst_m1
132 isub
133 putfield org.eclipse.swt.widgets.EventTable.level : int [73]
136 iload 6 [compact]
138 ifeq 247
141 aload_0 [this]
142 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
145 ifne 247
148 iconst_0
149 istore 7 [index]
151 iconst_0
152 istore 8 [i]
154 goto 201
157 aload_0 [this]
158 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
161 iload 8 [i]
163 iaload
164 ifeq 198
167 aload_0 [this]
168 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
171 iload 7 [index]
173 aload_0 [this]
174 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
177 iload 8 [i]
179 iaload
180 iastore
181 aload_0 [this]
182 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
185 iload 7 [index]
187 aload_0 [this]
188 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
191 iload 8 [i]
193 aaload
194 aastore
195 iinc 7 1 [index]
198 iinc 8 1 [i]
201 iload 8 [i]
203 aload_0 [this]
204 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
207 arraylength
208 if_icmplt 157
211 iload 7 [index]
213 istore 8 [i]
215 goto 237
218 aload_0 [this]
219 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
222 iload 8 [i]
224 iconst_0
225 iastore
226 aload_0 [this]
227 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
230 iload 8 [i]
232 aconst_null
233 aastore
234 iinc 8 1 [i]
237 iload 8 [i]
239 aload_0 [this]
240 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
243 arraylength
244 if_icmplt 218
247 ret 4
249 jsr 99
252 return
Exception Table:
[pc: 29, pc: 44] -> 91 when : any
[pc: 45, pc: 91] -> 91 when : any
[pc: 249, pc: 252] -> 91 when : any
Line numbers:
[pc: 0, line: 77]
[pc: 8, line: 78]
[pc: 29, line: 80]
[pc: 34, line: 81]
[pc: 45, line: 82]
[pc: 58, line: 83]
[pc: 65, line: 84]
[pc: 76, line: 80]
[pc: 91, line: 87]
[pc: 96, line: 104]
[pc: 99, line: 87]
[pc: 101, line: 88]
[pc: 115, line: 89]
[pc: 136, line: 90]
[pc: 148, line: 91]
[pc: 151, line: 92]
[pc: 157, line: 93]
[pc: 167, line: 94]
[pc: 181, line: 95]
[pc: 195, line: 96]
[pc: 198, line: 92]
[pc: 211, line: 99]
[pc: 218, line: 100]
[pc: 226, line: 101]
[pc: 234, line: 99]
[pc: 247, line: 104]
[pc: 252, line: 105]
Local variable table:
[pc: 0, pc: 253] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 0, pc: 253] local: event index: 1 type: org.eclipse.swt.widgets.Event
[pc: 31, pc: 88] local: i index: 2 type: int
[pc: 65, pc: 76] local: listener index: 3 type: org.eclipse.swt.widgets.Listener
[pc: 115, pc: 247] local: compact index: 6 type: boolean
[pc: 151, pc: 247] local: index index: 7 type: int
[pc: 154, pc: 211] local: i index: 8 type: int
[pc: 215, pc: 247] local: i index: 8 type: int

// Method descriptor #1 ()I
// Stack: 2, Locals: 3
public int size();
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
4 ifnonnull 9
7 iconst_0
8 ireturn
9 iconst_0
10 istore_1 [count]
11 iconst_0
12 istore_2 [i]
13 goto 31
16 aload_0 [this]
17 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
20 iload_2 [i]
21 iaload
22 ifeq 28
25 iinc 1 1 [count]
28 iinc 2 1 [i]
31 iload_2 [i]
32 aload_0 [this]
33 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
36 arraylength
37 if_icmplt 16
40 iload_1 [count]
41 ireturn
Line numbers:
[pc: 0, line: 108]
[pc: 9, line: 109]
[pc: 11, line: 110]
[pc: 16, line: 111]
[pc: 28, line: 110]
[pc: 40, line: 113]
Local variable table:
[pc: 0, pc: 42] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 11, pc: 42] local: count index: 1 type: int
[pc: 13, pc: 40] local: i index: 2 type: int

// Method descriptor #3 (I)V
// Stack: 6, Locals: 3
void remove(int index);
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
4 ifne 56
7 aload_0 [this]
8 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
11 arraylength
12 iconst_1
13 isub
14 istore_2 [end]
15 aload_0 [this]
16 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
19 iload_1 [index]
20 iconst_1
21 iadd
22 aload_0 [this]
23 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
26 iload_1 [index]
27 iload_2 [end]
28 iload_1 [index]
29 isub
30 invokestatic java.lang.System.arraycopy(java.lang.Object, int, java.lang.Object, int, int) : void [77]
33 aload_0 [this]
34 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
37 iload_1 [index]
38 iconst_1
39 iadd
40 aload_0 [this]
41 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
44 iload_1 [index]
45 iload_2 [end]
46 iload_1 [index]
47 isub
48 invokestatic java.lang.System.arraycopy(java.lang.Object, int, java.lang.Object, int, int) : void [77]
51 iload_2 [end]
52 istore_1 [index]
53 goto 72
56 aload_0 [this]
57 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
60 ifle 72
63 aload_0 [this]
64 aload_0 [this]
65 getfield org.eclipse.swt.widgets.EventTable.level : int [73]
68 ineg
69 putfield org.eclipse.swt.widgets.EventTable.level : int [73]
72 aload_0 [this]
73 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
76 iload_1 [index]
77 iconst_0
78 iastore
79 aload_0 [this]
80 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
83 iload_1 [index]
84 aconst_null
85 aastore
86 return
Line numbers:
[pc: 0, line: 117]
[pc: 7, line: 118]
[pc: 15, line: 119]
[pc: 33, line: 120]
[pc: 51, line: 121]
[pc: 56, line: 123]
[pc: 72, line: 125]
[pc: 79, line: 126]
[pc: 86, line: 127]
Local variable table:
[pc: 0, pc: 87] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 0, pc: 87] local: index index: 1 type: int
[pc: 15, pc: 56] local: end index: 2 type: int

// Method descriptor #61 (ILorg/eclipse/swt/widgets/Listener;)V
// Stack: 2, Locals: 4
public void unhook(int eventType, org.eclipse.swt.widgets.Listener listener);
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
4 ifnonnull 8
7 return
8 iconst_0
9 istore_3 [i]
10 goto 42
13 aload_0 [this]
14 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
17 iload_3 [i]
18 iaload
19 iload_1 [eventType]
20 if_icmpne 39
23 aload_0 [this]
24 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
27 iload_3 [i]
28 aaload
29 aload_2 [listener]
30 if_acmpne 39
33 aload_0 [this]
34 iload_3 [i]
35 invokevirtual org.eclipse.swt.widgets.EventTable.remove(int) : void [78]
38 return
39 iinc 3 1 [i]
42 iload_3 [i]
43 aload_0 [this]
44 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
47 arraylength
48 if_icmplt 13
51 return
Line numbers:
[pc: 0, line: 130]
[pc: 8, line: 131]
[pc: 13, line: 132]
[pc: 33, line: 133]
[pc: 38, line: 134]
[pc: 39, line: 131]
[pc: 51, line: 137]
Local variable table:
[pc: 0, pc: 52] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 0, pc: 52] local: eventType index: 1 type: int
[pc: 0, pc: 52] local: listener index: 2 type: org.eclipse.swt.widgets.Listener
[pc: 10, pc: 51] local: i index: 3 type: int

// Method descriptor #58 (ILorg/eclipse/swt/internal/SWTEventListener;)V
// Stack: 2, Locals: 5
public void unhook(int eventType, org.eclipse.swt.internal.SWTEventListener listener);
0 aload_0 [this]
1 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
4 ifnonnull 8
7 return
8 iconst_0
9 istore_3 [i]
10 goto 64
13 aload_0 [this]
14 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
17 iload_3 [i]
18 iaload
19 iload_1 [eventType]
20 if_icmpne 61
23 aload_0 [this]
24 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
27 iload_3 [i]
28 aaload
29 instanceof org.eclipse.swt.widgets.TypedListener [50]
32 ifeq 61
35 aload_0 [this]
36 getfield org.eclipse.swt.widgets.EventTable.listeners : org.eclipse.swt.widgets.Listener[] [75]
39 iload_3 [i]
40 aaload
41 checkcast org.eclipse.swt.widgets.TypedListener [50]
44 astore 4 [typedListener]
46 aload 4 [typedListener]
48 invokevirtual org.eclipse.swt.widgets.TypedListener.getEventListener() : org.eclipse.swt.internal.SWTEventListener [79]
51 aload_2 [listener]
52 if_acmpne 61
55 aload_0 [this]
56 iload_3 [i]
57 invokevirtual org.eclipse.swt.widgets.EventTable.remove(int) : void [78]
60 return
61 iinc 3 1 [i]
64 iload_3 [i]
65 aload_0 [this]
66 getfield org.eclipse.swt.widgets.EventTable.types : int[] [74]
69 arraylength
70 if_icmplt 13
73 return
Line numbers:
[pc: 0, line: 140]
[pc: 8, line: 141]
[pc: 13, line: 142]
[pc: 23, line: 143]
[pc: 35, line: 144]
[pc: 46, line: 145]
[pc: 55, line: 146]
[pc: 60, line: 147]
[pc: 61, line: 141]
[pc: 73, line: 152]
Local variable table:
[pc: 0, pc: 74] local: this index: 0 type: org.eclipse.swt.widgets.EventTable
[pc: 0, pc: 74] local: eventType index: 1 type: int
[pc: 0, pc: 74] local: listener index: 2 type: org.eclipse.swt.internal.SWTEventListener
[pc: 10, pc: 73] local: i index: 3 type: int
[pc: 46, pc: 61] local: typedListener index: 4 type: org.eclipse.swt.widgets.TypedListener
}
Re: Consuming ASP.Net Web Service from WSDL [message #643477 is a reply to message #643458] Mon, 06 December 2010 21:37 Go to previous messageGo to next message
Eclipse User
Originally posted by: n.n.nnn

On Mon, 06 Dec 2010 18:05:03 -0500, Anthony wrote:

> I followed the coding model that you suggested (thanks btw) and when I
> get to the line instantiate the ServiceProxy I get:
>
> Source not Found
> The JAR of this class file belongs to container 'Plug-in Dependencies'
> which does not allow modifications to source attachments on its entries.
>

Anthony,

The steps work for me as described using AXIS 1. One thing I forgot to
mention, I added

Do this, in a terminal window (DOS prompt if on Windows), CD into your
Eclipse directory then plugins. Then do a directory listing looking for
anything with "soap" in the name and let me know what you find.

And ... if you should happen to have the Spring Tools plugin installed, I'd
advise removing it, it added an additional SOAP library to my installation
that was causing me some grief recently.

Dilton
Re: Consuming ASP.Net Web Service from WSDL [message #643589 is a reply to message #643477] Tue, 07 December 2010 10:24 Go to previous messageGo to next message
Anthony Missing name is currently offline Anthony Missing name
Messages: 5
Registered: December 2010
Junior Member
There is only one directory with "soap" in the name:
javax.xml.soap_1.2.0.v200806030421

Re: Consuming ASP.Net Web Service from WSDL [message #643728 is a reply to message #643589] Tue, 07 December 2010 22:26 Go to previous message
Eclipse User
Originally posted by: n.n.nnn

On Tue, 07 Dec 2010 10:24:15 -0500, Anthony wrote:

> There is only one directory with "soap" in the name:
> javax.xml.soap_1.2.0.v200806030421

Check some of the online tutorials for WSDL clients in Eclipse.
You'll get it working.
Previous Topic:Dialog name for the Ctrl-f6 in eclipse
Next Topic:Help: Eclipse installation on Solaris
Goto Forum:
  


Current Time: Wed Aug 27 19:15:56 EDT 2014

Powered by FUDForum. Page generated in 0.01762 seconds