"urn:" is a valid scheme for a URI. Please open a JIRA.
(Is this error in Woden or in Axis2?)

On 2/15/07, Yadav, Yogendra (IT) <[EMAIL PROTECTED]> wrote:
Anne,
Thank you, that was the problem. I had namespace defined as
        xmlns:tns="urn:xsd.jaxb.service"
        targetNamespace="urn:xsd.jaxb.service"
I changed it to
        xmlns:tns="http://xsd.jaxb.service";
        targetNamespace="http://xsd.jaxb.service";

Does "urn" has to be one of the concrete protocols ? Can't it be "urn" ?

Appreciate the response.
-yogen



-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 9:27 PM
To: [email protected]
Subject: Re: WSDL2Java error generating WSDL 2.0 / 2.1

Do you have a URI in your WSDL called "XSDService.wsdl"? Perhaps you're
using it for a namespace URI? As the error indicates, this is a
malformed URI. A URI must begin with a protocol scheme, such as urn:,
http: mailto:, ftp:, etc.

Anne

On 2/14/07, Yadav, Yogendra (IT) <[EMAIL PROTECTED]>
wrote:
>
>
>
> Hi,
> I get error when try to generate v2.0 or v2.1 WSDL. Am I doing
> something wrong ?
>
> >wsdl2java -wv 2.0 -d none -p com.xsd.input -ss -sd -g -uri
> >XSDService.wsdl
> -pn XSDNODBServicePortType
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> Error parsing WSDL
>         at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:116)
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: WSDLException: faultCode=PARSER_ERROR: Could not create a
> URL from context URI "null" and location URI "XSDService.wsdl".: no
> protocol
> : XSDService.wsdl: java.net.MalformedURLException: no protocol:
> XSDService.wsdl
>         at java.net.URL.<init>(URL.java:567)
>         at java.net.URL.<init>(URL.java:464)
>         at
> org.apache.woden.internal.util.StringUtils.getURL(Unknown
> Source)
>         at
> org.apache.woden.internal.DOMWSDLReader.readWSDL(Unknown
> Source)
>         at
>
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(WSDL20ToA
xisServiceBuilder.java:95)
>         at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:90)
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>
>         at
> org.apache.woden.internal.DOMWSDLReader.readWSDL(Unknown
> Source)
>         at
>
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>(WSDL20ToA
xisServiceBuilder.java:95)
>         at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:90)
>         ... 2 more
>
>
> >wsdl2java -wv 2.1 -d none -p com.xsd.input -ss -sd -g -uri
> >XSDService.wsdl
> -pn XSDNODBServicePortType
> Retrieving schema at 'purchaseorder.xsd', relative to
>
'file:/C:/work/AXIS2-Examples/document-oriented-service/xsd-based/no-bin
ding/tmp/'.
> Feb 14, 2007 7:02:43 PM
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder
> populateService
> SEVERE: org.apache.axis2.AxisFault: No port found for the given name
> :XSDNODBServicePortType Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> Error parsing WSDL
>         at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:112)
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: No port found for the given
> name :XSDNODBServicePortType; nested exception is:
>         org.apache.axis2.AxisFault: No port found for the given name
> :XSDNODBServicePortType
>         at
>
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:250)
>         at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:103)
>         ... 2 more
> Caused by: org.apache.axis2.AxisFault: No port found for the given
> name :XSDNODBServicePortType
>         at
>
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL
11ToAxisServiceBuilder.java:344)
>         at
>
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:200)
>         ... 3 more
>
> thanx
> -yogen
>
>  ________________________________
>
>
> NOTICE: If received in error, please destroy and notify sender. Sender

> does not intend to waive confidentiality or privilege. Use of this
> email is prohibited when received in error.
>

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

NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.

---------------------------------------------------------------------
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]

Reply via email to