[Mono-bugs] [Bug 586313] New: wsdl.exe fails if WSDL contains two schemas refering each others

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 8 11:58:33 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=586313

http://bugzilla.novell.com/show_bug.cgi?id=586313#c0


           Summary: wsdl.exe fails if WSDL contains two schemas refering
                    each others
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web.Services
        AssignedTo: atsushi at ximian.com
        ReportedBy: Felix_Hossfeld at web.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de;
rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8

Trying to parse an WSDL which has schema definitions for two different
namespaces - the first importing the second one, roughly looking like this
(left out proper namespace declarations - btw: sorry, can't post the original
due to NDA):

 <wsdl:types>
    <schema targetNamespace="http://my.company.com">
   <complexType name="MyType">
..
   </complexType>
   </schema>
    <schema targetNamespace="http://our.company.com">
   <complexType name="OurType">
     <elemnt name="mine" type="my:MyType" />
   </complexType>
..
   </complexType>
   </schema>
</wsdl:types>

JAX-WS generates working stubs after a warning that my:MyType cannot be
resolved. wsdl.exe fails with the following stacktrace:

Web Services Description Language Utility
Mono Framework v2.0.50727.1433
Error: Cannot cast from source type to destination type.
Stack:
   at System.Web.Services.Description.BasicProfileChecker.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.BindingCollection value) [0x00000] in <filename
unknown>:0 
  at System.Web.Services.Description.WebServicesInteroperability.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.ConformanceChecker checker,
System.Web.Services.Description.ServiceDescription sd) [0x00000] in <filename
unknown>:0 
  at System.Web.Services.Description.WebServicesInteroperability.Check
(WsiProfiles claims, System.Web.Services.Description.ConformanceCheckContext
ctx, IEnumerable documents) [0x00000] in <filename unknown>:0 
  at
System.Web.Services.Description.WebServicesInteroperability.CheckConformance
(WsiProfiles claims, System.Web.Services.Description.WebReference webReference,
System.Web.Services.Description.BasicProfileViolationCollection violations)
[0x00000] in <filename unknown>:0 
  at Mono.WebServices.Driver.GenerateCode
(System.Web.Services.Description.WebReferenceCollection references,
System.CodeDom.CodeCompileUnit codeUnit) [0x00000] in <filename unknown>:0 
  at Mono.WebServices.Driver.Run (System.String[] args) [0x00000] in <filename
unknown>:0 



Reproducible: Always

Steps to Reproduce:
1. Create a web service that uses two namespace the first importing the second.
2. Use wsdl.exe to generate stubs
3. Enjoy!
Actual Results:  
Exception

Expected Results:  
Sould work,

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list