471,111 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,111 software developers and data experts.

WSE, SSL & Soap Binding Transport

I have created a simple HelloWorld application in WSE2.0 SP3.

When I browse to the endpoint url over http (e.g.
http://localhost/TestService.ashx) the WSDL is fine and I can create a
client proxy and call into the service. Examining the WSDL shows the
transport attribute is populated...

<wsdl:binding name="TestServiceBinding" type="tns:TestServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
However over https e.g. (https://localhost/TestService.ashx) the WSDL
is returned exactly as for http except for an empty soap:binding
transport attribute. This appears to cause problems when creating a
client proxy...

<wsdl:binding name="TestServiceBinding" type="tns:TestServicePortType">
<soap:binding transport="" style="document" />

IIS is configured with a valid server certificate. The WSE2 service
code is as follows...

/// <summary>
/// TestService
/// </summary>
public class TestService : SoapService {

public string HelloWorld() {
return "Hello World";
Please can anyone help?

Thanks & Regards,

Nov 23 '05 #1
1 2286
Ok, I found a solution albeit a little hacky...
protected override XmlDocument GetDescription(System.Uri location) {
XmlDocument serviceDescription = base.GetDescription(location);

XmlNode soapBindingXmlNode =
XmlNode soapBindingTransportXmlNode =
soapBindingXmlNode.Attributes.GetNamedItem("transp ort");
if (soapBindingTransportXmlNode.InnerXml.Length == 0) {
soapBindingTransportXmlNode.InnerXml =
return serviceDescription;

Hopefully someone might find this useful one day...

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by David | last post: by
4 posts views Thread by sonic_soul | last post: by
30 posts views Thread by Kong Bhat | last post: by
4 posts views Thread by RJ | last post: by
reply views Thread by Jigar.Patel | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.