[ http://issues.apache.org/jira/browse/AXIS2-760?page=all ]

Arun Nagaraj updated AXIS2-760:
-------------------------------

    Attachment: MovieGridApp.wsdl

> AXIS2 generates un-compilable source with WSDL2Java - Looks like it refers to 
> old version of method signature in the generated code
> -----------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-760
>          URL: http://issues.apache.org/jira/browse/AXIS2-760
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>     Versions: 1.0
>  Environment: Windows XP
>     Reporter: Arun Nagaraj
>  Attachments: MovieGridApp.wsdl
>
> I am trying to compile and get the source code for both client and server for 
> last month from the day 1.0 is released.
> I am unsuccesful.
> I am using the following command in Microsoft DOS
> wsdl2java -uri MovieGridApp.wsdl -ss -sd -g -d xmlbeans -p 
> com.ibm.grid.moviegridapp
> I get the following code for "MovieGridAppStub.java"  and 
> "MovieGridAppMessageReceiverInOut.java" - which IBM Rational Application 
> Developer does not understand.
> -- in method 1->
> public org.apache.xmlbeans.XmlObject fromOM(
>             org.apache.axiom.om.OMElement param,
>             java.lang.Class type,
>             java.util.Map extraNamespaces){
>         try{
>         
>                 if (org.apache.axiom.om.OMElement.class.equals(type)){
>                 if (extraNamespaces!=null){
>                  return org.apache.axiom.om.OMElement.Factory.parse(
>                        param.getXMLStreamReaderWithoutCaching(),
>                        new 
> org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces(extraNamespaces));
>                 }else{
>                  return org.apache.axiom.om.OMElement.Factory.parse(
>                        param.getXMLStreamReaderWithoutCaching());
>                 }
>                 }
>             
>         }catch(java.lang.Exception e){
>         throw new RuntimeException("Data binding error",e);
>         }
>         return null;
>         }
> & 
> in method 2-->
> private  org.apache.axiom.om.OMElement  toOM(org.apache.axiom.om.OMElement 
> param, boolean optimizeContent){
>                 org.apache.axiom.om.impl.builder.StAXOMBuilder builder = new 
> org.apache.axiom.om.impl.builder.StAXOMBuilder
>                 (org.apache.axiom.om.OMAbstractFactory.getOMFactory(),new 
> org.apache.axis2.util.StreamWrapper(param.newXMLStreamReader())) ;
>                  org.apache.axiom.om.OMElement documentElement = 
> builder.getDocumentElement();
>                   
> ((org.apache.axiom.om.impl.OMNodeEx)documentElement).setParent(null);
>                   return documentElement;
>                 }
> BOTH THE CASE in Method 1, refer to 
> "org.apache.axiom.om.OMElement.Factory.parse",  in OMElement does not have 
> Factory and parse method.
> IN THE CASE of method 2, refer to newXMLStreamReader(), which does not exists.
> I herewith attaching the WSDL file -moviegridapp.wsdl.
> Some has answered for BUG # 649, asking us to download the latest code, 
> however, the latest downloaded on 21 May 2006 @ 4PM does not work as well.
> If anyone has cracked the bug, please let me know where I am going wrong or 
> how to correct the mistake.
> Regards
> Arun

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to