When you have pretty big WSDL file the problem is how automatically generate
not only server side stubs but GWT RPC calls and data structures that GWT
client can use. You don't want to program all those API manually. I used SUN
jax rpc for that http://java.sun.com/webservices/jaxrpc/overview.html. Example
WSDL
<complexType name="NmsObject">
<sequence>
<element name="ObjectType" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<element name="Initialized" type="xsd:boolean" minOccurs="1"
maxOccurs="1"/>
</sequence>
</complexType>
jaxrpc compiler then generates the following code (see below). For GWT you need
to change those generated classes (either manually or from script)
1. make class serializable
public class NmsObject implements java.io.Serializable
2.Change structures that doesn't have support in GWT like bigint or Calendar
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.3, build R1)
// Generated source version: 1.1.3
package com.yourcompany.client;
public class NmsObject {
protected int objectType;
protected boolean initialized;
public NmsObject() {
}
public NmsObject(int objectType, boolean initialized) {
this.objectType = objectType;
this.initialized = initialized;
}
public int getObjectType() {
return objectType;
}
public void setObjectType(int objectType) {
this.objectType = objectType;
}
public boolean isInitialized() {
return initialized;
}
public void setInitialized(boolean initialized) {
this.initialized = initialized;
}
}
-Sergey
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Tuesday, August 10, 2010 10:27 AM
To: Google Web Toolkit
Subject: Re: WSDL
To follow up on the other reply....you have to do this on the server,
in Java. Apache Axis is a great way to do it... But it won't work on
the client in the emulated JRE (I suspect since I've never tried it,
but I doubt it will)
On Aug 10, 3:27 am, Deepak Singh <[email protected]> wrote:
> Hi All,
>
> I need to consume several cross-domain wsdl files and get data by calling
> methods from wsdl. I dont know how to do this using GWT.
> Pls suggest. I am using GWT 2.1 m2
>
> Thanks
> Deepak
--
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.
</PRE><BR><span
style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#003366'>
_____________________________________________________<BR>
This electronic message and any files transmitted with it contains<BR>
information from iDirect, which may be privileged, proprietary<BR>
and/or confidential. It is intended solely for the use of the individual<BR>
or entity to whom they are addressed. If you are not the original<BR>
recipient or the person responsible for delivering the email to the<BR>
intended recipient, be advised that you have received this email<BR>
in error, and that any use, dissemination, forwarding, printing, or<BR> copying
of this email is strictly prohibited. If you received this email<BR>
in error, please delete it and immediately notify the sender.<BR>
_____________________________________________________
</SPAN><PRE>
--
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.