Delphi 2010 locking and then closing while importing WCF wsdl
I'm trying to import a wsdl for a web service developed on WCF 4. It's hosted on AppFabric, and it has a basicHttpEndpoint binding.
When try to import it, Delphi locks up, and bds.exe's memory consumption starts to go up... it goes from 100 MB to 700 MB. After about 15 seconds, Delphi just implodes, closing itself. There is no error message. Why is this happening? How can I see what's wrong? I've been able to import WCF 4 wsdl from the same server, with the same bindings, and use them, so I'm kinna 开发者_开发技巧stuck. TksTry the command-line importer. It may show you errors. And there are LOTS of options to play with.
c:\path-to\WSDLImp.exe -Ow+ -Od+ -DC:\path-to-output-dir\ path-to\my.wsdl
Those options (-O with either a + or - to turn on/off) are things that work for me. YMMV. Also, there's a DelphiXE WSDL importer that you can use.
Make sure that the WSDL is valid by consuming with SoapUI first. If it won't propertly consume (and make reasonable-looking default requests0 with SoapUI, the WSDL is busted and you should return it for store credit. (tell the other developer that his WSDL won't consume with SoapUI, so you're done until he fixes it).
精彩评论