Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access web service from GWT

Is there any way how I can access a web service from GWT using its WSDL? Previously I was trying to use the generated classes from ws-import.... but then someone pointed out to me that GWT cannot handle all Java, just a subset of it, hence it won't understand the ws-import classes.

Thanks and regards, Krt_Malta

like image 831
Krt_Malta Avatar asked Oct 15 '22 07:10

Krt_Malta


2 Answers

GWT can access web services using a RequestBuilder, which makes HTTP calls to a service and then gets access to its response.

Since your web service is using SOAP, the response you get in your RequestBuilder's callback will be XML. Parse that XML to find the information you're interested in, and you're good to go.

like image 168
Jason Hall Avatar answered Oct 18 '22 10:10

Jason Hall


In our project we were using Axis Client to make SOAP Web Service Call(WSDL Driven). We had use the inbuild plug tool provided by the WTP/ AXIS Webservice in Spring Source Tool to create the client using provided WSDL. We had use the same client code to incorporate with GWT and everything works fine.

like image 25
Siddharatha Dhumale Avatar answered Oct 18 '22 11:10

Siddharatha Dhumale