Agile Development, Architecture, .NET and The Art of Listening  RSS 2.0

Navigation
 Sunday, September 21, 2008
Rick Strahl posted his session slides and samples from his ASP.NET Connections. Really good presentations.
http://west-wind.com/weblog/posts/336745.aspx

Sunday, September 21, 2008 4:45:30 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | Agile | AJAX | ASP.NET | JavaScript | LINQ | Useful stuff | WCF | Web Services
 Saturday, March 22, 2008
Dingo is a pluggable Schema Compiler for .NET and will generate C# code. The goal is to provide a simple way to generate Domain Objects. .NET XSD currently only generates Data Objects. Dingo can delegate code generation with high granularity.
http://sourceforge.net/projects/dingo/
Saturday, March 22, 2008 11:54:37 AM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | Tools | Useful stuff | Web Services | XML
 Tuesday, February 12, 2008
Using XQuery to Manage XML with SQL Server 2005
http://www.informit.com/articles/article.aspx?p=468058

XQuery 1.0: An XML Query Language
http://www.w3.org/TR/xquery/

XML Support in Microsoft SQL Server 2005
http://msdn2.microsoft.com/en-us/library/ms345117.aspx

Performance Optimizations for the XML Data Type in SQL Server 2005
http://technet.microsoft.com/en-us/library/ms345118.aspx
Tuesday, February 12, 2008 6:52:24 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
Helped with work | SQL Server | Web Services | XML
 Wednesday, January 23, 2008
Wednesday, January 23, 2008 9:18:45 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | SOA | Useful stuff | Web Services | XML | WCF
 Sunday, January 20, 2008
"MindTouch Dream is a .NET REST framework for developing lightweight, highly decoupled web-services.  It runs on Microsoft .NET 2.0 and Novell Mono 1.2.2."
http://wiki.opengarden.org/Dream
Sunday, January 20, 2008 2:53:35 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | Architecture | Open Source | Tools | Useful stuff | Web Services
 Thursday, January 17, 2008
Creating a web service for an InfoPath form in 25 easy steps
http://blogs.msdn.com/philoj/archive/2005/11/08/490200.aspx

Developing InfoPath Forms for Anonymous Access
http://www.paylasimnoktasi.com/en/anonymousinfopathforms.aspx

All About SharePoint - S.S. Ahmed - MVP Microsoft SharePoint
http://www.sharepointblogs.com/ssa/default.aspx

Programmatically create an InfoPath form from scratch using a Console application and C# code
http://enterprise-solutions.swits.net/infopath2007/programmatically-create-infopath-form-console-app.htm


Thursday, January 17, 2008 9:26:19 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | Helped with work | Web Services | XML | InfoPath | SharePoint
 Sunday, December 23, 2007
Sunday, December 23, 2007 7:21:48 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | SOA | Web Services | When things go wrong
Sunday, December 23, 2007 7:20:40 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | ASP.NET | Performance Tuning | Web Services | XML
Sunday, December 23, 2007 7:17:09 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | ASP.NET | Web Services
Sunday, December 23, 2007 7:16:26 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | ASP.NET | Web Services
Source Link

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 specify, thath the name is mandatory and
not nullable. To reflect this, they want the xml in the wsdl (the Form part)
to look similar to this:

<xs:complexType name="Form">
<xs:sequence>
...
<xs:element minoccurs="1" maxoccurs="1" name="Name" nillable="false" type="xs:string">
...

So, minOccurs should be 1 and nillable should be false (or omitted), to
ensure the value is present and not null.

No matter how I go about this, however, I cannot make the wsdl generate the
desired values. I have tried to do contract-first development using WSCF from
thinktecture, and have the schema dictate the above values for minOccurs and
nillable, but this approach has not remedied the problem.

Is it at all possible to do what I want using .Net and Visual Studio 2005? I
hope my problem is described adequately, otherwise please request more
information. Any help is greatly appreciated.


Regarding on the webservice class property definition problem you
mentioned, here are some of my understanding and suggestion:

1. .NET webservice will always generate the xsd scheme for class property
as below:

** for value type(primitive types or struct), it will use minOccurs="1"
since value type will always be assigned a value(doesn't have null value
unless you use nullable type).

** for reference type(such as normal class), it will use minOccurs="0"
since value type will always support null value, the "string" type in your
case is just conform to this policy.

So far this rule is not changable in our custom code(attribute).

2. Also, XML XSD schema definition's element definition doesn't 100%
completely identical to .NET(or OO ) class/type definition. For example, if
you have the following xsd schema

<element minOccurs="1" ..../>

you can not find a reference type to mapping it since reference type always
support null reference value. I think you can consider define a wrapper
class(which inherit from ValueType ), property of such type will be
automatically generated as minOccurs="1" in XSD schema. However, you still
need to ensure that any sub property of reference type(such as string) has
been supplied a value in your own code.

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead







Sunday, December 23, 2007 7:09:59 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | Web Services | When things go wrong | XML
Sunday, December 23, 2007 6:17:02 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
Web Services | SOA
Sunday, December 23, 2007 6:15:32 PM (Central America Standard Time, UTC-06:00)  #    Comments [0] -
.NET | Performance Tuning | Useful stuff | Web Services
 Wednesday, December 05, 2007
Archive
<November 2008>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Vlad Navazhylau
Sign In
Statistics
Total Posts: 173
This Year: 96
This Month: 0
This Week: 0
Comments: 1
All Content © 2008, Vlad Navazhylau