473,769 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to handle HTTP redirect using SOAPpy

Hi,

I am using python SOAPpy module to call a web service. Call to web
service gets executed successfully. I am facing a problem if the call
to WS results into redirect. I get "HTTPError: <HTTPError 302 Moved
Temporarily>"

If I enable the debug info, I do get the new redirected url. How do I
divert my WS request to new url?

Here is my code
import SOAPpy
reqUrl = "http://localhost:8099/VS/SR/wp?wsdl"
srv = SOAPpy.WSDL.Pro xy(reqUrl)
srv.soapprox y.config.dumpHe adersIn = 1
srv.logIn(us erID = "myusr", password = "mypwd") srv.logIn(userI D = "myusr", password = "mypwd")

*** Incoming HTTP headers
*************** *************** *************** *
HTTP/1.? 302 Moved Temporarily
Date: Wed, 28 Dec 2005 14:06:25 GMT
Server: Jetty/5.1.4 (Windows 2000/5.0 x86 java/1.4.2_08
Content-Type: text/xml;charset=ISO-8859-1
Location: http://localhost:8080/VS/SR/wp?method=null
Connection: close
*************** *************** *************** *************** ************
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
File "C:\PYTHON23\li b\site-packages\SOAPpy \Client.py", line 470, in
__call__
return self.__r_call(* args, **kw)
File "C:\PYTHON23\li b\site-packages\SOAPpy \Client.py", line 492, in
__r_call
self.__hd, self.__ma)
File "C:\PYTHON23\li b\site-packages\SOAPpy \Client.py", line 363, in
__call
config = self.config)
File "C:\PYTHON23\li b\site-packages\SOAPpy \Client.py", line 263, in
call
raise HTTPError(code, msg)
HTTPError: <HTTPError 302 Moved Temporarily>

How do I divert all my requests to new url.

Thanks

Sameer

Dec 28 '05 #1
0 1792

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2625
by: Jim | last post by:
Hi all, I am new to SOAP and Python. I am practicing learning SOAP with Python. I sent a request and I got the following response: <SOAPpy.Types.structType HashStringResponse at 23909440>: {}
0
1291
by: Achim Domma (SyynX Solutions GmbH) | last post by:
Hi, I'm using SOAPpy to call a .Net Webservice. Using WSDL.Proxy(service_url) works fine but has to get the WSDL each time from the server. If I try SOAPpy.SOAPProxy(service_url) the call fails with low level SOAP errors. Was somebody able to call a .Net service without using WSDL.Proxy and
0
1017
by: benboals | last post by:
Note: this is in reply to a message from August 2 which i found searching for help on my own problem. I couldn't seem to reply to it, but a friend suggested that simply using the same subject would put it in that thread. In case he's wrong, i quoted the previous comments . Odd-R. wrote: > I use the following piece of code to contact a webservice, > and read a wsdl file. > > from SOAPpy import WSDL > from SOAPpy import URLopener
1
1965
by: m.banaouas | last post by:
Hello Pythoneers: I would like to ask you a simple question: Are you satisfied by SOAPpy module? Actually, I use this module since a year and i immediately found it very well-implemented, corresponding to dynamic "meta-data" discovering nature of SOAP/WSDL. BUT i read sometimes threads saying that SOAPpy is "dead" and we should
0
1601
by: marcello lussana | last post by:
Hi, I'm trying to send some xml data to a WSDL server. Here's my code: xmldata = "<oesystem<user login=\"nekhem\" password=\"one5076\" tpoa=\"\"<message id=\"1\"<textTest di messaggio 1 </text> +<mobile3202181465 </mobile<dateforesend17.5.2007 12:59:53 </dateforesend</message</user</oesystem>""" SOAPpy.WSDL.Config.namespaceStyle = '2001'
0
1342
by: linuxprog | last post by:
hi all i'm building a webservice client with soappy when i send some informations it's returns an error here is the informations that generates the error var = SOAPpy.structType() var._addItem("code", u"XysZjd") var._addItem("value", 1) when i send the var variable SOAPpy prints this
4
2798
by: Maurice LING | last post by:
Hi, I have a problem: 1. Assuming that my application is a SOAP server that uses SOAPpy, 2. I am given port 35021 for use. What I normally do (simply) is: functionlist =
1
2501
by: Matias Surdi | last post by:
Hi, Could anybody tell me which is the easier way to do a SOAP call to a web service wich requires an http header to be present? I can't figure it out. Thanks a lot Some code I'm using:
1
4314
by: neridaj | last post by:
Hello, I'm going through the SOAP Web Services portion of Mark Pilgrim's tutorial and I'm getting this error when trying to build: python setup.py build Traceback (most recent call last): File "setup.py", line 8, in <module> from SOAPpy.version import __version__ File "/Users/username/Desktop/SOAPpy-0.12.0/SOAPpy/__init__.py",
0
9579
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
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7404
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
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2812
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.