Port number is autogenerated at compile time so I'm afraid you can't change
it.
One idea: generate a first time the the WSDL then modify it by hand to
specify your port number, save it as a .WSDL and use it to call a web
reference.
Finally, disable the auto help page generator for ASMX.
Lionel.
"Jimbo" <ji***@notexist.domain.com> a écrit dans le message de news:
d1**********@titan.btinternet.com...
Hi people,
I've written and deployed some webservices. However, the port type in the
WSDL file is generated by .NET (e.g. Service1Soap). I want to define the
port type myself. Is there a way to change the generated port type? I've
been looking at [WebMethod] etc. but can't find anything.
Thanks in advance
James.