Note that Axis 1.x has this implemented in the JavaUtils class for Java I believe.

 

You should take this code.

 

--
Tom Jordahl
Macromedia Server Development


From: Ajith Ranabahu [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 19, 2005 2:59 AM
To: [email protected]
Subject: Re: [axis2] RE: svn commit: r170356 -/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/CallbackHandlerTemplate.xsl

 

Hi,
I have added a regular _expression_ based replacement for the non word characters with _. That should do the trick for now :)

On 5/19/05, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:

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.

Ajith Ranabahu

Reply via email to