Binding a WSDL file to a web service class

I started developing an ASP.NET web service by explicitly
designing the WSDL and separating the data type definitions into XSD
files. I followed the steps described in the following MSDN article to
enlist the help of VS.NET in doing this through the use of separate
namespaces and the [WebServiceBindingAttribute]. See :

But I found that I couldn't pass an XML Schema ComplexType (e.g. an
address class) as an input parameter to one of the methods of the web
service !! If I pass a simple type or I move the same complextype
parameter as a return value from the method, VS.NET 2003 generates the
right stuff and the method is listed among the available methods for
the web service . I spent 2 days checking and re-checking everything
to no avail. This must be a bug, but I couldn't find it mentioned
anywhere. Has anybody tried this ?

"Youcef" wrote:
> I started developing an ASP.NET web service by explicitly
> designing the WSDL and separating the data type definitions into XSD
> files. I followed the steps described in the following MSDN article to
> enlist the help of VS.NET in doing this through the use of separate
> namespaces and the [WebServiceBindingAttribute]. See :
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service08202002.asp
>
> But I found that I couldn't pass an XML Schema ComplexType (e.g. an
> address class) as an input parameter to one of the methods of the web
> service !! If I pass a simple type or I move the same complextype
> parameter as a return value from the method, VS.NET 2003 generates the
> right stuff and the method is listed among the available methods for
> the web service . I spent 2 days checking and re-checking everything
> to no avail. This must be a bug, but I couldn't find it mentioned
> anywhere. Has anybody tried this ?
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!