You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Paul Fremantle <pz...@gmail.com> on 2005/09/19 12:35:02 UTC
[Axis2] codegen
Folks
I'm trying out WSDL2Code on the XMethods StockQuote WSDL
java org.apache.axis2.wsdl.WSDL2Java -o . -uri
http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl
The resulting classes are like this:
public interface net.xmethods.services.stockquote.StockQuotePortType {
...
}
which is of course illegal Java.
It should read
package net.xmethods.services.stockquote;
public interface StockQuotePortType {
}
The -p option doesn't fix this. I did this on the .91 source drop. Is this
already fixed?
Otherwise I'll raise a JIRA
Paul
Re: [Axis2] codegen
Posted by Paul Fremantle <pz...@gmail.com>.
Thanks guys.... that's - I'll try the new code when I get a chance.
Paul
On 9/19/05, Glen Daniels <gl...@thoughtcraft.com> wrote:
>
> Hi Ajith!
>
> > I see that the porttype name is '
> > net.xmethods.services.stockquote.StockQuotePortType'. It's of course
> valid
> > in WSDL but need to be modified when it comes to java. I've already
> checked
> > this with the method names (A regexp replaces all none word characters
> with
> > an _). Is it alright if I introduce the same fix for the class name ???
>
> Note that I also just checked in org.apache.axis2.util.JavaUtils (in the
> databinding module right now), which uses the JAX-RPC rules for
> converting XML names to Java names.
>
> --Glen
>
Re: [Axis2] codegen
Posted by Glen Daniels <gl...@thoughtcraft.com>.
Hi Ajith!
> I see that the porttype name is '
> net.xmethods.services.stockquote.StockQuotePortType'. It's of course valid
> in WSDL but need to be modified when it comes to java. I've already checked
> this with the method names (A regexp replaces all none word characters with
> an _). Is it alright if I introduce the same fix for the class name ???
Note that I also just checked in org.apache.axis2.util.JavaUtils (in the
databinding module right now), which uses the JAX-RPC rules for
converting XML names to Java names.
--Glen
Re: [Axis2] codegen
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi Paul,
I see that the porttype name is '
net.xmethods.services.stockquote.StockQuotePortType'. It's of course valid
in WSDL but need to be modified when it comes to java. I've already checked
this with the method names (A regexp replaces all none word characters with
an _). Is it alright if I introduce the same fix for the class name ???
On 9/19/05, Paul Fremantle <pz...@gmail.com> wrote:
>
> Folks
>
> I'm trying out WSDL2Code on the XMethods StockQuote WSDL
>
> java org.apache.axis2.wsdl.WSDL2Java -o . -uri http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl
>
>
> The resulting classes are like this:
>
> public interface net.xmethods.services.stockquote.StockQuotePortType {
>
> ...
>
> }
>
> which is of course illegal Java.
>
> It should read
>
> package net.xmethods.services.stockquote;
> public interface StockQuotePortType {
> }
>
> The -p option doesn't fix this. I did this on the .91 source drop. Is this
> already fixed?
> Otherwise I'll raise a JIRA
>
> Paul
>
>
--
Ajith Ranabahu