Web service client using https



Hi All,

I am trying to connect .NET web service using HTTPS. I wrote a
python script using https. For that need to send SOAP message to the
server. But it is giving error 401.3 execution access is denied.(SOAP
message not processing)
I have a doubt can we access web services using HTTPS
only, or need to have any other.
I am sending the code::
[CODE]
import httplib
a=open('/root/Desktop/b.xml','r')

#SOAP message
Message=a.read()
h =httplib.HTTPS('hpc.msftlabs.com')
h.putrequest('PUT','/HPCBasicProfile/HPCBasicProfile.svc')
h.putheader('Accept','text/soap')
h.putheader('Content-type','text/jsl; charset="utf-8"')
h.putheader('Content-length','%s' % str(len(Message)))
h.putheader('SOAPAction','http://schemas.ggf.org/bes/2006/08/
besfactory/BESFactoryPortType/CreateActivity')
..endheaders()

h.send(Message)

errcode,errmsg, headers = h.getreply()
print errcode,errmsg, headers
f = h.getfile() # Get file object for reading data
data = f.read()
print data
f.close()
[/CODE]

Please guid me to access web service.

Thanks
Allavarapu

.



Relevant Pages

  • Re: Axis2 1.4 How to modify soap envelope attributes?
    ... When I look at the SOAP message sent: ... I want to add xsd and xsi namespaces ... but my third party web service requires them. ...
    (comp.lang.java.programmer)
  • Re: WSE and SSL
    ... Adding ssl support has nothing to do with web service implementation. ... All you need to do is get a valid certificate and change the settings in IIS to make the web application use ssl. ... the calling application requests using HTTP. ... Are there any examples/sample codes that would implement like a Hello World service in HTTPS? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Axis2 1.4 How to modify soap envelope attributes?
    ... I am using AXIOM API. ... When I look at the SOAP message sent: ... I want to add xsd and xsi namespaces ... but my third party web service requires them. ...
    (comp.lang.java.programmer)
  • HttpWebRequest adding junk characters
    ... I am trying to invoke a remote Web Service that accepts XML data over https ... but the server is returning a "The data at the root level is invalid. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Content-based routing and content modification
    ... I have a web service with SoapExtensions that read and modify the ... content of the SOAP message both in the request and in the response. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)