473,505 Members | 13,925 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to chagne the mandatory type when automatcially generating WSDL in .net 1.1?

Fan
Hi, everyone

When I first set up a web service in .Net 1.1, seems .Net will
automatically build the WSDL file. And the element type of each field
in input and output has been automatically created. How can I change
some fields from mandatory to optional from the code, instead of
manually modifying the WSDL file?

Thank you very much.

Fan

Aug 8 '06 #1
1 1938
If you're on .NET 2.0 make them nullable types (e.g. Nullable<int>).

I'd be careful about changing your WSDL file. It can be done. Actually, I
create web services by first creating a WSDL file and then generating server
and client classes via WSDL.exe. But studio really, REALLY wants you to just
create the server class and then cllow the WSDL and client classes to be
auto-generated. So, if you want to take that approach you lose a lot of the
built-in features that are supplied by Visual Studio.

(even though you end up with a scrict interface...which is somehwat
important with enterprise apps...just my opinion)

"Fan" wrote:
Hi, everyone

When I first set up a web service in .Net 1.1, seems .Net will
automatically build the WSDL file. And the element type of each field
in input and output has been automatically created. How can I change
some fields from mandatory to optional from the code, instead of
manually modifying the WSDL file?

Thank you very much.

Fan

Aug 9 '06 #2

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

Similar topics

0
302
by: Softwaremaker | last post by:
I tried the tool...However, I think it was fairly difficult to use. Unless my config is wrong somewhat, everthing is a Passed. Any other tool you can recommend ? If not, do u know if the Service...
0
2735
by: Ollie | last post by:
I have defined a set of SOAP messages using an xsd file, each element in the xsd has the minoccurs, maxoccurs & nillable attributes defined when I then use xsd.exe to generation C# classes for...
1
18135
by: Marc | last post by:
Hi! I'm working with a C# client that calls a php web service. I've created a wrapper to call the service using .NET wsdl tool (adding a web reference). The call to the server works fine, it...
0
1764
by: Chris Fink | last post by:
When I am consuming a webservice, an object has an undefined value (inq3Type.Call3Data). I do not completely understand why this is happening and apologize for the vague question. My assumption...
6
2601
by: Serkan DIRIARIN | last post by:
hi! i have created a document class. I have a .net client application and a web service. Both of them using same object model and referencing a doctypes.dll file. But when i want to run a client...
0
1956
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
0
4809
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
5
4893
by: CindyRob | last post by:
Using .NET framework 1.1 SP1, .NET framework SDK 1.1 SP1, Visual Studio .NET 2003, hotfixes 892202 and 823639. I create a proxy class using wsdl.exe, and in the serialized XML request, I see...
15
1864
by: =?Utf-8?B?TWFkcyBOaWVsc2Vu?= | last post by:
Hi, I am developing a web service for a customer. The service has a method, that returns an array of Forms. Each form has a Name property of Type String. The customer wants the contract to...
0
7213
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
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
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,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.