[
https://issues.apache.org/jira/browse/AXIS2-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548422
]
Daniel Hiebert commented on AXIS2-3301:
---------------------------------------
The above failing WSDL, although apparently working in eclipse's web services
explorer generates the following warnings when it first attempts to load the
Axis 1.3 WSDL.
IWAB0380E Errors were encountered while validating XML schemas.
XSD: Type reference 'http://converttemp.wsbeans.iseries/xsd#CONVERTTEMPInput'
is unresolved
XSD: Type reference 'http://converttemp.wsbeans.iseries/xsd#CONVERTTEMPResult'
is unresolved
XSD: Type reference 'http://converttemp.wsbeans.iseries/xsd#CONVERTTEMPInput'
is unresolved
IWAB0381I http://lp01ut10.rchland.ibm.com:10070/web/services/ConvertTemp?wsdl
was successfully opened.
This appears to be directly related to the regression from Axis 1.1 going up to
1.3.
> Generated WSDL has validation errors when methods launch exceptions
> -------------------------------------------------------------------
>
> Key: AXIS2-3301
> URL: https://issues.apache.org/jira/browse/AXIS2-3301
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Tools
> Affects Versions: 1.3
> Reporter: Mauro Molinari
> Assignee: Deepal Jayasinghe
> Priority: Critical
> Attachments: ConvertTempAxis2 1.1.wsdl, ConvertTempFailing1.3.wsdl,
> src.zip, wsdl.zip
>
>
> Suppose you have the following class:
> package test;
> public class TestService
> {
> public String login(String username, String password) throws MyException,
> MyException2
> {
> return "ticket";
> }
>
> public void logout(String ticket) throws MyException, MyException2
> {
> }
> }
> and two simple extensions of java.lang.Exception called test.MyException and
> test.MyException2.
> When running java2wsdl with the following options:
> java2wsdl -o <output-path> -of TestService.wsdl -cp <classpah> -cn
> test.TestService
> I get a WSDL (attached as TestService.wsdl) for which Eclipse gives two
> validation errors:
> src-resolve.4.2: Error resolving component 'ns1:Exception'. It was detected
> that 'ns1:Exception' is in namespace 'http://test', but components from this
> namespace are not referenceable from schema document
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService.wsdl'.
> If this is the incorrect namespace, perhaps the prefix of 'ns1:Exception'
> needs to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService.wsdl'.
> TestService.wsdl line 4
> src-resolve.4.2: Error resolving component 'ns0:MyException'. It was detected
> that 'ns0:MyException' is in namespace 'http://test/xsd', but components from
> this namespace are not referenceable from schema document
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService.wsdl'.
> If this is the incorrect namespace, perhaps the prefix of 'ns0:MyException'
> needs to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService.wsdl'.
> TestService.wsdl line 8
> As suggested by some users in Eclipse WTP newsgroup, I tried the following:
> java2wsdl -o <output-path> -of TestService_Exception.wsdl -cp <classpah> -xc
> java.lang.Exception -cn test.TestService
> The result is a WSDL (attached as TestService_Exception.wsdl) for which
> Eclipse gives three validation errors:
> src-resolve.4.2: Error resolving component 'ns1:Exception'. It was detected
> that 'ns1:Exception' is in namespace 'http://test', but components from this
> namespace are not referenceable from schema document
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService_Exception.wsdl'.
> If this is the incorrect namespace, perhaps the prefix of 'ns1:Exception'
> needs to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService_Exception.wsdl'.
> TestService_Exception.wsdl line 4
> src-resolve.4.2: Error resolving component 'xs:Throwable'. It was detected
> that 'xs:Throwable' is in namespace 'http://www.w3.org/2001/XMLSchema', but
> components from this namespace are not referenceable from schema document
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService_Exception.wsdl'.
> If this is the incorrect namespace, perhaps the prefix of 'xs:Throwable'
> needs to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService_Exception.wsdl'.
> TestService_Exception.wsdl line 4
> src-resolve.4.2: Error resolving component 'ns0:MyException'. It was detected
> that 'ns0:MyException' is in namespace 'http://test/xsd', but components from
> this namespace are not referenceable from schema document
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService_Exception.wsdl'.
> If this is the incorrect namespace, perhaps the prefix of 'ns0:MyException'
> needs to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:///C:/Documents%20and%20Settings/mauro/Documenti/Eclipse33%20workspace/Problema%20Axis2/TestService_Exception.wsdl'.
> TestService_Exception.wsdl line 8
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]