c# - The request failed with an empty response. Calling ASMX service behind Loadbalancer -
i have webservice https
enabled in loadbalancer
. external url appears this:
.
http disabled webservice loadbalancer , http requests converted https load balancer.
when try consume using soapui or application , run, throws error request failed empty response.
now, when check soapaddress in wsdl http instead of https. changed https. getting same error.
after lot of research, tried capturing traffic using fiddler , found strange. when method called applicaiton or soapui, protocol http , result 302 in fiddler.this must reason why failing.
now, can done run https? why gets converted http though browser cannot call using http , have consumed service using https://xyz...
you need make sure binding client uses has security mode="transport" set (and client binding matches server binding), example:
<binding name="yourclientsecurebinding"> <security mode="transport"> <transport clientcredentialtype="none"/> </security> </binding>
and client indeed accesses https:// address of web service:
<client> <endpoint bindingconfiguration="yourclientsecurebinding" address="https://..." ... /> </client>
you not providing code, starters have @ these posts: here (microsoft developer network - transport security anonymous client) , here (https basichttpbinding).
based on link
Comments
Post a Comment