On Fri, 2005-10-14 at 11:19 -0700, local-underground wrote:
> That is a blessing to hear.  Thanks.  Although I just ran the code gen on 2 
> different
> WSDLs, both gave the following error regarding "The use 'encoded' is not 
> supported!".

Can you provide links to those WSDLs or at least post the <types> and
<message> sections of it? I'd like to see whether the schema describes
something that's already conformant to SOAP-Enc (e.g., no attributes) or
there's some implied mapping.

Actually, can anyone who uses rpc/enc for a large/complicated schema
please post a link or the <types> and <message> sections please? That'll
help make sure we get it supported properly in Axis2 ..

Thanks,

Sanjiva.
> 
> 
> 
> $ WSDL2Java.bat -uri SoapTixs.wsdl -o c:/dev/bean-test -d xmlbeans
> Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: The use 'encoded' is not supported!
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:104)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: The use 'encoded' is not supported!
>         at 
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.foo(XMLBean
> sExtension.java:278)
>         at 
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.checkCompat
> ibility(XMLBeansExtension.java:264)
>         at 
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
> eansExtension.java:74)
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:75)
>         ... 2 more
> 
> Any ideas ?  thanks again.
> 
> 
> 
> 
> chris
> 
> 
> 
> 
> 
> 
> --- Glen Daniels <[EMAIL PROTECTED]> wrote:
> 
> > Hi Chris:
> > 
> > > Is there a way to generate Java Bean classes from the WSDL in Axis2?  
> > > With Axis1, it
> > was
> > > quite easy to get a complex result back into a Java Bean (thanks to code 
> > > generation
> > > tool).  I am getting a bit nervous because It looks to me like the only 
> > > thing I am
> > > dealing with is OMElements where I will have to write my own logic to 
> > > extract a
> > complex
> > > result into a Java Bean.
> > 
> > You can do this now by using the XMLBeans data binding, and we are 
> > currently working on a simple built-in databinding framework as well 
> > (should be ready for testing in a week or two).  See the wsdl module and 
> > the codegen module for details, there are also examples in the 
> > samples/tests.
> > 
> > # java org.apache.axis2.wsdl.WSDL2Java -uri <wsdlFile> -o <outputDir> -d 
> > xmlbeans
> > 
> > --Glen
> > 
> 
> 
> 
>               
> __________________________________ 
> Yahoo! Music Unlimited 
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/

Reply via email to