Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

WSE2.0 + SP3: empty soap:binding transport over SSL -- why?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
google@funk45.com - 17 Nov 2005 17:25 GMT
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
soap:binding 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.

(originally posted to microsoft.public.dotnet.framework.webservices)
google@funk45.com - 18 Nov 2005 10:31 GMT
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("transport");

    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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.