473,396 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ElementSOAP and <soap:Header>

1) Is it correct that none of the examples in the ElementSOAP tutorial:

http://effbot.org/zone/elementsoap-1.htm

include an example in which the SOAP message that contains the request
includes a <soap:Headerblock?

2) If one wanted to make use of ElementSOAP, and one wanted it to
produce a SOAP message that includes a <soap:Headerwould the general
outline be:
a) use ElementTree to create and populate the <soap:Headerelement
b) insert the <soap:Headerelement as a subelement of envelope in
the SoapService class

I think much of my confusion stems from my lack of understanding of
SOAP. As I understand it, <soap:Headeris an optional part of a SOAP
message. I'm pretty sure that 'optional' at a minimum means that not
all SOAP messages must contatin a <soap:Header>. But does 'optional'
mean more than that? Does it mean that one could get by without ever
having to produce a SOAP message that includes a <soap:Header>? Or,
are there some webservices where if one didn't include a <soap:Header>
in the SOAP message, the webservice would not work?

Thank you.

Nov 20 '06 #1
3 2496
mi************@yahoo.com wrote:
2) If one wanted to make use of ElementSOAP, and one wanted it to
produce a SOAP message that includes a <soap:Headerwould the general
outline be:
a) use ElementTree to create and populate the <soap:Headerelement
b) insert the <soap:Headerelement as a subelement of envelope in
the SoapService class
make sure you have the 0.5 release, call SoapHeader to create a header
element, populate it with whatever you want, and pass it to "call" using
the header= keyword argument

header = SoapHeader()
... populate header ...
service.call(action, request, header=header)
I think much of my confusion stems from my lack of understanding of
SOAP. As I understand it, <soap:Headeris an optional part of a SOAP
message. I'm pretty sure that 'optional' at a minimum means that not
all SOAP messages must contatin a <soap:Header>. But does 'optional'
mean more than that? Does it mean that one could get by without ever
having to produce a SOAP message that includes a <soap:Header>? Or,
are there some webservices where if one didn't include a <soap:Header>
in the SOAP message, the webservice would not work?
optional means "it's up to the server to decide if it wants one".

</F>

Nov 20 '06 #2

Fredrik Lundh wrote:
make sure you have the 0.5 release
May I confirm the following recommendations/dependencies:
1) if one wants to use ElementSOAP to create a message that includes
<soap:Header>, it is recommended that one use the 0.5 release of
ElementSOAP
2) if one wants to use the 0.5 release of ElementSOAP, one should be
using Python 2.5

Thank you.

Nov 20 '06 #3
mi************@yahoo.com wrote:
May I confirm the following recommendations/dependencies:
1) if one wants to use ElementSOAP to create a message that includes
<soap:Header>, it is recommended that one use the 0.5 release of
ElementSOAP
yes. or if you prefer not to upgrade, you can hack the "call" method to
insert a header at the right place.
2) if one wants to use the 0.5 release of ElementSOAP, one should be
using Python 2.5
no. but if you're using earlier versions of Python, you also need a
version of ElementTree that supports the "iterparse" interface (which
means 1.2.5 or later).

</F>

Nov 20 '06 #4

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

Similar topics

0
by: John Jenkins | last post by:
Hi, this is a repost of a question yesterday. I am using WSE2.0sp1 for my security implementation for web services. A customer is using WebLogic to implement their calls to my service. The call...
0
by: Michael Jackson | last post by:
I have attempted to mark up a service and it's methods so that it doesn't require the SOAPAction HTTP header to resolve the methods being called, this is done from first element in <SOAP-ENV:Body>...
3
by: Philippe Lang | last post by:
Hello, Does anyone have experience in interfacing a Postgresql database (tables? plpgsql functions? perl functions?) with the outside world through webservices? (XML-RPC, SOAP, UDDI, WSDL...) ...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects"...
16
by: lreames | last post by:
I am new to XML, but not ASP. I have the following XML that I load via Dim xml Set xml = Server.CreateObject("Microsoft.XMLDOM") xml.async = False xml.loadXML xmldom.xml
2
by: irishdudeinusa | last post by:
Hello Everyone, I have been working a webservice where I can use it in other applications that I am working on. However, I am running into a problem with the data returned and I was wondering if...
0
by: leon70 | last post by:
Hi Group, I built a gSoap 2.7.11 Web services client in C++ on AIX and have got it talking to the remote service. The service is sending back an array of objects to my client but the client is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.