Saturday, July 31, 2010

Re: Cross-domain call

HI, I guess Subhrajyoti is right, you can only call cross-domain when
your app runs on the local client (i.e. on a desktop or phone -
including phonegap deployments). Otherwise, I'd first create a service
myself (on the server side) and secondly call the other service in a
2nd domain. Depending on whether the other service in the 2nd domain
is GWT-RPC or not, a simple servlet forwarding the call might suffice.
I'd be careful however: sessions and cookies might come into play and
make work a lot more difficult.

For a start, I'd do the following:
1.) create a mock service on your own server and check whether
communication works (the service is set up all right)
2.) independently create a webservice client (e.g. using axis -
http://ws.apache.org/axis2/) and try calling the webservice (e.g.
using a small local program to be run via main[])
3.) change the mock service from 1.) to use the webservice from 2.)

Hope this helps - best regards
Sebastian Rothbucher

On 31 Jul., 19:44, Deepak Singh <deepaksingh...@gmail.com> wrote:
> Could you pls provide some link or code, that how to write
> remoteserviceservlet and integrate with gwt.
>
> On Sat, Jul 31, 2010 at 11:04 PM, Subhrajyoti Moitra <subhrajyo...@gmail.com
>
>
>
> > wrote:
> > use GWT RPC mechanism.
> > build a remoteserviceservlet that doubles as a webservice client (this will
> > be typically be implemented using some SOAP stack like axis2 or xfire).
>
> > thanks,
> > Subhro.
>
> > On Sat, Jul 31, 2010 at 10:49 PM, Deepak Singh <deepaksingh...@gmail.com>wrote:
>
> >> I am using gwt 2.1 in my project. I have to make cross-domain web service
> >> call. I have wsdl and methods are known to invoke. I am not aware of web
> >> service so i feel very much difficulty in understanding web service. can any
> >> one suggest me some simple way to call cross-domain web services...
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-toolkit@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment