473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Web service XMLSerializer WSDL parameter descriptions

Hi
Is it possible to decorate web service parameters with attributes that can add documentation elements to the complex type for a web method in WSDL, something similar to what the WebMethodAttribute provides for the method itself.
For something lik

[XmlRootAttribute("p")
public sealed class Poin

[XmlElementAttribute("x")] public int XCoOrdinate
[XmlElementAttribute("y")] public int YCoOrdinate
[WebMethodAttribute(Description="Do some work")
public void DoWork(Point input

.....
Is there anyway to include a similar description for the point parameters XCoOrdinate and YCoOridinate members that would just appear in the WSDL but would not obviously appear in the SOAP payload ?
The above example is pretty trivial but illustrates what I'm enquiring about, I would prefer to use attributes rather than going down the root of manually writing the WSDL or going as far as WSE

Thanks in advanc
Pa

Nov 12 '05 #1
1 4315
PMCG,

No, there is not. Maybe it's in part because there is no "good place" to put
such descriptions. The point class results in a schema type in the WSDL and
unlike all the WSDL types [0] , arbitrary schema types don't include a
definition for standard documention element. One could argue that a tool
could generate XML schema annotation elements such as

<complexType name="pointType">
<sequence>
<element name="x" type="integer"><annotation><documentation>This is an X
coordinate. It's perpendicular to the Y
coordinate</documentation></annotation></element>
</sequence>
</complexType>

But that maybe that was deemed to be too verbose.

The best place would be to create a <documentation> element inside the
message definitions. Unfortunately, there is nothing that explicitly allows
customization of the generated WSDL <message> element.

If you really wanted that functionality you would have to customize the
ASP.NET WSDL generation to look for custom attributes.
--
HTH
Christoph Schittko [MVP, XmlInsider]
Software Architect, .NET Mentor

[0] http://www.w3.org/TR/wsdl#_documentation

"PMCG" <an*******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
Hi,
Is it possible to decorate web service parameters with attributes that can add documentation elements to the complex type for a web method in WSDL,
something similar to what the WebMethodAttribute provides for the method
itself. For something like

[XmlRootAttribute("p")]
public sealed class Point
{
[XmlElementAttribute("x")] public int XCoOrdinate;
[XmlElementAttribute("y")] public int YCoOrdinate;
}

[WebMethodAttribute(Description="Do some work")]
public void DoWork(Point input)
{
......
}

Is there anyway to include a similar description for the point parameters XCoOrdinate and YCoOridinate members that would just appear in the WSDL but
would not obviously appear in the SOAP payload ? The above example is pretty trivial but illustrates what I'm enquiring about, I would prefer to use attributes rather than going down the root of
manually writing the WSDL or going as far as WSE.
Thanks in advance
Pat

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: raymond | last post by:
Hi, Is it possible to create a proxy client class or a web service method by VS.NET without using wsdl? My stupid client is using a xml schema (.xsd) to describe all their web service methods...
0
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem...
3
by: Jerome Cohen | last post by:
AI am trying to call a third-party web service. this service expects an XML fragment that contains the request plus other parameter. adding the web reference created the syntax below(reference.vb)....
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
4
by: Steven.Dahlin | last post by:
My C# Winform WebService client is attempting to access data from a Web Service written in Java and running on an Oracle App Server 10.3. I have a TCP/IP monitor running and have verified that...
1
by: Vaibhav Modak | last post by:
Hi All, I have a Web Service written in Java (Web Logic) and I am trying to call it in my ASP. NET client. I am facing a problem while getting the data from the Web Service Method. My Web...
3
by: CJF | last post by:
Is there a way to build a web service from an existing wsdl? I do not wish to create a .Net web service client proxy from a wsdl, but an actual web service. I tried using the wsdl.exe utility, but...
3
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object...
0
by: theonlydavewilliams | last post by:
Hi there I'm hoping there's an easy answer to a (hopefully) not too long-winded issue... I'm building a C# web client using a proxy wsdl.exe'd from a wsdl file and six schemas, each in a different...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.