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>(CodeGenerationEngine.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>(WSDL20ToAxisServiceBuilder.java:95) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.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>(WSDL20ToAxisServiceBuilder.java:95) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.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-binding/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>(CodeGenerationEngine.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>(CodeGenerationEngine.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(WSDL11ToAxisServiceBuilder.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]