> Hi!
>
[quoted text clipped - 16 lines]
>
> string ret = objWS.submitMessage(cpaid, securitykey, message);
I tried this, but couldn't find a way to specify the port name.
You are making a serious design error. Consider:
* Your callers have published a WSDL defining the contract they expect you
to adhere to. They have a database listing the URL for the WSDL (and
hopefully also the address) of the service they want you to implement. This
means that they have created a static contract that they require you to
fulfill.
* On the other hand, you're trying to figure out how to get .NET to look at
a class you've created and to get it to generate the same WSDL.
You are trying to dynamically generate a static WSDL. That's a mistake.
Instead, serve the WSDL at some location in your web server; have them place
that URL into their database; then, write your web service to be callable by
your caller. Do not expect .NET to dynamically generate something static.
BTW, if they are using the WSDL at runtime to dynamically generate the proxy
code that they will then use to call your code, then they, too are making a
mistake. If the WSDL is static, then they should be using a statically
created proxy class, not a dynamically created proxy

Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
class.