473,666 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web service client using https

12 New Member
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::
Expand|Select|Wrap|Line Numbers
  1. import httplib
  2. a=open('/root/Desktop/b.xml','r')
  3.  
  4. #SOAP message 
  5. Message=a.read()
  6. h =httplib.HTTPS('hpc.msftlabs.com')
  7. h.putrequest('PUT','/HPCBasicProfile/HPCBasicProfile.svc')
  8. h.putheader('Accept','text/soap')
  9. h.putheader('Content-type','text/jsl; charset="utf-8"')
  10. h.putheader('Content-length','%s' % str(len(Message)))
  11. h.putheader('SOAPAction','http://schemas.ggf.org/bes/2006/08/besfactory/BESFactoryPortType/CreateActivity')
  12. .endheaders()
  13.  
  14. h.send(Message)
  15.  
  16. errcode,errmsg, headers = h.getreply()
  17. print errcode,errmsg, headers
  18. f = h.getfile() # Get file object for reading data
  19. data = f.read()
  20. print data
  21. f.close()
  22.  
Please guid me to access web service.

Thanks
Allavarapu
Oct 4 '07 #1
0 1428

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1698
by: Michiel | last post by:
Hello, I am not sure this is the right place to ask. I tried the ZSI mailing list, but got no response there. My goal is to write some web services with ZSI to be used by a client written in .NET. I'm using ZSI 1.2.7 (this was easy to install on my Debian system). I have no problem with functions with parameters and return values
1
9292
by: vipin aravind | last post by:
Hi, I have a soap .NET client in c# generated using wsdl.exe and I am able to do the communication with the web service and get the information. But I have a question, I have enabled https support on the server and I want to add https support to the client which currently makes use of the http support. How do I go about this?
0
2491
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem serializing the object but there seems to be a problem serializing an array of objects. Any help will be appreciated "Cannot assign object of type System.Object to an object of type ElectronicWallet.C2PTest.PaymentItem." :...
0
1550
by: bweaver4usenet | last post by:
Hi, all. I need some help getting a client up and running. Client Issue Client is using vc++ 6 and the Soap Tkt. Our web service is built with c# vs.net 2003. Can someone refer me to a sample I can take a look at for this specific case? Gateway Issue The gateway URL is in this form: https://domain.com/service.asmx. They're hitting the dynamic wsdl at service.asmx?wsdl where they're
0
1529
by: jacorona | last post by:
Hello all, I have found a problem accesing a web service hosted in IIS 5.0 in a W2K box. The web service site is configured to accept both integrated windows authentication and client certificates. I have a WinForm 2.0 client application and when it presents a certificate it works fine, but when it tries to access the web service using integrated security it times out. Both accesses are via an https: uri. Moreover, an .aspx page in the...
1
421
by: welcomestocontact | last post by:
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::
5
7717
by: nomad | last post by:
Hi, I was wondering if it was possible to add a service reference to a web service which requires an SSL certificate to authenticate? If not, if I have the SSL certificate installed via mmc snap-in, is there another way to send an XML payload to the web service with an SSL certificatre attached to the request? Appreciate any thoughts on this as I am a bit of a newbie.
0
1992
by: Martink87 | last post by:
Hey everyone, my first post here. I am a newbie C# developer, pretty much done nothing in it and am really learning as I am going on. I have already created one webservice communicating App but this one is giving me some trouble. I was given a certificate from the service provider and have installed it on my development machine, the problem is, whenever I proceed to make the web service call I get the following error: An error...
0
1094
by: satish kumar | last post by:
Hello! We have a situation where in we're developing a WCF Intermediatery service, which would handle calls between Callers (could be asp.net wcf clients) and External Services (mostly WCF Services with endpoints). ASP.net clients <--Our WCF Service <--External Services Scenario: Our service is mainly there to ENCAPSULATE the low-level details of business-processing and making calls to external services and processing the return from...
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6189
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.