Webservice port type

  • Thread starter Thread starter Jimbo
  • Start date Start date
J

Jimbo

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.
 
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.
 
Ta, it's not ideal, but it'll do the job.

Thanks
James.

Lionel said:
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.

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.
 
Back
Top