axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yadav, Yogendra \(IT\)" <Yogendra.Ya...@morganstanley.com>
Subject RE: WSDL2Java error generating WSDL 2.0 / 2.1
Date Thu, 15 Feb 2007 17:39:49 GMT
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:atmanes@gmail.com] 
Sent: Wednesday, February 14, 2007 9:27 PM
To: axis-user@ws.apache.org
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) <Yogendra.Yadav@morganstanley.com>
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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--------------------------------------------------------

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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message