473,748 Members | 7,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML + SOAP + Webservices

I'm put on building a system in Python and I haven't used either webservices,
SOAP or Python so I'm a bit lost.

This system will require callback functions, should I use Python thru Apache
for this or build my own listening daemon? Use module for Apache or do I make
some kind of CGI script in Python?

Where do I start? What lib do I use for XML? SOAP? Webservices?

Is there any nice project/tutorial for this so I can give it a taste and try
to estimate how much time I need and stuff.

Help needed. =)

Thanks.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCqCY6Ksy pvPn9t1ARAs2cAJ 9plps01VHR57e21 E3DROggwSW23wCg jxuF
MnwFnVMDD63XLKi z5+CroKk=
=UfhS
-----END PGP SIGNATURE-----

Jul 19 '05 #1
3 2007
Johan Segernäs wrote:
I'm put on building a system in Python and I haven't used either webservices,
SOAP or Python so I'm a bit lost.

This system will require callback functions, should I use Python thru Apache
for this or build my own listening daemon? Use module for Apache or do I make
some kind of CGI script in Python?

Where do I start? What lib do I use for XML? SOAP? Webservices?

Is there any nice project/tutorial for this so I can give it a taste and try
to estimate how much time I need and stuff.


For first tries, you could go and check SimpleXMLRPCSer ver - it's in the
docs. Then there is twisted, and some others I believe. Running throgh
an apache doesn't buy you much AFAIK - so just skip it for now for the
additional complexity it involves.
Callbacks aren't supported by any xml-based RPC I'm aware of - which
doesn't mean you can't do it, but _how_ to do it is up to you: You need
a way to pass a server the necessary callback information. It basically
consists of the url to talk to. That by the way is no limitation of
python, but of xmlrpc, soap and whatever.

And last but not least I found that whenever I tried to make python SOAP
implementations work with more than trivial WSDLs I (or the
implementations ...) failed - maybe you can tweak it into working by
handtayloring the calls and proxies - but that is tedious, errorprone
and certainly not the road somone want's to go. I personally always used
apache axis in conjunction with jython to fulfill my SOAP needs in
python. But then again, it's not python anymore - at least not when you
need some cpython-only lib s.

regarding the .NET stuff - don't expect much. Just because it uses a
wire-protocol that is well known doesn't mean that the infrastructure
build on top of it is easy to grasp - and it's not integrated in
anything but itself. That's true for the JAVA-world either, btw.

Sooo - concluding remarks could be:
- soap and python - not so good
- if you can, use some other RPC to interface .NET - like IPython, or
win32, or even corba if you can.
Regards,
Diez
Jul 19 '05 #2
On 2005-06-09 14:20 +0200 or thereabouts, Diez B. Roggisch wrote:
a way to pass a server the necessary callback information. It basically
consists of the url to talk to. That by the way is no limitation of
But of course, a little slip in my thoughts.
Sooo - concluding remarks could be:
- soap and python - not so good
- if you can, use some other RPC to interface .NET - like IPython, or
win32, or even corba if you can.


Basically, don't write the implementation to talk to the SOAP/WDSL-services
in Python, find something else and this 'something else' produces an XML file
which I then parse with Python?

win32 isn't an option, we only have *nix-boxes around and we plan to stay
that way.

Very good answer btw, thanks alot.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCqD7gKsy pvPn9t1ARAiINAJ 43dRmX9aLuZo9RO XtwUkueiSe0IACf bF/I
ozOKx2mC88CM97W fygE3qi0=
=dgKv
-----END PGP SIGNATURE-----

Jul 19 '05 #3
> Basically, don't write the implementation to talk to the SOAP/WDSL-services
in Python, find something else and this 'something else' produces an XML file
which I then parse with Python?
For example - or better, instead of passing XML use an RPC mechanism
Python is good at - e.g. corba. So you could do some java
middleware-thing here, actually done in jython for convenience. Still,
not the nicest of architectures - but a goable way.

win32 isn't an option, we only have *nix-boxes around and we plan to stay
that way.


But can't you run some service on the .net-boxes? And what's about mono?
There is an .net based python out there - afaik even two: One is written
to be running on .net (and thus might be able to be running on mono,
interfacing .net-components remotely), one "only" gives access to .net
objects - so you could use that to create teh necessary middleware.

Diez
Jul 19 '05 #4

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

Similar topics

4
6026
by: pepcag | last post by:
I used http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp as a template to create a very simple web method with soap extension. The code like this: public string HelloWorld() { return "Hello World.";
4
2658
by: Jit Prasad | last post by:
I have been consuming a IBM Websphere (Java) web service using .Net 1.0 front end writen in VB.NET. The proxy class submits a soap request and gets a soap response. When I migrated the front-end to .NET1.1, the response from the web service appears as null in the proxy class. This only happens with .NET1.1, .NET1.0 is ok and works fine. I have played around with the System.Web.Services.Protocols.SoapDocumentMethodAttribute, but no luck....
4
7687
by: Henrik | last post by:
Hi all,, I'm trying to make a program, that calls a webservice, and then does somthing about the data, that i recive.. But i don't know what to do with this data??.. i tried to load into an xmldocument, but i recives an error?? If i load it ito an object by:
0
1543
by: Peter Theill | last post by:
I have these two web services: namespace WebService1 { public class Service1 : System.Web.Services.WebService { public Service1() { } public string HelloWorld() {
6
2132
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
5
2980
by: A.M-SG | last post by:
Hi, I am developing a SOAP extender and I need to store some session information at BeforeSerialize ProcessMessage event, so at the AfterDeserialize ProcessMessage event I know which call I am dealing with. What would be the best way for storing some session information during ProcessMessage method call?
3
7726
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce value for the UserName token. Is it possilbe at all to do this from VBScript (or jscript?)? I know I will be limited with what I can do with the SOAP message. Eg/ can't sign/encrypt it etc. Thanks,
31
2849
by: Bryan Dickerson | last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our perspective, should be as simple as defining an object and viewing a parameter on that object. My boss has worked with it and I'm still tryin'... TIA! -- TFWBWY...A
0
1193
by: Frank Rizzo | last post by:
Almost a year ago, someone asked the question below and I am running into the same problem: I have two web services (code below). If I have only one webservice in my disco file it works, it works fine. If I have multile web services in the file, word "Soap" is appended to the classes. What is the problem here? Thanks
0
1451
by: Wijnand Kroes | last post by:
Hi guys, I have a C#.NET client which sends SOAP requests to .Net webservices and non ..Net webservices. If I do not add a SOAP header a get a valid response from all webservices. If I do add a SOAP header a get a valid response from the .Net webservice but an error from the client when accessing a non .Net webservice. The non .Net webservices are created in VB6 and Java.
0
8989
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
9367
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...
0
9243
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...
0
8241
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...
0
6073
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
4599
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
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.