Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > .NET should move documentation from the WSDL to the generated code

Reply
Thread Tools

.NET should move documentation from the WSDL to the generated code

 
 
Sebastien Tardif
Guest
Posts: n/a
 
      11-12-2004
When I have a WSDL that is documented like:
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited by Sebastien Tardif (Anacomp) -->
<wsdl:definitions xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" ...
<complexType name="Credential">
<xsd:annotation>
<xsd:documentation xml:lang="en">Holds username and password for
authentication.</xsd:documentation>
</xsd:annotation>
<sequence>
<element name="username" nillable="false" type="xsd:string"/>
...

The class Credential generated should have for comment what is inside
document. Right now I just see warning message like:
// CODEGEN: The optional WSDL extension element 'annotation' from namespace
'http://www.w3.org/2001/XMLSchema' was not handled.
 
Reply With Quote
 
 
 
 
Kevin Yu [MSFT]
Guest
Posts: n/a
 
      11-13-2004
Hi

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      11-15-2004
Hi ,

Thanks for your posting. Regarding on the problem you mentioned, I 've also
done the test and do find the problem you mentioned. I think this is due to
the wsdl.exe generate tool is omitting these annotation elements when
parsing the wsdl document. Also, seems most of the webservice client proxy
generation tools haven't provide a strong enough mechanism for generating
webservice comments in client proxy's code. Anyway, I'll also pass this
message to the dev team to see whether there is any other approachs or new
action plan on such functionality. I'll let you know if I got any new
updates. Thanks for your understanding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      11-18-2004
Hi Sebastien,

After some further consulting, it seems that Out source code generation
tools (xsd.exe, wsdl.exe) do not process the annotations in schema or wsdl
documents.
We can use WebMethod and WebService attribute Description property to add
documentation elements to wsdl, but those tools still won't process them
when generating proxy code.
Thanks.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


 
Reply With Quote
 
AndyMalakov
Guest
Posts: n/a
 
      12-16-2004
Hi Steven,

It would be useful to see WSDL/XSD documentation propagated to
generated proxies and data objects. In our case we have large number
of XSD types defined and documented in WSDL, and stripping
documentation from generated files will require all our .NET clients to
learn WSDL/XSD.

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      12-17-2004
Thanks for your feedback Andy,

I'll also forward such requirement to our webservice guys. Hope the
tools'll become more and more powerful.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
webservices, wsdl & xsd (schema-2-wsdl) Dark Java 1 11-14-2008 07:58 PM
Turn off Auto Generated WSDL, so I can use my static custom wsdl casucci@gmail.com ASP .Net Web Services 3 10-07-2008 06:38 PM
how to use WSDL,exe generated code? jackhandy30@gmail.com ASP .Net Web Services 1 10-06-2006 09:33 PM
wsdl.exe fails with WebMethods generated wsdl file mrnu ASP .Net Web Services 0 06-07-2004 04:51 PM
is the w3c's schema for wsdl and wsdl/soap binding possibly buggy ? _clb_ Chris Bedford XML 0 08-20-2003 11:52 PM



Advertisments