Ask a Question related to ASP.NET Web Services, Design and Development.
-
oliver.wulff@zurich.ch #1
Mapping of type string in WSDL
Hi
I've got the following webmethod:
[WebMethod]
public string Hello( string name)
{
return "Hello " + name;
}
This webmethod is mapped to the following element definition:
<s:element name="Hello">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="name" type="s:string"
/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="HelloResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloResult"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
I've got a problem with the minOccurs and maxOccurs. That looks like an
array with one element.
How can I influence the WSDL generation to have the following element
definition:
<s:element name="Hello">
<s:complexType>
<s:sequence>
<s:element name="name" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="HelloResponse">
<s:complexType>
<s:sequence>
<s:element name="HelloResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
I hope that this is possible. Thanks for any help!
Oliver
oliver.wulff@zurich.ch Guest
-
Passing Array type to WSDL
Hi, I am writing a CFC which takes the array as input and return type as string. Wondering how i can display the field properties of the... -
Cast from type 'Field' to type 'String'
Hi, Getting the above error - further info shown below Line 36: II2 = 0 Line 37: response.write ("var questions" & II & " = new Array();"... -
How to exclude a type definition from WSDL
Hi, I have a web service which returns a strongly typed dataset to its client. This typed dataset was defined in a class library which was... -
Cannot create an object of type 'System.String[]' from its representation 'String[] Array'
Hello, I am designing a .net custom control in VS.net 7.1 and my control exposes an array of strings which are supposed to be the items to show. To... -
Cast from type 'DBNull' to type 'String' is not valid error
Trying to add an insert button Sub btnAddRow_Click event for adding a row to the datagrid and dataset back to SQL. Had it working per the...



Reply With Quote

