I'm working in an GWT 2.4 project. I want to access to a SOAP service. I used wsdl2java to generate classes of the service (servicestub, servicelocator, ...). But this code is server side. How can I do to access the service on the client-side?
Asked
Active
Viewed 969 times
2 Answers
1
There are some problems in Calling Cross Domain Web Services in AJAX
. You can read answer on this question: Accessing web Service from jQuery - cross domain. But you can call server method using RPC. And then server get data from SOAP and return to client.

Community
- 1
- 1

Ivan Dyachenko
- 1,348
- 9
- 16
-
Thanks but this is about calling a web service using GWT not Ajax or JQuery. The RPC solution should maybe work, but it's tedious. – geeko Sep 26 '12 at 15:33
-
1Sorry, geeko, GWT is Javascript, at least it is after it has been compiled. GWT can do nothing that JavaScript can't also do. – Colin Alworth Sep 26 '12 at 19:28
0
Its really tricky to do that (I'm even not sure if its possible) and I would prefer to wrap the SOAP call into a server side service and call that from you client.

Peter
- 4,752
- 2
- 20
- 32
-
I thought about it. But the problem is my requests and responses send the objects generated by wsdl2java. So to be able to use the service I must have those objects on the client-side.Wrapping the soap call will include making a proxy for each of the objects. And I have over 30 objects. It's really tedious.
– geeko Sep 26 '12 at 15:13 -
Thats right. You have to create DTOs an map your soap objects from and to those DTOs. – Peter Sep 27 '12 at 08:07