Hi Thomos,

Here is the original WSDL file which I am using to generate client side
code. And all other import schema are on the same location.



Thanks,
Amit Sini

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 21, 2006 7:12 PM
To: [email protected]
Subject: Re: axis2 wsdl error

Amit,

The error that you posted first clearly indicates that you tried to
run WSDL2Code on a file that was not a WSDL file. Therefore I must
assume that you submitted the XSD file instead of the WSDL file. If
you ran WSDL2Code on the WSDL you posted, you would get a different
set of errors. Your WSDL is invalid. For example, you mis-defined the
"tns" namespace declaration. The targetNamespace is
"http://xxx/xxx/v1";, and the "tns" namespace is "http://xxxx/xxxx/xx";.
Please correct the errors in your WSDL and try it again.

Anne

On 12/21/06, Amit G Soni <[EMAIL PROTECTED]> wrote:
> Hi Thomos,
>
> Sorry for the typo error. The command is
>
> c:\Java\axis2-1.0\bin\WSDL2Code.bat -uri CardholderService.wsdl -o src
>
> But using this command also it gives the same error.
>
> Thanks,
> Amit Soni
>
> -----Original Message-----
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 20, 2006 11:43 PM
> To: [email protected]
> Subject: Re: axis2 wsdl error
>
> Your command specifies "CardholderData.xsd" rather than
> "CardholderData.wsdl". Please make sure you specify the WSDL file
> rather than the schema.
>
> Anne
>
> On 12/20/06, Amit G Soni <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > HI list
> >
> >
> >
> > I am using wsdl2java tool of axis. But when I am giving the
following
> > command then it gives me some error
> >
> >
> >
> > c:\Java\axis2-1.0\bin\WSDL2Code.bat -uri CardholderData.xsd -o src
> >
> >
> >
> > After giving this command it gives me following error
> >
> >
> >
> > Using AXIS2_HOME:   C:\Java\axis2-1.0
> >
> > Using JAVA_HOME:    C:\Java\j2sdk1.4.2_13
> >
> > log4j:WARN No appenders could be found for logger
> > (org.apache.axis2.i18n.ProjectResourceBundle).
> >
> > log4j:WARN Please initialize the log4j system properly.
> >
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > Error parsing WSDL
> >
> >         at
> >
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> Engine.java:96)
> >
> >         at
> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> >
> > Caused by: WSDLException (at /xs:schema): faultCode=INVALID_WSDL:
> Expected
> > element '{http://schemas.xmlsoap.org/wsdl/}definitio
> >
> > s'.:
> >
> >         at
> > com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> > Source)
> >
> >         at
> > com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > Source)
> >
> >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> > Source)
> >
> >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> > Source)
> >
> >         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> > Source)
> >
> >         at
> >
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Cod
> eGenerationEngine.java:238)
> >
> >         at
> >
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> Engine.java:81)
> >
> >
> >
> > I am attaching the wsdl file also along with this mail.
> >
> >
> >
> > This wsdl file has imported three xsd files but all the xsd files
are
> also
> > on the same location as the wsdl.
> >
> >
> >
> > So if any one of you have some solution for this then please help me
> out.
> >
> >
> >
> > Thanks,
> >
> > Amit Soni
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Attachment: CardholderService.wsdl
Description: CardholderService.wsdl

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

Reply via email to