Thanks Keith. Fixed.

Lawrence





"keith chapman" <[EMAIL PROTECTED]> 
03/11/2008 12:49 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: Fwd: [Axis2Java] WSDL 2 - targetNamespace problem






Created a jira with the details.

https://issues.apache.org/jira/browse/WODEN-201

Thanks,
Keith.

On Mon, Mar 10, 2008 at 8:45 PM, Lawrence Mandel <[EMAIL PROTECTED]> 
wrote:
Hi Keith,

We've been working on a new validation framework and this issue looks to
be a part of that. Care to open a Jira with the details?

Lawrence





"keith chapman" <[EMAIL PROTECTED]>
03/10/2008 10:01 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Fwd: [Axis2Java] WSDL 2 - targetNamespace problem






Hi Guys,

Can you have a look at this please. Looks like a Woden Change caused this.

Thanks,
Keith.

---------- Forwarded message ----------
From: Daniel Barta <[EMAIL PROTECTED]>
Date: Mon, Mar 10, 2008 at 6:02 PM
Subject: [Axis2Java] WSDL 2 - targetNamespace problem
To: [EMAIL PROTECTED]


Hi,

We found a problem using a wsdl2java tool with WSDL v.2 files.

Last month we were able to generate stub/client Java code without
problems.

<wsdl:description
  xmlns:wsdl="http://www.w3.org/ns/wsdl";
  targetNamespace="urn:wsdlSamples"
  xmlns:tns="urn:wsdlSamples"
  xmlns:dtns="urn:wsdlSamplesData"
  xmlns:wsoap= "http://www.w3.org/ns/wsdl/soap";>
....

But with the latest revision from SVN (#635534) we received the following
error:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
      at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:166)
      at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
      at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: WSDLException: faultCode=OTHER_ERROR: Fatal error.: unknown
protocol: urn: java.net.MalformedURLException: unknown protocol: urn
      at java.net.URL.<init>(URL.java:574)
      at java.net.URL.<init>(URL.java:464)
      at java.net.URL.<init>(URL.java:413)
      at java.net.URI.toURL(URI.java:1081)
      at
org.apache.woden.internal.wsdl20.assertions.Description1001.validate(Description1001.java:27)
      at
org.apache.woden.internal.wsdl20.validation.WSDLValidator.checkAssertions(WSDLValidator.java:109)
...

After the following modification the generating of stub/client passed.

<wsdl:description
  xmlns:wsdl="http://www.w3.org/ns/wsdl";
  targetNamespace="http://127.0.0.1/wsdlSamples/all.wsdl";
  xmlns:tns="http://127.0.0.1/wsdlSamples/all.wsdl";
  xmlns:dtns="urn:wsdlSamplesData"
  xmlns:wsoap= "http://www.w3.org/ns/wsdl/soap";>
...

Is it a problem of Description1001.validate() method ?

Thanks,
Daniel


Scanned by ClamAV at protys.cz.

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




--
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


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




-- 
Keith Chapman
Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org 


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

Reply via email to