LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2004, 10:54 PM   #1
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
Consuming .Net XML Web Services using Python


Hey guys,

This is a "what do i specify" kind of question:

I have a .Net web service. Something like this: http://localhost/services/myservice.asmx. services is the project and myservice.asmx is the actual service implementation (myservice.asmx?wsdl would yield the WSDL).

Anyway, since web services are platform and language independent (XML SOAP messages afterall), i want to consume the above service in a Python script. I found out that you use the xmlrpclib's Server object as follows:
Code:
from xmlrpclib import Server
proxy = Server("service url") # create proxy
proxy... # call method
Now, i'm not entirely sure how exactly i call the method. In fact, i tried a bunch of URIs for the Server object, but can't quiet make it work. So what exactly do i specify in the constructor?

http://localhost/services or http://localhost/services/myservice.asmx? Or something else?

Just not entirely sure on how Python wants it. Or even if i'm on the right track here (though i know how to do it in .Net or Java ).



Any help is appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web hosting services shadz General 2 01-16-2005 10:01 AM
XML database with python? (I don't understand the circular logic) flamesrock Programming 10 12-23-2004 08:31 PM
Python XML won't work. Travis86 Programming 0 09-14-2004 05:13 PM
Xml & Asp.net futurist Linux - Software 1 03-25-2003 10:24 PM
anyone developing web with python ? doublefailure Programming 1 10-09-2002 01:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration