Automatic generation of WSDL with strongly typed parameters


John Brown

Hello All,

I have a .asmx file that contains a method like this:

Function f(x as String) as String

In the automatically-generated WSDL file, x is described like this:
<s:element minOccurs="0" maxOccurs="1" name="x"/>

The return value is described like this:
<s:element minOccurs="0" maxOccurs="1" name="fResult" type="s:string"/>

The return value has a type, but the parameter x has no type. The
programmer who wants to call this service says that she can't use the
WSDL that was automatically generated by ASP.NET for this reason. My
questions are:

1) How can I make ASP.NET generate a WSDL that declares x as a String?

2) If she edits the WSDL file so that whatever tool she is using does
not complain, will it matter that her WSDL says that x is a String, but
mine does not say anything about x?

Alias John Brown.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question