My SOAP is not clean!

I am working on a vb.net webservice with a FlashMX
client to consume it.
I got some help from Jan with returning data from my service as an array of
complex objects. Now, however, I am not getting the results I
expect in the WSDL. The result is that in the flash designer,
it can't "see" the elements in the returned array.

Can someone look at these two WSDLs and tell me how I fix
the one generated by MS so that it will work the same as the one
I reference below? Thanks. I can't figure out why one would act
differently than the other. My WSDL is listed below the stock
quote one.

Advertisements

This one worked for me:
Avoid HTTP/GET and HTTP/POST Bindings in Your WSDL
If you use the SOAP Toolkit, this is easy. But what do you do if you use
Visual Studio .NET to generate your WSDL files? You can disable all
generation of the HTTP bindings by modifying your Web.config file. In the
Web Service project, go into the <configuration><system.Web> section and add
the following lines of XML:

<webServices>
<protocols>
<remove name="HttpPost" />
<remove name="HttpGet" />
</protocols>
</webServices>
These few lines tell the WSDL generator to not produce the HTTP/POST and
HTTP/GET bindings. Why do you need to remove these bindings? Most of the
existing toolkits do an excellent job of handling SOAP and many can even
handle WSDL files. The developers of these toolkits did not worry about the
existence of HTTP/POST and HTTP/GET bindings. They didn't have to because
not many toolkits supported the binding in the first place. When the
toolkits try to create proxies and see the bindings to HTTP/GET or POST they
typically fail to produce anything. By telling ASP.NET not to provide those
bindings, you make it easier for other toolkits to use your Web Service.

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!