Ask a Question related to ASP.NET Web Services, Design and Development.
-
John Jenkins #1
WSDL Minoccurs changes when nil="true" is set.
Hi,
can someone tell me why the following scneario occurs. With the nillable
attribute set to true on an element that has min occurs set to zero, I
generate a class. As expected this adds the IsNullable=true attribute
<xs:element name="SSN" type="xs:string" minOccurs="0" nillable="true"/>
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSche
maForm.Unqualified, IsNullable=true)]
public string SSN;
When I view the WSDL for the service I see the minoccurs is not 1
<s:element minOccurs="1" maxOccurs="1" form="unqualified" name="SSN"
nillable="true" type="s:string" />
My questions are:
1. Why does the minoccurs value change?
2. If I use a SOAPExtension to validate XML returned from a method call
using the WSDL (which can be done), will it fail if there arew no SSN
details provided?
Any help greatly appreciated.
John Jenkins Guest
-
#39195 [Opn->Bgs]: if (0=="any sting") echo "it's return true";
ID: 39195 Updated by: derick@php.net Reported By: waynewn at citiz dot net -Status: Open +Status: ... -
#39195 [NEW]: if (0=="any sting") echo "it's return true";
From: waynewn at citiz dot net Operating system: win/freebsd PHP version: 5.1.6 PHP Bug Type: Scripting Engine problem Bug... -
Problem with minOccurs="0" in client WSDL
I have created a web service for a client to consume. The element I am having trouble with is, as described in their WSDL: <xsd:element... -
Acrobat Form Submit error: changes VALUE="true" to "0"
I wrote an HTML page with a form. In the form I had many inputs as in: <INPUT TYPE="radio" NAME="Q1" VALUE="true"> and <INPUT TYPE="radio"... -
OVERride "binding" name and "portType" name in WSDL
Can anyone suggest how we can override the generated "binding" name and "portType" name attributes in the generated WSDL document? i.e. VS.NET...



Reply With Quote

