There are are two ways you can go about this.

*GWT Client Code   ---- (RPC) ---->    Server Code    --- wsdl2java----->
SOAP web service*
This is the standard method, and you can all the tools you are already
familiar with. Assuming you are not using app engine, there is no
restriction whatsover.
This approach duplicates the entity objects in a way. For example, if you
have a UpdateUser SOAP web service, wsdl2java will generate one set of
classes, and you will need another set of classes for the rpc code. However,
it isn't necessarily a bad thing.


*GWT Client Code   ---- Request Builder + some framework --------> SOAP Web
Service*
Theoretically, this is also possible. You can create the necessary SOAP
headers in the browser, and then send a request using Request Builder. You
would have to write a modified version of wsdl2java to create GWT compatible
classes (or someone may already be doing that).

Note that SOAP isn't an effective medium of communication for web-apps. The
header and footer are too verbose. Besides, you would like the SOAP
webservice to be generic and not tied to the UI; this approach will either
make the WS less re-usable, or will make your client logic a bit more
complicated.

So, there are pros and cons to both approaches. You need to pick the right
approach based on your needs and then move from there.

--Sri


On 8 April 2010 13:08, Vertik <[email protected]> wrote:

> Thanks!
>
> I'm waiting for the next opinion ;)
>
> On Apr 8, 8:03 am, rjcarr <[email protected]> wrote:
> > Hi Vertik-
> >
> > The gwt-rpc mechanism uses its own proprietary object serialization,
> > and as such, cannot be used as a "normal" web service (i.e., an xml
> > web service generated from a wsdl).  I could *definitely* be wrong
> > about this, so seek a second opinion.
> >
> > You can still use GWT for other things, just not this part of your
> > application.
> >
> > Good luck!
> >
> > On Apr 6, 2:58 am, Vertik <[email protected]> wrote:
> >
> > > Hi,
> >
> > > I want to generate form wsdl file a client side (would be my server
> > > side) to invoke external ws. How Can i do it?? If i use wsdl2java tool
> > > to generate client side it would be works to use in gwt app?? (all
> > > without appEngine) or is necessary create using different tool?
> >
> > > web app<using RPC->server<-using java method to invoke>WS
> >
> > > This ws has a security headers and i don't know how can i introduce
> > > the header in the soap message.
> >
> > > Can you help me, please?
> >
> > > Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to