Hmm .. I was thinking of a simpler solution initially. We can't assume the existence of a JAX-RPC mapping file, but still need to make sure the generated code compiles. Right now, if you have an operation named "foo-bar" then it'll break.
So my suggestion is that we filter all names thru a "Java-izer" and later allow that mapping to be influenced by the mapping file (or to generate the mapping file, depending on the scenario). Sanjiva. On Wed, 2005-05-18 at 09:06 +0600, Chathura Herath wrote: > Dr. Sanjiva > > My plan was to implement the JAXRPC mapping file support so that the exact > method names can be taken from the JAXRPC mapping file. IAS did this for > EWS. Think that will be the permanent solution for it. Will work on it as > soon as we get a stable client side generated. > > Regards, > Chathura > > > -----Original Message----- > > From: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, May 17, 2005 1:33 PM > > To: [EMAIL PROTECTED] > > Cc: [email protected] > > Subject: Re: svn commit: r170356 - > > /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/templat > > e/java/CallbackHandlerTemplate.xsl > > > > Guys, you have to be careful in your XSLT templates to sanitize the > > names. That is, some XML name characters are not valid Java name > > characters (e.g., "."). WSDL authors may use Java/C/C# etc. invalid name > > chars .. so you need to send all the name strings thru a language > > specific filter. > > > > This can be done very easily by calling a Java extension function from > > Xalan (I worked on this many years ago :-)). > > > > Sanjiva. > > > > On Mon, 2005-05-16 at 10:49 +0000, [EMAIL PROTECTED] wrote: > > > Author: chathura > > > Date: Mon May 16 03:49:05 2005 > > > New Revision: 170356 > > > > > > URL: http://svn.apache.org/viewcvs?rev=170356&view=rev > > > Log: > > > mechanism is added for the user to pass in ClientData to the Generated > > Callback class. This clientData can be used for the user to pass in any > > object reference so once the NonBlocking Web service is completed and the > > callback is called by the Axis(Actually the Call) user can access the > > objects he passed at the time of the instantiation of the Callback > > > > > > Modified: > > > > > webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template > > /java/CallbackHandlerTemplate.xsl > > > > > > Modified: > > webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template > > /java/CallbackHandlerTemplate.xsl > > > URL: > > http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src > > /org/apache/axis/wsdl/template/java/CallbackHandlerTemplate.xsl?rev=170356 > > &r1=170355&r2=170356&view=diff > > > > > ========================================================================== > > ==== > > > --- > > webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template > > /java/CallbackHandlerTemplate.xsl (original) > > > +++ > > webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template > > /java/CallbackHandlerTemplate.xsl Mon May 16 03:49:05 2005 > > > @@ -8,11 +8,26 @@ > > > */ > > > > > > public class <xsl:value-of select="@name"/>{ > > > + > > > + > > > + > > > + private Object clientData; > > > + > > > + > > > + /** > > > + * User can pass in any object that needs to be accessed once the > > NonBlocking > > > + * Web service call is finished and appropreate method of this > > CallBack is called. > > > + * @param clientData Object mechanism by which the user can pass in > > user data > > > + * that will be avilable at the time this callback is called. > > > + */ > > > + public <xsl:value-of select="@name"/>(Object clientData){ > > > + this.clientData = clientData; > > > + } > > > > > > > > > <xsl:for-each select="method"> > > > /** > > > - * auto generated Axis2 call back method > > > + * auto generated Axis2 call back method for <xsl:value-of > > select="@name"/> method > > > * > > > */ > > > public void receiveResult<xsl:value-of > > select="@name"/>(org.apache.axis.clientapi.AsyncResult result) { > > > > > > > > > > > > > > > > > >
