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 Chathura Herath <ch...@gmail.com> on 2005/12/28 22:54:03 UTC

Re: [Axis2] WSDL2Java rpc/literal still broke

Could you post the WSDL pls
Thanks
Chathura

On 12/28/05, local-underground <lo...@yahoo.com> wrote:
> Hi all,
>
> Just downloaded 0.93.. I have been waiting for WSDL2Java to work for rpc/literal.  I just
> ran WSDL2Java.bat and still get the error that was related to rpc/literal being broke:
>
> schemaElement = [xsd:schema: null]
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: The use '
> d' is not supported!
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
>
>
>
>
> Please advise.  Is rpc/literal still not working?
>
>
> thanks
>
>
> chris
>
>
>
>
>
> __________________________________________
> Yahoo! DSL – Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
>


--
Chathura Herath
http://www.bloglines.com/blog/chathurah

Re: [Axis2] WSDL2Java rpc/literal still broke

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Thu, 2005-12-29 at 11:57 +0600, Ajith Ranabahu wrote:
> Hi,
> Yep, I will Chathura :)
> Support for rpc/encoded is somewhat tricky, trickiest part being
> supporting all the SOAPenc rules. Our current consensus is to NOT
> support the whole set of encoding rules. 
> However 90% of the time the rpc/encoded WSDL's only contain simple
> encodiing rules which closely match with the rpc/literal rules. What
> we plan to do is to process the rpc/encoded WSDL as a rpc/lit WSDL if
> the rpc/encoded WSDL does not utilize any obscure soap encoding rules
> (such as SOAPenc array), which we believe would work in the 90% case.

+1 .. IIRC doing that requires no work except to do the tests. Is that
correct? If so please indicate an ETA .. 

Here's the general explanation for everyone: SOAP 1.1 defined SOAP
Encoding based on an abstract type model. In WSDL 1.1, we mapped the
abstract type model of XML Schema to that. However, there's a missing
link .. there's no spec which describes how to take arbitrary XML
Schemas and convert them into SOAP Encoding. So, practice has been that
people use "simple shaped" schemas: ones that use children elements only
and no attributes etc.. If only those things are used, then the mapping
from a SOAP-Enc'ed schema to a doc/lit schema is a no-op, *as long as*
wsdl:arrayType is not used. That stuff is an abomination in my mind as
it put WSDL in the schema space. 

So, if you don't use wsdl:arrayType then the basically treating
style=encoded as if it was style=literal (when encodingStyle=soap-enc)
will work just fine. 

Sanjiva.


Re: [Axis2] WSDL2Java rpc/literal still broke

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
Yep, I will Chathura :)
Support for rpc/encoded is somewhat tricky, trickiest part being supporting
all the SOAPenc rules. Our current consensus is to NOT support the whole set
of encoding rules.
However 90% of the time the rpc/encoded WSDL's only contain simple encodiing
rules which closely match with the rpc/literal rules. What we plan to do is
to process the rpc/encoded WSDL as a rpc/lit WSDL if the rpc/encoded WSDL
does not utilize any obscure soap encoding rules (such as SOAPenc array),
which we believe would work in the 90% case.

All are welcome to comment on this



On 12/29/05, Chathura Herath < chathurah@gmail.com> wrote:
>
> Its on its way. I am sure Ajith would give a better answer of the ETA.
> Thanks
> Chathura
> On 12/28/05, local-underground <lo...@yahoo.com> wrote:
> > Actually, sorry.  It is broke because the WSDL is a rpc/encoded.  Is
> there support for
> > rpc/encoded yet, if not when will that be available.
> >
> > thanks
> >
>
>


--
Ajith Ranabahu

Re: [Axis2] WSDL2Java rpc/literal still broke

Posted by Chathura Herath <ch...@gmail.com>.
Its on its way. I am sure Ajith would give a better answer of the ETA.
Thanks
Chathura
On 12/28/05, local-underground <lo...@yahoo.com> wrote:
> Actually, sorry.  It is broke because the WSDL is a rpc/encoded.  Is there support for
> rpc/encoded yet, if not when will that be available.
>
> thanks
>
>
>
> --- Chathura Herath <ch...@gmail.com> wrote:
>
> > Could you post the WSDL pls
> > Thanks
> > Chathura
> >
> > On 12/28/05, local-underground <lo...@yahoo.com> wrote:
> > > Hi all,
> > >
> > > Just downloaded 0.93.. I have been waiting for WSDL2Java to work for rpc/literal.  I
> > just
> > > ran WSDL2Java.bat and still get the error that was related to rpc/literal being
> > broke:
> > >
> > > schemaElement = [xsd:schema: null]
> > > Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > > java.lang.RuntimeException: The use '
> > > d' is not supported!
> > >         at
> > >
> >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
> > >         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
> > >
> > >
> > >
> > >
> > > Please advise.  Is rpc/literal still not working?
> > >
> > >
> > > thanks
> > >
> > >
> > > chris
> > >
> > >
> > >
> > >
> > >
> > > __________________________________________
> > > Yahoo! DSL � Something to write home about.
> > > Just $16.99/mo. or less.
> > > dsl.yahoo.com
> > >
> > >
> >
> >
> > --
> > Chathura Herath
> > http://www.bloglines.com/blog/chathurah
> >
>
>
>
>
> __________________________________________
> Yahoo! DSL – Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
>


--
Chathura Herath
http://www.bloglines.com/blog/chathurah

Re: [Axis2] WSDL2Java rpc/literal still broke

Posted by local-underground <lo...@yahoo.com>.
Actually, sorry.  It is broke because the WSDL is a rpc/encoded.  Is there support for
rpc/encoded yet, if not when will that be available.

thanks



--- Chathura Herath <ch...@gmail.com> wrote:

> Could you post the WSDL pls
> Thanks
> Chathura
> 
> On 12/28/05, local-underground <lo...@yahoo.com> wrote:
> > Hi all,
> >
> > Just downloaded 0.93.. I have been waiting for WSDL2Java to work for rpc/literal.  I
> just
> > ran WSDL2Java.bat and still get the error that was related to rpc/literal being
> broke:
> >
> > schemaElement = [xsd:schema: null]
> > Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > java.lang.RuntimeException: The use '
> > d' is not supported!
> >         at
> >
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
> >         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
> >
> >
> >
> >
> > Please advise.  Is rpc/literal still not working?
> >
> >
> > thanks
> >
> >
> > chris
> >
> >
> >
> >
> >
> > __________________________________________
> > Yahoo! DSL � Something to write home about.
> > Just $16.99/mo. or less.
> > dsl.yahoo.com
> >
> >
> 
> 
> --
> Chathura Herath
> http://www.bloglines.com/blog/chathurah
> 



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com