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 Oliver Wulff <ol...@zurich.ch> on 2003/10/22 17:18:09 UTC

Enhancement request: CORBA to WSDL Spec.




Hi all

The CORBA to WSDL spec (http://www.omg.org/docs/ptc/03-01-14.pdf) defines
how Corba modules are mapped to WSDL.

Ex.
Corba Idl:
module myservice {
      interface Calculator {
            typedef long Number_T;
            long add (in Number_T op1, in Number_T op2);
      };
};

WSDL:
<simpleType name="myservice.Calculator.Number_T">
      <restriction base="xsd:long"/>
</simpleType>

Classes with long names will be generated when I run WSDL2Java
->MyService.Calculator.Number_T.

Wouldn't it make sense to map names with "." as seperators to Java package
names:
      package myservice.calculator;
      public class Number_T {
      ....

An option for the WSDL2Java program would be desirable.

Looking forward at an interesting discussion...

Oliver







******************* BITTE BEACHTEN *******************
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


Re: Enhancement request: CORBA to WSDL Spec.

Posted by Steve Loughran <st...@iseran.com>.
Oliver Wulff wrote:
> 
> 
> 
> Hi all
> 
> The CORBA to WSDL spec (http://www.omg.org/docs/ptc/03-01-14.pdf) defines
> how Corba modules are mapped to WSDL.
> 
> Ex.
> Corba Idl:
> module myservice {
>       interface Calculator {
>             typedef long Number_T;
>             long add (in Number_T op1, in Number_T op2);
>       };
> };
> 
> WSDL:
> <simpleType name="myservice.Calculator.Number_T">
>       <restriction base="xsd:long"/>
> </simpleType>
> 
> Classes with long names will be generated when I run WSDL2Java
> ->MyService.Calculator.Number_T.
> 
> Wouldn't it make sense to map names with "." as seperators to Java package
> names:
>       package myservice.calculator;
>       public class Number_T {
>       ....
> 
> An option for the WSDL2Java program would be desirable.
> 
> Looking forward at an interesting discussion...
> 

I think the WSDL naming policies in axis are driven primarily by the 
JAX-RPC specs; this gives people consistency across implementations. 
This makes it hard to change, even when there are improvments...