468,765 Members | 812 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

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" />
..
..
</wsdl:binding>
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" />
..
..
</wsdl:binding>

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

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

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

Thanks & Regards,
Andy.

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

XmlNode soapBindingXmlNode =
serviceDescription.SelectSingleNode("//*[@transport]");
XmlNode soapBindingTransportXmlNode =
soapBindingXmlNode.Attributes.GetNamedItem("transp ort");
if (soapBindingTransportXmlNode.InnerXml.Length == 0) {
soapBindingTransportXmlNode.InnerXml =
"http://schemas.xmlsoap.org/soap/http";
}
return serviceDescription;

}
Hopefully someone might find this useful one day...
Cheers,
Andy.

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.