none
Validation Error while running svcutil RRS feed

  • Question

  • Hi,

    When I try running the following command I get loads of validation errors even though the I get the file generated and am able to use it. When I used to generate the proxy using WSDL.exe, I never got those errors. What I understand is this has something to do with sharing of common types. Is there any way to suppress those errors, something like the /sharetypes  flag in WSDL.exe? I have tried out all I can think of and basically reached no where!

    svcutil.exe /s /ct:System.Collections.Generic.List`1 /ser:Auto /tcv:Version35 /n:*,SWSInterfaceEntities.Proxy /edb /a /l:C# /config:C:\SWSProxy.config /o:C:\SWSProxy.cs http://webservices.sabre.com/wsdl/sabreXML1.0.00/usg/SessionCreateRQ.wsdl

    This is the list of errors,

    Error: There was a validation error on a schema generated during export:

        Source:

        Line: 2 Column: 3

       Validation Error: The global attribute 'http://www.w3.org/XML/1998/namespace:lang' has already been declared. 

     

    Error: There was a validation error on a schema generated during export:

        Source:

        Line: 3 Column: 3

       Validation Error: The global attribute 'http://www.w3.org/XML/1998/namespace:space' has already been declared. 

     

    Error: There was a validation error on a schema generated during export:

        Source:

        Line: 11 Column: 3

       Validation Error: The global attribute 'http://www.w3.org/XML/1998/namespace:base' has already been declared. 

     

    Error: There was a validation error on a schema generated during export:

        Source:

        Line: 13 Column: 3

       Validation Error: The attributeGroup 'http://www.w3.org/XML/1998/namespace:specialAttrs' has already been declared.


    Monday, March 18, 2013 1:28 PM

Answers