Hi all,
I'm trying to use a web service and thus added a web service reference to my project using the service's WSDL service description. All is well, there were no error message, but I noticed that one field is declared as string
in my web service reference while it should be int
.
Going through the WSDL service description, I noticed that the respective field is declared as:
<xsd:complexType name="ItemType">
<xsd:all>
<xsd:element name="quantity" type="xsd:integer"/>
</xsd:all>
</xsd:complexType>
Obviously, the field is supposed to be an integer, but Visual Studio 2008 thinks that it is a string.
My questions are:
- Is
xsd:integer
a valid WSDL data type or shouldn't it bexsd:int
? - How can I tell VS 2008 that this field should be
int
? - Will I still be able to use the service when I provide a
string
(only containing numbers) in C# where the caller (obviously a PHP script) expects anint
?
Thanks for your help!