You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Werner Dittmann (JIRA)" <ji...@apache.org> on 2008/04/08 14:27:25 UTC

[jira] Commented: (AXIS2-3717) WSDL2Java fails for WSDL that work for Axis2 1.3

    [ https://issues.apache.org/jira/browse/AXIS2-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586772#action_12586772 ] 

Werner Dittmann commented on AXIS2-3717:
----------------------------------------

Just some questions / comments about "dereferencing" namespaces. I don't understand why woden tries to access or dereference namespaces. This causes a lot of trouble on systems that are not online, also some problems during deployment of services: Axis2 tries to access (dereference) namespaces during service deployment, which often leads to timeouts if the document does not exist.

According to W3C Namespace specification (Namespaces in XML 1.0 (Second Edition), dated 16 August 2006) namespace names are not meant to be "derefrenceable", they are just a string of characters that define an IRI.

Here a quote from the Namespace spec, chapter 3:
<quote>
The attribute's normalized value MUST be either a URI reference — the namespace name identifying the namespace — or an empty string. The namespace name, to serve its intended purpose, SHOULD have the characteristics of uniqueness and persistence. It is not a goal that it be directly usable for retrieval of a schema (if any exists). Uniform Resource Names [RFC2141] is an example of a syntax that is designed with these goals in mind. However, it should be noted that ordinary URLs can be managed in such a way as to achieve these same goals
</quote>


> WSDL2Java fails for WSDL that work for Axis2 1.3
> ------------------------------------------------
>
>                 Key: AXIS2-3717
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3717
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: Java 1.6, Windows
>            Reporter: Werner Dittmann
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: ca-interface.wsdl, ca-types.xsd
>
>
> using Axis2 1.4 RC4 WSDL2Java fails for WSDL files that work for Axis2 1.3 and without any complaints. Using "urn:" naming scheme. Also fails when using http: naming scheme and the document is not referencable (the later used to work in RC3).
> For the WSDL files see attachment, command and error output in this message.
> For WSDL2java I use the follwing command:
> wsdl2java.sh -s -ssi -d adb -p caservice \
> 	     -t -wv 2.0 -o buildc -d adb \
> 	     -http-proxy-host proxy.emea.nsn-intra.net \
> 	     -http-proxy-port 81 \
> 	     -ns2p urn:schemas:caTypes=schemas.catypes \
> 	     -uri ca-interface.wsdl
> I got the following error messages:
>  Using AXIS2_HOME:   d:\devhome\axis2-1.4
>  Using JAVA_HOME:       d:\jdk1.6.0
> log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL20ToAxisServiceBuilder).
> log4j:WARN Please initialize the log4j system properly.
> Woden[Error],0:0,WSDL502,Could not create a URL from context URI "null" and location URI "null".
> Woden[Error],0:0,WSDL502,Could not create a URL from context URI "null" and location URI "null".
> Woden[Warning],0:0,Description-1001,The targetNamespace 'urn:caService' is not dereferencable.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault: Unable to find element {urn:schemas:caTypes}createPackageSubscription reffered to by operation createPackageSubscription
> 	at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.createAxisMessage(WSDL20ToAxisServiceBuilder.java:1112)
> 	at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOperations(WSDL20ToAxisServiceBuilder.java:1053)
> 	at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterface(WSDL20ToAxisServiceBuilder.java:956)
> 	at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:385)
> 	at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:273)
> 	at org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.populateAllServices(WSDL20ToAllAxisServicesBuilder.java:90)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:105)
> 	... 2 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org