473,395 Members | 1,422 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,395 software developers and data experts.

[C#-WebService] Manipulating wsdl generation

1
Hi,

I have created web service, it's practically finished, but I wanted to do some improvements in generated wsdl:

- For string parameters i get element tag such as this in wsdl:
<s:element minOccurs="0" maxOccurs="1" name="xml" type="s:string"/>

1.) For some of those parameters i want to make it mandatory, changing minOccurs to 1:
<s:element minOccurs="1" maxOccurs="1" name="xml" type="s:string"/>

2.) In case of other string parameter I wanted to keep it optional, but set some default value:
<s:element minOccurs="0" maxOccurs="1" default="defaultValue" name="xml" type="s:string"/>

3.) Set max length of string, but from what i've found on this forum it seems it's not possible

- For int parameter i got such tag:
<s:element minOccurs="1" maxOccurs="1" name="size" type="s:int"/>

4.) Here I wanted to do change in opposite way -- make this parameter optional, and additionally set default value:
<s:element minOccurs="0" maxOccurs="1" default=10 name="size" type="s:int"/>

My question is can I do such modifications in web service code (such as it's possible to set e.g. methods, parameters names and types using classes from System.Xml.Serialization), or I have to do those changes in wsdl definition by hand, and use custom wsdl for web service. System.Xml.Serialization namespace is the only thing that I found that enables any wsdl modifications from web service code, but it doesn't seem allow to modify what i need.

I would be grateful for any reply.
Regards,
Lehu
Mar 6 '08 #1
0 1689

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mullin Yu | last post by:
i just know that i can write the struct at c#, and then asp.net will automatically generate the wsdl, but there're some limitations e.g. can't write the soap header, can't show all the structures...
0
by: Suresh Pasala | last post by:
Hello All, Iam using the ServiceDescription class and writing a wsdl file. Currently the way wsdl is generated is as follows. <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"...
1
by: holder25 | last post by:
Folks, I am trying to run the wsdl.exe tool to generate a server stub for the UDDI wsdl spec file at : http://www.oasis-open.org/committees/uddi-spec/doc/tcspecs.htm#uddiv2 When I run it I get...
4
by: Henrik Gøttig | last post by:
Hi all Feeling a bit frustrated here. Maybe I did not find the correct info yet, that's why I am asking you. I have "developed" a .NET 2.0 WebService and generated (using wsdl.exe) the WSDL...
2
by: Ido Flatow | last post by:
Hi all, I've been exploring the way I can manipulate WSDL.exe using SchemaImporterExtension in order to create a proxy to my liking. My situation is as follows - I have a web site that has...
0
by: Kevin Burton | last post by:
I searched some of the documentation and this description of my problem came closest: The following original schema element definitions contain minOccurs or maxOccurs attributes: <xs:element...
0
by: Albert Greinöcker | last post by:
Hi there, I have a very general question about .NET remoting using SOAP: is there any way to influence WSDL generation (like setting a different target-namespace, or which classes (e.g. custom...
13
by: ScottM | last post by:
I have run into a problem generating the class file via the WSDL utility. I have a WSDL file that was generated by XMLSpy and is able to be read by the Java code utility, but I get the following...
3
by: John K | last post by:
I am trying to eliminate the capability of displaying the details of a web service by disabling WSDL generation in the web.config file. I have made the following changes to the web.config: ...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.