Taking control of WSDL/XSD from WCF-SVCUtil (Annotations, Schema Namespaces, and Schema Locations) -


There are some problems in the WSDL generated from the WCD service, which I would like to control one and a little more. First of all, is there no way to add comments to XSD files generated from XPDL?

    I have taken care to add annotation to the following articles for the following articles:
    • I used to write data through aggregate Was able to add annotation to, although he used the surrogates that I did not want to use.
      • I will use Thoranin's solution, besides, I do not want to apply annotation to data members

        • Secondly, I want to name namespaces for obvious xsd files generated from WSDL. I was able to take control of wsdl namespace using ServiceBehaviorAttribute: [ServiceBehavior (namespace = "http://mysite.com/HelloWorld")]
          but unfortunately I can not Find an easy way to specify namespace of XSD files :(, is there a simpler way to do this / can you point me in the right direction?

          -itit-

          Okay, I'm stupid on the second request. I have my WCF files I forgot to set the namespace, which is the map of XSD namespace i evil :)


          Finally, when Wsdl imports an XSD, this http: // localhost: 8080 / HostDevServer / HelloWorldService.svc? Uses the same path as Xsd = xsd0
          , which begins to break the wsdl2java ant script by apache. I can manually convert them into local files, but this is just so painful :) There is no way to create the file and after that there is a local reference: HelloWaldService Xsd , HelloWorldService1.xsd etc?

          Any feedback appreciated.

          WCFExtras ftw:

          I have decided that instead of myself Attributes and classes put documentation / annotation in WSDL and XSD files, I will just give in the promotion and take care of WCFclass. It is being said that I want the XML comment to be split into different lines instead of having them all on the same line. (Just to make XML files easier) Plus WCFExtras takes care of the problem of fully rented !!

          To solve the third issue ended writing a program, it grabs a lot of metadata files using svcutil, then goes and finds all the imports, and downloads them based on namespaces. Sends the files again.

Comments