wsdl.exe Error: Unable to import binding '…' from namespace '…'

前端 未结 6 1881
闹比i
闹比i 2020-12-13 19:21

When running wsdl.exe on a WSDL I created, I get this error:

Error: Unable to import binding \'SomeBinding\' from namespace \'SomeNS\'.

  • Unab
6条回答
  •  有刺的猬
    2020-12-13 19:42

    In case someone hits this wall, here is what caused the error in my case:

    I have an operation:

    
      Runs a report, which is returned as the response
      
      
    
    

    which takes an input:

    
      
    
    

    and another operation:

    
      Creates and submits an Async Report Job to be executed asynchronously by the Async Report Windows Service.
      
      
    
    

    taking an input:

      
        
      
    

    And the input elements are instances of two types:

    
    
    

    Here is the catch - the reporting:FormatReportAsyncInputType type extends (derives from) the reporting:FormatReportInputType type. That's what seems to confuse the tool and cause the "These members may not be derived." error. You can go around that following teh suggestion in the accepted answer.

提交回复
热议问题