Hello Duffman,
Welcome to the MSDN newsgroup.
From your description, you're using the SoapExtensionReflector derived
class to customize the ASP.NET webservice's autogenerated WSDL document.
You've been able to change the soapbinding's service address from "http://"
to "https://", however, that didn't work for http protocol specific
bindings (GET or POST), correct?
Based on my research, behavior you met is due to the design of the
SoapExtensionxxx components, they're used to customize Soap protocol
specific service description elements. So in the SoapExtensionReflector's
override methods, the "ServiceDescription" instance we get doesn't contains
any non-SOAP protocol related elements (such as httpGET or httpPOST...). We
can verify this by flushout all the serviceDescription content in the
method:
============================================
public class HttpsReflector : SoapExtensionReflector
{
public override void ReflectMethod()
{
StreamWriter sw = new StreamWriter("d:\\temp\\log_rm.txt",
false, Encoding.UTF8);
ServiceDescription description =
ReflectionContext.ServiceDescription;
sw.WriteLine("*********************************");
XmlTextWriter xtw = new XmlTextWriter(sw);
description.Write(xtw);
sw.Close();
}
=================================
This makes the existing ServiceDescription extension components unable to
customize the "http" binding's WSDL elements.
BTW, as for httpGET or httpPOST, they're non-WSDL standard binding
protocols, just for simple test through webbrowser. And generally
client-side proxy generation tool (like the wsdl.exe in .net framework ...)
won't take care of it. Therefore, if you do not use this protocol in your
client-server application, we can hidden its service description through
the <protocols> setting , like:
<webServices>
<protocols >
<remove name="HttpGet"/>
</protocols>
In addition, another optional currently available is completely replace the
WSDL document page with our own custom page through the
"wsdlHelpGenerator" element , like:
<system.web>
<webServices>
<wsdlHelpGenerator href="docs/MyServiceHelpPage.aspx"/>
</webServices>
Thanks & Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)