Good Monring

In 1.3 the name of the code generator is WSDL2Java
Here is the example I use

java -classpath $CLASSPATH. org.apache.axis.wsdl.WSDL2Java NameOfService.wsdl

Martin --

*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Paul Gonchar" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, May 25, 2006 6:47 PM
Subject: Problem with code generated by WSDL2Code


> Hi guys,
> I've just started using Axis2. I need to generate
> server skeletons. I used the following command:
> 
> call WSDL2Code.bat -uri
> C:\project\cvs\gazoo\src\share\xml\webservice\userprofile\ver2.0\userProfile.wsdl
> -ss -sd -d adb -p com.test.generated -o output/server
> 
> and I got a bunch of generated code that can't be
> compiled. I've noticed things like calls to
> org.apache.axis2.databinding.utils.ConverterUtil.convertToToken(content)
> (there is no method convertToToken in ConverterUtil)
> which may be fixed by replacing convertToToken with
> convertTotoken
> 
> The same thing with 
> 
> org.apache.axis2.databinding.utils.ConverterUtil.convertToCalendar(content)
> -> must be replaced with convertTodateTime
> 
> Finally I got into problem I can't fix :
> 
> 
>    private  java.lang.Object 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)){   
>        
>                return
> org.apache.axiom.om.OMElement.Factory.parse(param.getXMLStreamReaderWithoutCaching());
>            }
> 
>        } catch (Exception e) {
>            throw new RuntimeException(e);
>        }
> 
>        return null;
>    }
> 
> 
> The problem is in line
> org.apache.axiom.om.OMElement.Factory - there is no
> variable Factory in class  OMElement.
> 
> 
> Am i doing something wrong or Axis2 is indeed that
> buggy?
> 
> 
> Thanks!
> Paul Gonchar
> 
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to