Senior Python Applications Developer/Leader. Michigan contract @$90/hr. Skills: Agile, Java, PHP, HTML5, CSS3, JavaScript, jQuery, Amazon Web Services (AWS)

2015-03-04 Thread Leigh Haugen
Senior Python Applications Developer/Leader. Key Skills:  Agile, Java, PHP,  
HTML5, CSS3, JavaScript, jQuery, Amazon Web Services (AWS)

Direct client. H1B is OK. Ann Arbor, Michigan. Initial six month contract, 
probably good through the end of 2015. We can pay up to $90/hr.  possibly 
higher for the right candidate.

Skills, Experience, and Characteristics
»   Proven experience in Object Oriented programming using Java, Python or 
PHP (at least one year of Python experience is required).
»   Experience using MVC frameworks like Spring, Django or Zend.
»   Experience using profiling tools to analyze and optimize application 
performance like App Dynamics and New Relic.
»   Familiarity with HTML, CSS, and JavaScript including common libraries 
like jQuery, Foundation, and Backbone.
»   Familiarity with web technology stack (e.g. HTTP, cookies, headers, 
caching, CDN, and security).
»   Willingness and ability to learn new approaches and emerging technology.
»   Strong communication and interpersonal skills.

The Role
This Software Developer position is for our development team to implement 
critical reporting capabilities.
You will be designing, developing and maintaining applications and APIs that 
are deployed on our cloud delivered platform.  You will be a crucial part of a 
dynamic, energized and agile team delivering leading edge reporting solutions.
Our organization and this role will provide you with an opportunity few other 
companies can offer including:
»   Leveraging technologies including: AWS, Java, Python, and HDFS.
»   Agile teams that follow continuous deployment and test automation best 
practices allowing for rapid application development and frequent deployments. 
We complete an average of 80 production deployments each week.
»   Developers are using the same architecture, technologies and tools as 
companies like Netflix, Etsy, and Amazon.com.
»   This is a unique opportunity to be on the leading edge of building 
large-scale, cloud delivered web applications that host hundreds of millions of 
sessions annually. 
When joining the development team, you can expect to receive tool and product 
training. We have an excellent on-boarding program, which enables new engineers 
to become productive very quickly. A lead will work closely with you as you 
begin engaging your assigned agile team.  We will provide you with constant 
support as we work to make you comfortable in your new environment. Those in 
leadership roles will work tirelessly to set you up for success.

Leigh Haugen
Managing Partner
KDMM / eTek
le...@kdmmcorp.com
(248) 719-0789
-- 
https://mail.python.org/mailman/listinfo/python-list


WSME -- Web Services Made Easy -- 0.6.4

2014-11-29 Thread Christophe de Vienne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

WSME -- Web Services Made Easy -- 0.6.4

   Web Service Made Easy (WSME) simplify the writing of REST web services
   by providing simple yet powerful typing which removes the need to
   directly manipulate the request and the response objects.

   WSME can work standalone or on top of your favorite python web
   (micro)framework, so you can use both your preferred way of routing
   your REST requests and most of the features of WSME that rely on the
   typing system like:
 * Alternate protocols, including ones supporting batch-calls
 * Easy documentation through a [1]Sphinx extension

What's New In This Release?

0.6.4 (2014-11-20)
--

- Include tests in the source distribution

0.6.3 (2014-11-19)
--

- Disable universal wheels

0.6.2 (2014-11-18)
--

* Flask adapter complex types now supports flask.ext.restful
* Allow disabling complex types auto-register
* Documentation edits
* Various documentation build fixes
* Fix passing Dict and Array based UserType as params

Documentation

   [2]Documentation for WSME is hosted on [3]readthedocs.org

References

   1. http://sphinx-doc.org/
   2. http://http://wsme.readthedocs.org/en/latest/
   3. http://readthedocs.org/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUedbWAAoJEFATnylB+5mRtl0H/AkUQAUcz58uAt+LIJbIFsnK
vZTjnCPm4/pAtEMLZw/8ZOlYdpBRvKFJEMoFRwJ0lDvvsDP1cK+VjQsZbncnliDI
0W3rDaHqFpCk12RHzaglOLP8VR7BzLVAqfqY2BtVBJ1yaThBxQw0xHXVy/ZX/xaW
n84JaScfVMaS06Baa7iaTZc0ED5v1Hf2iCv3xD5jpswvVp9Rx1c65SLwZjm3XqFn
nDBumn1W04Pwzp5mqW31ZOKKVzD4HDgB8CJS7Bql3Tahq36pvHMW3Axwlk3nVNEr
1mh3gsQFGxB/bkR//HApuuT7wQDzB8p8waL1DBiugVTxL9nGKcqh6xlsySnPn1c=
=vns4
-END PGP SIGNATURE-
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Web services from python

2014-10-27 Thread loial
What is the best package to use with python 2.6 to access Web services. Is it 
ZSI?

Can anyone recommend a good tutorial, preferably with a sandbox web service?

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: SOAP web services using python. Would like to change the Envelope Document using MessagePlugin before sending it using suds

2013-02-19 Thread dieter
sarat.devin...@gmail.com writes:
 My current SOAP request sent via suds.client looks like this:

 SOAP-ENV:Envelope (some name space URIs)
   SOAP-ENV:Header /
 SOAP-ENV:Body
   ns5:saveModule
 request xsi:type=ns3:SaveModule
   Module xsi:type=ns4:Module
 ModuleName xsi:type=ns1:stringTest/ModuleName
   /Module
 /request
   /ns5:saveModule
 /SOAP-ENV:Body
 /SOAP-ENV:Envelope

 This request fails on my server. If i take the same XML request and massage 
 it and send it visa SOAPUI, it works fine. What I did was

 soapenv:Envelope (some name space URIs)
   soapenv:Header /
 soapenv:Body
   saveModule
 request
   Module
 ModuleNameTest/ModuleName
   /Module
 /request
   /saveModule
 /soapenv:Body
 /soapenv:Envelope

 As you see, I had to change SOAP-ENV to soapenv, modify node ns5:saveModule 
 to saveModule and also remove attributes such xsi:type to other child nodes

Looks as if you had a bad WSDL description of your service
and a server which fails to honor elementary standard elements
(of the XML-namespace standard, in particular).

The XML-namespace standard dictates that the concrete namespace prefixes
are (apart from some xml prefixes) insignificant; namespace prefixes
are use only to refer to namespace uris and only these uris
are relevant. Thus, a standard conform XML-namespace application
should world with whatever prefix is used as long as they refer
to the correct namespace uri.

According to the standard, xsi:type is used when the underlying schema
(in your WSDL) does not statically determine the type. In this
case, missing type information is provided by xsi:type.
A standard conform application should not have problems with xsi:type
attributes. Alternatively, the schema (in the WSDL) can assign types
and suds will not generate xsi:type attribute (at least not in
simple cases).

 How can I , modify the request in above manner using suds.client. 
 Documentation suggests to use a plugin with Client using marshalled method. 
 But I was unsuccessful

I cannot answer you concrete question.

However, when you are working with a component that does not honor
standards (this seems to be the case for your server component),
it may not be possible to use (other) components developed against
those standards.

In your particular case, it might be necessary to generate the SOAP 
messages yourself - in the peculiar way, your server expects them -
rather than use suds.

By the way: when I remember right, then suds supports some
control over the namespace prefixes used. Apparently, servers
not honoring the XML-namespace standard are not so rare.
Fortunately, I never needed this feature but I think I
have read something about it in the suds documentation.

-- 
http://mail.python.org/mailman/listinfo/python-list


SOAP web services using python. Would like to change the Envelope Document using MessagePlugin before sending it using suds

2013-02-17 Thread sarat . devineni
Hi ,

My current SOAP request sent via suds.client looks like this:

SOAP-ENV:Envelope (some name space URIs)
  SOAP-ENV:Header /
SOAP-ENV:Body
  ns5:saveModule
request xsi:type=ns3:SaveModule
  Module xsi:type=ns4:Module
ModuleName xsi:type=ns1:stringTest/ModuleName
  /Module
/request
  /ns5:saveModule
/SOAP-ENV:Body
/SOAP-ENV:Envelope

This request fails on my server. If i take the same XML request and massage it 
and send it visa SOAPUI, it works fine. What I did was

soapenv:Envelope (some name space URIs)
  soapenv:Header /
soapenv:Body
  saveModule
request
  Module
ModuleNameTest/ModuleName
  /Module
/request
  /saveModule
/soapenv:Body
/soapenv:Envelope

As you see, I had to change SOAP-ENV to soapenv, modify node ns5:saveModule to 
saveModule and also remove attributes such xsi:type to other child nodes

How can I , modify the request in above manner using suds.client. Documentation 
suggests to use a plugin with Client using marshalled method. But I was 
unsuccessful

Any help is greatly appreciated

Regards,
SD
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-20 Thread Chris H

On 4/19/11 3:48 AM, Lamont Nelson wrote:

1. Are you sure you want to use python because threading is not
good due

to the Global Lock (GIL)?  Is this really an issue for multi-threaded
web services as seems to be indicated by the articles from a Google
search?  If not, how do you avoid this issue in a multi-threaded process
to take advantage of all the CPU cores available?

To take advantage of the cores on your server you'll want to consider
a multi-process design instead of multi-threading. You can achieve
this with something like http://projects.unbit.it/uwsgi/, which will
allow you to manage the processes. I've used this behind apache
successfully.


2. Are there good web services frameworks available for building a REST
based service?  I admit I have looked at web2py, Django, pyramid/pylons,
and a few others.  SOAP seems to be pretty well supported but I'm not
finding the same for quick development of REST based services for
exchanging JSON or XML formatted data.  This is probably just my n00b
status, but what tools are best for building a simple REST data exchange
API?

I've personally used Pyramid to implement REST web services with
multiple data transport formats (json, xml) for the same endpoints
with minimal fuss. It's basically as simple as returning an object
from your view and defining a renderer that knows how to translate
this object to the desired format. Look at
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/renderers.html#views-which-use-a-renderer
and 
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/viewconfig.html#view-config-chapter
for more information.

Lamont


Thanks to everyone who has replied.  I have a better understanding of 
the limitations around the GIL as well as the relatively architectures 
for avoiding the issue.  Now to find the right framework for a simple 
web service.  So far I've heard pyramid the most, but others we are 
looking into include rest.ish.io, web2py, and flask.  Anyone with 
experience across these as to what is best for someone starting from 
scratch now?


Chris

--
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-19 Thread Lamont Nelson
  1. Are you sure you want to use python because threading is not
good due
 to the Global Lock (GIL)?  Is this really an issue for multi-threaded
 web services as seems to be indicated by the articles from a Google
 search?  If not, how do you avoid this issue in a multi-threaded process
 to take advantage of all the CPU cores available?

To take advantage of the cores on your server you'll want to consider
a multi-process design instead of multi-threading. You can achieve
this with something like http://projects.unbit.it/uwsgi/, which will
allow you to manage the processes. I've used this behind apache
successfully.


 2. Are there good web services frameworks available for building a REST
 based service?  I admit I have looked at web2py, Django, pyramid/pylons,
 and a few others.  SOAP seems to be pretty well supported but I'm not
 finding the same for quick development of REST based services for
 exchanging JSON or XML formatted data.  This is probably just my n00b
 status, but what tools are best for building a simple REST data exchange
 API?

I've personally used Pyramid to implement REST web services with
multiple data transport formats (json, xml) for the same endpoints
with minimal fuss. It's basically as simple as returning an object
from your view and defining a renderer that knows how to translate
this object to the desired format. Look at
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/renderers.html#views-which-use-a-renderer
and 
http://docs.pylonsproject.org/projects/pyramid/1.0/narr/viewconfig.html#view-config-chapter
for more information.

Lamont
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-18 Thread Hank Fay
Today I just happened to watch this session from PyCon 2011 on gevent and 
gunicorn: http://blip.tv/file/4883016  gevent uses greenlet, fwiw. I found it 
informative, but then I find most things informative. s

H
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-17 Thread sturlamolden
On Apr 15, 6:33 pm, Chris H chris.humph...@windsorcircle.com wrote:

 1. Are you sure you want to use python because threading is not good due
 to the Global Lock (GIL)?  Is this really an issue for multi-threaded
 web services as seems to be indicated by the articles from a Google
 search?  If not, how do you avoid this issue in a multi-threaded process
 to take advantage of all the CPU cores available?


First, if you are stupid enough to to compute-bound work in Python,
without using a library, you have worse problems than the GIL. How
incompetent would you need to be to write multi-threaded matrix
multiplication or FFTs in pure Python, and blame the GIL for
lack for performance?

Second, if you think advantage of all the CPU cores available
will make difference for an I/O bound webservice, you're living
in cloud cookoo land. How on earth will multiple CPU cores
give you or your clients a faster network connection? The network
connection is likely to saturate long before you're burning the
CPU.

Sturla
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-17 Thread sturlamolden
On Apr 16, 4:59 am, David Cournapeau courn...@gmail.com wrote:

 My experience is that if you are CPU bound, asynchronous programming
 in python can be  more a curse than a blessing, mostly because the
 need to insert scheduling points at the right points to avoid
 blocking and because profiling becomes that much harder in something
 like twisted.

I think Raymond's argument was that multi-threaded server design does
not scale well in any language. There is a reason that Windows I/O
completion ports use a pool of worker threads, and not one thread per
asynchronous I/O request. A multi-threaded design for a webservice
will hit the wall from inscalability long before CPU saturation
becomes an issue.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-17 Thread sturlamolden
On Apr 17, 12:10 am, Michael Torrie torr...@gmail.com wrote:

 Many GUI toolkits are single-threaded.  And in fact with GTK and MFC you
 can't (or shouldn't) call GUI calls from a thread other than the main
 GUI thread.

Most of them (if not all?) have a single GUI thread, and a mechanism
by which
to synchronize with the GUI thread.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-17 Thread Ian

On 15/04/2011 20:17, Dan Stromberg wrote:

On Fri, Apr 15, 2011 at 9:33 AM, Chris H
chris.humph...@windsorcircle.com  wrote:


1. Are you sure you want to use python because threading is not good due to
the Global Lock (GIL)?  Is this really an issue for multi-threaded web
services as seems to be indicated by the articles from a Google search?  If
not, how do you avoid this issue in a multi-threaded process to take
advantage of all the CPU cores available?

Concurrency in Python is a largish topic.

It's true that CPython's multithreading is poor.  In fact, running a
multithreaded CPython application on n vs 2n cores can actually take
more time on the 2n cores.

However:
1) In Jython, and likely IronPython, threading is good.

The load times of Iron Python are ssslllow!
(My tests showed startup times 4 to 6 times that of cpython on the same 
kit).

3) There's something called stackless and (similar to stackless)
greenlets.  While stackless allows you to use thousands of threads
comfortably, it's still pretty single-core.  It's essentially a fork
of CPython, and is being made a part of PyPy.  I believe greenlets are
an attempt to bring what's good about stackless to CPython, in the
form of a C extension module.
Greenlets are green threads - cooperative switching all in one system 
thread

and therefore one core. Very lightweight.


4) I've heard that in CPython 3.2, the GIL is less troublesome, though
I've not yet heard in what way.
Multiple threads still cannot run at the same time, however, if one 
thread runs too
long without a context switch, it relinquishes control and forces 
another thread to run.


This stops a low priority thread on one core, locking out a 
high-priority thread on
another. That this was happening is why 2 cores can be slower than one. 
(The overhead
of starting the second thread, finding it can't get the GIL and closing 
down again).



5) Even in CPython, I/O-bound processes are not slowed significantly
by the GIL.  It's really CPU-bound processes that are.
Its ONLY when you have two or more CPU bound threads that you may have 
issues.


Regards

Ian

--
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-17 Thread sturlamolden
On Apr 15, 6:33 pm, Chris H chris.humph...@windsorcircle.com wrote:

 1. Are you sure you want to use python because threading is not good due
 to the Global Lock (GIL)?  Is this really an issue for multi-threaded
 web services as seems to be indicated by the articles from a Google
 search?  If not, how do you avoid this issue in a multi-threaded process
 to take advantage of all the CPU cores available?


By the way:

The main issue with the GIL is all the FUD written by
people who don't properly understand the issue. It's
not easy to discern the real information from the
unqualified FUD. I whish people who think in Java
would just shut up about things they don't understand.
The problem is they think they understand more than
they do.

Also, people that write multi-threaded programs which
fails to scale from false-sharing issues, really should
not pollute the web with FUD about Python's GIL. Java's
free threading model is not better when all you use it
for is to create dirty cache lines that must be reloaded
everywhere.


Sturla
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-17 Thread sturlamolden
On Apr 17, 5:15 pm, Ian hobso...@gmail.com wrote:

  5) Even in CPython, I/O-bound processes are not slowed significantly
  by the GIL.  It's really CPU-bound processes that are.

 Its ONLY when you have two or more CPU bound threads that you may have
 issues.

And when you have a CPU bound thread, it's time to find the offending
bottleneck and analyse the issue.

Often it will be a bad choise of algorithm, for example one that is
O(N**2) instead of O(N log N). If that is the case, it is time to
recode.

If algoritmic complexity is not the problem, it is time to remember
that Python gives us a 200x speed penalty over C. Moving the
offending
code to a C library might give a sufficent speed boost.

If even that does not help, we could pick a library that uses
multi-threading internally, or we could release the GIL and use
multiple threads from Python. And if the library is not thread-safe,
it is time to use multiprocessing.


Sturla
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-16 Thread Aahz
In article e6008cc8-50f0-4d78-be78-ec6e73b97...@22g2000prx.googlegroups.com,
Raymond Hettinger  pyt...@rcn.com wrote:

Threading is really only an answer if you need to share data between
threads, if you only have limited scaling needs, and are I/O bound
rather than CPU bound

Threads are also useful for user interaction (i.e. GUI apps).  

I think that limited scaling needs to be defined, too; CherryPy
performs pretty well, and the blocking model does simplify development.

One problem that my company has run into with threading is that it's not
always obvious where you'll hit GIL blocks.  For example, one would
think that pickle.loads() releases the GIL, but it doesn't; you need to
use pickle.load() (and cStringIO if you want to do it in memory).
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

At Resolver we've found it useful to short-circuit any doubt and just
refer to comments in code as 'lies'. :-)
--Michael Foord paraphrases Christian Muirhead on python-dev, 2009-03-22
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-16 Thread Chris Angelico
On Sun, Apr 17, 2011 at 12:44 AM, Aahz a...@pythoncraft.com wrote:
 In article e6008cc8-50f0-4d78-be78-ec6e73b97...@22g2000prx.googlegroups.com,
 Raymond Hettinger  pyt...@rcn.com wrote:

Threading is really only an answer if you need to share data between
threads, if you only have limited scaling needs, and are I/O bound
rather than CPU bound

 Threads are also useful for user interaction (i.e. GUI apps).

I agree; user interaction is effectively I/O on, usually, some sort of
event queue that collects from a variety of sources; with the
specialty that, in some GUI environments, the process's first thread
is somehow special. But ultimately it's still a worker thread /
interaction thread model, which is quite a good one. The interaction
thread spends most of its time waiting for the user, maybe waiting for
STDIN, maybe waiting for a GUI event, maybe waiting on some I/O device
(TCP socket comes to mind).

Chris Angelico
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-16 Thread Jean-Paul Calderone
On Apr 16, 10:44 am, a...@pythoncraft.com (Aahz) wrote:
 In article e6008cc8-50f0-4d78-be78-ec6e73b97...@22g2000prx.googlegroups.com,
 Raymond Hettinger  pyt...@rcn.com wrote:



 Threading is really only an answer if you need to share data between
 threads, if you only have limited scaling needs, and are I/O bound
 rather than CPU bound

 Threads are also useful for user interaction (i.e. GUI apps).  


I suppose that's why most GUI toolkits use a multithreaded model.

Jean-Paul
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-16 Thread Michael Torrie
On 04/16/2011 02:53 PM, Jean-Paul Calderone wrote:
 On Apr 16, 10:44 am, a...@pythoncraft.com (Aahz) wrote:
 In article 
 e6008cc8-50f0-4d78-be78-ec6e73b97...@22g2000prx.googlegroups.com,
 Raymond Hettinger  pyt...@rcn.com wrote:



 Threading is really only an answer if you need to share data between
 threads, if you only have limited scaling needs, and are I/O bound
 rather than CPU bound

 Threads are also useful for user interaction (i.e. GUI apps).  

 
 I suppose that's why most GUI toolkits use a multithreaded model.

Many GUI toolkits are single-threaded.  And in fact with GTK and MFC you
can't (or shouldn't) call GUI calls from a thread other than the main
GUI thread.  That's not to say GUI programs don't use threads and put
the GUI it its own thread.  But GUI toolkits are often *not*
multithreaded.  They are, however, often asynchronous, which is often
more cost-effective than multi-threaded.
-- 
http://mail.python.org/mailman/listinfo/python-list


Questions about GIL and web services from a n00b

2011-04-15 Thread Chris H
So I'm in a startup where we are considering using python as our primary 
development language for all the wonderful reasons you would expect.  
However, I've had a couple of things come up from mentors and other 
developers that is causing me to rethink whether python is the right 
choice.  I hope this is the right list for this type of discussion 
(please forgive me if not and point me in the right direction).


We are looking to build an e-commerce integration product so the 
majority of our work will be linking external SOAP and REST based web 
service API's to our own REST based API and backend database.I have 
had the following comments/questions come to me:


1. Are you sure you want to use python because threading is not good due 
to the Global Lock (GIL)?  Is this really an issue for multi-threaded 
web services as seems to be indicated by the articles from a Google 
search?  If not, how do you avoid this issue in a multi-threaded process 
to take advantage of all the CPU cores available?


2. Are there good web services frameworks available for building a REST 
based service?  I admit I have looked at web2py, Django, pyramid/pylons, 
and a few others.  SOAP seems to be pretty well supported but I'm not 
finding the same for quick development of REST based services for 
exchanging JSON or XML formatted data.  This is probably just my n00b 
status, but what tools are best for building a simple REST data exchange 
API?


Thanks,
Chris
--
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-15 Thread Chris H

On 4/15/11 1:03 PM, Tim Wintle wrote:

On Fri, 2011-04-15 at 12:33 -0400, Chris H wrote:

1. Are you sure you want to use python because threading is not good
due to the Global Lock (GIL)?  Is this really an issue for
multi-threaded web services as seems to be indicated by the articles
from a Google search?  If not, how do you avoid this issue in a
multi-threaded process to take advantage of all the CPU cores
available?

Is the limiting factor CPU?

If it isn't (i.e. you're blocking on IO to/from a web service) then the
GIL won't get in your way.

If it is, then run as many parallel *processes* as you have cores/CPUs
(assuming you're designing an application that can have multiple
instances running in parallel so that you can run over multiple servers
anyway).

Tim Wintle


Great question.  At this point, there isn't a limiting factor, but yes 
the concern is around CPU in the future with lots of threads handling 
many simultaneous transactions.


Chris
--
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-15 Thread Tim Wintle
On Fri, 2011-04-15 at 12:33 -0400, Chris H wrote:
 
 1. Are you sure you want to use python because threading is not good
 due to the Global Lock (GIL)?  Is this really an issue for
 multi-threaded web services as seems to be indicated by the articles
 from a Google search?  If not, how do you avoid this issue in a
 multi-threaded process to take advantage of all the CPU cores
 available?

Is the limiting factor CPU?

If it isn't (i.e. you're blocking on IO to/from a web service) then the
GIL won't get in your way.

If it is, then run as many parallel *processes* as you have cores/CPUs
(assuming you're designing an application that can have multiple
instances running in parallel so that you can run over multiple servers
anyway).

Tim Wintle

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-15 Thread Dan Stromberg
On Fri, Apr 15, 2011 at 9:33 AM, Chris H
chris.humph...@windsorcircle.com wrote:

 1. Are you sure you want to use python because threading is not good due to
 the Global Lock (GIL)?  Is this really an issue for multi-threaded web
 services as seems to be indicated by the articles from a Google search?  If
 not, how do you avoid this issue in a multi-threaded process to take
 advantage of all the CPU cores available?

Concurrency in Python is a largish topic.

It's true that CPython's multithreading is poor.  In fact, running a
multithreaded CPython application on n vs 2n cores can actually take
more time on the 2n cores.

However:
1) In Jython, and likely IronPython, threading is good.
2) In CPython, there's a module called multiprocessing that's a
little slower than a good threading implementation, but gives looser
coupling between the discrete components of your software.
Programming with multiprocessing feels similar to programming with
threads - you have safe queues, safe scalars or simple arrays in
shared memory, etc.
3) There's something called stackless and (similar to stackless)
greenlets.  While stackless allows you to use thousands of threads
comfortably, it's still pretty single-core.  It's essentially a fork
of CPython, and is being made a part of PyPy.  I believe greenlets are
an attempt to bring what's good about stackless to CPython, in the
form of a C extension module.
4) I've heard that in CPython 3.2, the GIL is less troublesome, though
I've not yet heard in what way.
5) Even in CPython, I/O-bound processes are not slowed significantly
by the GIL.  It's really CPU-bound processes that are.
6) PyPy is quite a bit faster than CPython for non-concurrent
applications, but also has a GIL.
7) Cython, which compiles a dialect of Python into faster C
(especially if you give it a few type declarations), has
GIL-implications.  I've heard that Cython can selectively release the
GIL on request, but I've also heard that C extension modules always
release the GIL.  This seems contradictory, and merits further
investigation.

It's important to remember: Python != CPython.  CPython remains the
reference implementation, and runs the most Python code, but there are
other, significant implementations now.

This page looks like a summary of many (more) options:
http://wiki.python.org/moin/Concurrency/

 2. Are there good web services frameworks available for building a REST
 based service?  I admit I have looked at web2py, Django, pyramid/pylons, and
 a few others.  SOAP seems to be pretty well supported but I'm not finding
 the same for quick development of REST based services for exchanging JSON or
 XML formatted data.  This is probably just my n00b status, but what tools
 are best for building a simple REST data exchange API?

I have no experience with REST, but Grig of SoCal Piggies did a
presentation on restish a while back.  You might see if you can find
something about that.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-15 Thread Raymond Hettinger
  Is the limiting factor CPU?

  If it isn't (i.e. you're blocking on IO to/from a web service) then the
  GIL won't get in your way.

  If it is, then run as many parallel *processes* as you have cores/CPUs
  (assuming you're designing an application that can have multiple
  instances running in parallel so that you can run over multiple servers
  anyway).

 Great question.  At this point, there isn't a limiting factor, but yes
 the concern is around CPU in the future with lots of threads handling
 many simultaneous transactions.

In the Python world, the usual solution to high transaction loads is
to use event-driven processing (using an async library such as
Twisted) rather than using multi-threading which doesn't scale well in
any language.

Also, the usual way to take advantage of multiple-cores is to run
multiple pythons in separate processes.

Threading is really only an answer if you need to share data between
threads, if you only have limited scaling needs, and are I/O bound
rather than CPU bound


Raymond

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about GIL and web services from a n00b

2011-04-15 Thread David Cournapeau
On Sat, Apr 16, 2011 at 10:05 AM, Raymond Hettinger pyt...@rcn.com wrote:
  Is the limiting factor CPU?

  If it isn't (i.e. you're blocking on IO to/from a web service) then the
  GIL won't get in your way.

  If it is, then run as many parallel *processes* as you have cores/CPUs
  (assuming you're designing an application that can have multiple
  instances running in parallel so that you can run over multiple servers
  anyway).

 Great question.  At this point, there isn't a limiting factor, but yes
 the concern is around CPU in the future with lots of threads handling
 many simultaneous transactions.

 In the Python world, the usual solution to high transaction loads is
 to use event-driven processing (using an async library such as
 Twisted) rather than using multi-threading which doesn't scale well in
 any language.

My experience is that if you are CPU bound, asynchronous programming
in python can be  more a curse than a blessing, mostly because the
need to insert scheduling points at the right points to avoid
blocking and because profiling becomes that much harder in something
like twisted.

It depends of course of the application, but designing from the ground
up with the idea of running multiple processes is what seems to be the
most natural way of scaling - this does not prevent using async in
each process. This has its own issues, though (e.g. in terms of
administration and monitoring).

Chris, the tornado documention mentions a simple way to get multiple
processes on one box: http://www.tornadoweb.org/documentation (section
mentiong nginx for load balancing). The principle is quite common and
is applicable to most frameworks (the solution is not specific to
tornado).

cheers.

David
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to make a web services in python ???

2010-09-20 Thread Ariel
Soap web services I think.

On Fri, Sep 17, 2010 at 5:35 PM, Hidura hid...@gmail.com wrote:

 What kind of web-service you have in mind

 2010/9/17, Ariel isaacr...@gmail.com:
  Hi everybody, I need some help to find documentation about how to
 implements
  web services in python, could you help me please ???
  Regards
  Thanks in advance
  Ariel
 

 --
 Enviado desde mi dispositivo móvil

 Diego I. Hidalgo D.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to make a web services in python ???

2010-09-20 Thread Simon Brunning
On 20 September 2010 16:09, Ariel isaacr...@gmail.com wrote:
 Soap web services I think.

I think the cool kids would be using https://fedorahosted.org/suds/,
but for the fact that the cool kids all build REST
(http://oreilly.com/catalog/9780596805838) rather than SOAP these
days.

-- 
Cheers,
Simon B.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to make a web services in python ???

2010-09-20 Thread Ian

 On 20/09/2010 16:09, Ariel wrote:

Soap web services I think.

On Fri, Sep 17, 2010 at 5:35 PM, Hidura hid...@gmail.com 
mailto:hid...@gmail.com wrote:


What kind of web-service you have in mind

2010/9/17, Ariel isaacr...@gmail.com mailto:isaacr...@gmail.com:
 Hi everybody, I need some help to find documentation about how
to implements
 web services in python, could you help me please ???
 Regards
 Thanks in advance
 Ariel




Hi Ariel,

There are a few pages on creating a TCP server and a Threaded server in 
Chapters 18 and 19 of Rapid GUI Programming with Python and Qt by Mark 
Summerfield.


It shows you how to handle sockets, threading , and the locking of 
shared data constructs.


Regards

Ian




-- 
http://mail.python.org/mailman/listinfo/python-list


How to make a web services in python ???

2010-09-17 Thread Ariel
Hi everybody, I need some help to find documentation about how to implements
web services in python, could you help me please ???
Regards
Thanks in advance
Ariel
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to make a web services in python ???

2010-09-17 Thread Hidura
What kind of web-service you have in mind

2010/9/17, Ariel isaacr...@gmail.com:
 Hi everybody, I need some help to find documentation about how to implements
 web services in python, could you help me please ???
 Regards
 Thanks in advance
 Ariel


-- 
Enviado desde mi dispositivo móvil

Diego I. Hidalgo D.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-30 Thread John Gordon
In 4a92ee38$0$1627$742ec...@news.sonic.net John Nagle na...@animats.com 
writes:

 John Gordon wrote:
  I'm developing a program that will use web services, which I have never
  used before.

 Web services in general, or some Microsoft interface?

Microsoft.  Exchange Web Services, specifically.

-- 
John Gordon   A is for Amy, who fell down the stairs
gor...@panix.com  B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb Tinies

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-26 Thread Piet van Oostrum
 Diez B. Roggisch de...@nospam.web.de (DBR) wrote:

DBR John Gordon schrieb:
 I'm developing a program that will use web services, which I have never
 used before.
 
 There are several tutorials out there that advise you to get the WSDL
 and then call a method (such as wsdl2py) that inspects the wsdl and
 automagically generates the python classes and methods you need for
 interacting with that web service.
 
 I've tried this, and have run into a number of roadblocks that have left
 me frustrated.

DBR Welcome to the wonderful world of SOAP. If you didn't know - the S stands
DBR for simple [1].

Stood. Like the O was supposed to stand for Object. Now out of shame
they tend to talk more about `Service Oriented Architecture Protocol'.
Whichever is a greater abomination you may choose (that almost sounds
like Yoda-speak).
-- 
Piet van Oostrum p...@cs.uu.nl
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: p...@vanoostrum.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-25 Thread John Gordon
In 4a936e84$0$31337$9b4e6...@newsspool4.arcor-online.net Stefan Behnel 
stefan...@behnel.de writes:

  I tried WSDL.Proxy() from the SOAPpy package and eventually end up
  with this error:
  
  xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, 
  column 6

 Is that while parsing the WSDL file? Have you tried pushing it through an
 XML parser yourself (or opening it with an XML editor) to see if it really
 is XML?

The 'invalid token' error happens if the argument to WSDL.Proxy() is a
string containing a URL beginning with https.  (It doesn't happen with a
http URL, but I'm stuck with https.)

As a next step, I grabbed the content from the https url in a browser,
saved it to a file, inserted it into the python code as a large string,
and passed that string to WSDL.Proxy().

That produced a KeyError 'targetNamespace' from this snippet of XML:

  xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;
xs:import 
namespace=http://schemas.microsoft.com/exchange/services/2006/messages; 
schemaLocation=messages.xsd/
  /xs:schema

I looked at the code and it apparently requires that the parent tag of
xs:import have a targetNamespace attribute.  So I made one up and added
it, like so:

  xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; targetNamespace=xyz

I have no idea if this was the right thing to do, but it did let me advance
to the next error:

  Traceback (most recent call last):
  File soappytest.py, line 1020, in ?
server = jrgWSDL.Proxy(wsdlFile)
  File /home/gordonj/wsdl/jrgSOAPpy/jrgWSDL.py, line 75, in __init__
service = self.wsdl.services[0]
  File /home/gordonj/wsdl/jrgwstools/Utility.py, line 631, in __getitem__
return self.list[key]
IndexError: list index out of range

After poking around in the code a bit more, I think that self.wsdl.services
is supposed to be a collection of all the services offered by the wsdl, but
it's actually empty, which is why it throws an error when it tries to
access the first element.

So that's where I'm stuck at the moment.  I have no idea why
self.wsdl.services isn't getting populated correctly -- or even if that's
the real problem!

Any suggestions?

-- 
John Gordon   A is for Amy, who fell down the stairs
gor...@panix.com  B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb Tinies

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-25 Thread Stefan Behnel
John Gordon wrote:
 Any suggestions?

Well, yes, see the link I posted.

http://effbot.org/zone/element-soap.htm

That might actually be the easiest way to get your stuff done, and it
avoids external dependencies (well, except for ElementTree, if you continue
to use Python = 2.4).

Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list


Web Services examples using raw xml?

2009-08-24 Thread John Gordon
I'm developing a program that will use web services, which I have never
used before.

There are several tutorials out there that advise you to get the WSDL
and then call a method (such as wsdl2py) that inspects the wsdl and
automagically generates the python classes and methods you need for
interacting with that web service.

I've tried this, and have run into a number of roadblocks that have left
me frustrated.

For example I tried wsdl2py() from the ZSI package, and got this error:

Error loading services.xml:
namespace of schema and import match

I tried WSDL.Proxy() from the SOAPpy package and eventually end up
with this error:

xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 6

I tried Client() from the suds package, and got this error:

  File /usr/lib/python2.3/site-packages/suds/client.py, line 59
@classmethod
^
SyntaxError: invalid syntax

I'm not an expert; I have no idea what any of these errors mean, and I
have no idea how to go about resolving them.

So I decided to take a step back and see if I could bypass all the fancy
automagic methods and just create my own SOAP xml message from scratch
and then send it to the web server.  That would work, surely.

But I'm having a tough time finding some good examples of that, because
all the tutorials I've found just tell you to use the aforementioned
magic methods, which unfortunately don;t seem to be working for me.

Does anyone have some good examples of code that builds a raw xml SOAP
message and sends it to a webserver, then reads the response?  I think
that would be a good place for me to start.

Thanks for any replies.

-- 
John Gordon   A is for Amy, who fell down the stairs
gor...@panix.com  B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb Tinies

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-24 Thread John Nagle

John Gordon wrote:

I'm developing a program that will use web services, which I have never
used before.


   Web services in general, or some Microsoft interface?

John Nagle
--
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-24 Thread Diez B. Roggisch

John Gordon schrieb:

I'm developing a program that will use web services, which I have never
used before.

There are several tutorials out there that advise you to get the WSDL
and then call a method (such as wsdl2py) that inspects the wsdl and
automagically generates the python classes and methods you need for
interacting with that web service.

I've tried this, and have run into a number of roadblocks that have left
me frustrated.


Welcome to the wonderful world of SOAP. If you didn't know - the S 
stands for simple [1].


I don't want to go into a rant about the why and how SOAP sucks, and why 
it's support in Python is lacking - to say the least.


What we did in a similar situation was this:

 - got hold of a client that was able to speak with the server. In your 
case, a .NET-client shouldn't be hard to get working.
 - monitor the traffic that went on between the client and server using 
some HTTP-proxy or WireShark.
 - mimicked the server-side protocol by dynamising the sniffed traffic 
through an XML-templating tool, genshi in our case.


Sounds archaic, and complicated? Yes. Blame SOAP (and Microsoft, it's 
biggest proponent)



Diez


[1] http://72.249.21.88/nonintersecting/2006/11/15/the-s-stands-for-simple/
--
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-24 Thread Asun Friere
On Aug 25, 5:41 am, John Gordon gor...@panix.com wrote:


   File /usr/lib/python2.3/site-packages/suds/client.py, line 59
     @classmethod
     ^
 SyntaxError: invalid syntax


If memory serves me correctly, decorators were introduced in
python2.4.  That would account for your SyntaxError.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web Services examples using raw xml?

2009-08-24 Thread Stefan Behnel
John Gordon wrote:
 I'm developing a program that will use web services, which I have never
 used before.
 
 There are several tutorials out there that advise you to get the WSDL
 and then call a method (such as wsdl2py) that inspects the wsdl and
 automagically generates the python classes and methods you need for
 interacting with that web service.

There are a number of tools that help in building WS clients. One is
soaplib. It's pretty easy to use and was recently ported (V0.8) to the lxml
XML library. I actually still use a 0.7.x, also fixed to work with Py2.3.

It doesn't do any code generation. Instead, you have to write up a short
code snippet that describes the WS interface. Works pretty well.


 I tried WSDL.Proxy() from the SOAPpy package and eventually end up
 with this error:
 
 xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 
 6

Is that while parsing the WSDL file? Have you tried pushing it through an
XML parser yourself (or opening it with an XML editor) to see if it really
is XML?

Or does this happen while communicating with the remote side? (in which
case I'd trap the wire and look at the transferred XML messages)


 I tried Client() from the suds package, and got this error:
 
   File /usr/lib/python2.3/site-packages/suds/client.py, line 59
 @classmethod
 ^
 SyntaxError: invalid syntax

That's a Py2.4-ism. You can make the code backwards compatible by replacing all

@classmethod
def some_function():
...

lines with

def some_function():
...

some_function = classmethod(some_function)

That's how I fixed up soaplib, BTW.


 So I decided to take a step back and see if I could bypass all the fancy
 automagic methods and just create my own SOAP xml message from scratch
 and then send it to the web server.  That would work, surely.

Yes, that's a good way also. And it avoids an additional dependency on a
convoluted SOAP library.


 But I'm having a tough time finding some good examples of that, because
 all the tutorials I've found just tell you to use the aforementioned
 magic methods, which unfortunately don;t seem to be working for me.

http://effbot.org/zone/element-soap.htm

Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list


Interface to Exchange Calendar via web services

2009-08-13 Thread John Gordon
I have a python app that needs to look up a person's Exchage Calendar
entries to see if they are currently available.

Does anyone have any code examples for communicating with EWS (Exchange
Web Services)?  I've found some code in Java and CSharp to do this, but
none in python so far.

Thanks!

-- 
John Gordon   A is for Amy, who fell down the stairs
gor...@panix.com  B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb Tinies

-- 
http://mail.python.org/mailman/listinfo/python-list


Web services

2009-01-26 Thread loial
I am trying to learn about web services and how to interface with a
3rd party web service from python.

Can anyone point me at an idiots guide/tutorial for someone who is new
to web services?

--
http://mail.python.org/mailman/listinfo/python-list


Re: Web services

2009-01-26 Thread Chris Rebert
On Mon, Jan 26, 2009 at 8:11 AM, loial jldunn2...@googlemail.com wrote:
 I am trying to learn about web services and how to interface with a
 3rd party web service from python.

 Can anyone point me at an idiots guide/tutorial for someone who is new
 to web services?

The XML-RPC client module in the std lib (xmlrpclib) includes an
example: http://docs.python.org/library/xmlrpclib.html#example-of-client-usage
And the XML-RPC server server in the stdlib also includes a full
client-server example:
http://docs.python.org/library/simplexmlrpcserver.html#simplexmlrpcserver-example

Cheers,
Chris

-- 
Follow the path of the Iguana...
http://rebertia.com
--
http://mail.python.org/mailman/listinfo/python-list


web services ssl client

2008-11-28 Thread Luca Tebaldi
Hi,
should I build a client for web services that require authentication based
on a ca (pem and crt), I'm trying to use soappy but not work... someone have
any idea or can tell me where to find a tutorial?

tnx a lot!

Luca

-- 
skype:luca.tebaldi
bookmark: http://del.icio.us/lucatebaldi
foto: http://www.flickr.com/photos/teba/tags/
linkedin: http://www.linkedin.com/in/lucatebaldi
--
http://mail.python.org/mailman/listinfo/python-list


High speed web services

2007-12-14 Thread herbasher
Hello!

I'm wondering: I'm really not so much into heavy frameworks like
Django, because I need to build a fast, simple python based
webservice.

That is, a request comes in at a certain URL, and I want to utilize
Python to respond to that request.

Ideally, I want the script to be cached so it doesn't have to be re-
parsed everytime.


Phrasing this into a question:
How do I built highly available and lighting fast Python webservice?

I'm open to using any kind of server software, and all that under a
*nix based system.



thanks,
Herb
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: High speed web services

2007-12-14 Thread Matt Nordhoff
herbasher wrote:
 I'm wondering: I'm really not so much into heavy frameworks like
 Django, because I need to build a fast, simple python based
 webservice.
 
 That is, a request comes in at a certain URL, and I want to utilize
 Python to respond to that request.
 
 Ideally, I want the script to be cached so it doesn't have to be re-
 parsed everytime.
 
 
 Phrasing this into a question:
 How do I built highly available and lighting fast Python webservice?
 
 I'm open to using any kind of server software, and all that under a
 *nix based system.

Well, you could simply use FastCGI/SCGI/mod_python/mod_wsgi without any
framework on top of it. It's not much harder than writing a CGI script.

If you're doing something with multiple actual web pages or something,
just use a framework. It'll be fast enough.
-- 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: High speed web services

2007-12-14 Thread Jarek Zgoda
herbasher pisze:

 How do I built highly available and lighting fast Python webservice?

Write optimized code and use it in conjunction with twisted.web.

-- 
Jarek Zgoda
http://zgodowie.org/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: High speed web services

2007-12-14 Thread Manlio Perillo
Il Fri, 14 Dec 2007 11:07:49 -0800, herbasher ha scritto:

 Hello!
 
 I'm wondering: I'm really not so much into heavy frameworks like Django,
 because I need to build a fast, simple python based webservice.
 
 That is, a request comes in at a certain URL, and I want to utilize
 Python to respond to that request.
 
 Ideally, I want the script to be cached so it doesn't have to be re-
 parsed everytime.
 
 
 Phrasing this into a question:
 How do I built highly available and lighting fast Python webservice?
 
 I'm open to using any kind of server software, and all that under a *nix
 based system.
 

I'm developing a mod_wsgi module for Nginx (http://www.nginx.net).
Nginx is a very fast asynchronous and multiprocess web server.

The development is still in alpha status:
http://hg.mperillo.ath.cx/nginx/mod_wsgi/


If your application is not I/O bound mod_wsgi for nginx can be a good 
solution, otherwise you should look for mod_wsgi for Apache.



Manlio Perillo
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-26 Thread David E. Konerding DSD staff
On 2007-03-22, Jaroslaw Zabiello [EMAIL PROTECTED] wrote:
 I try to connect to web services (written in C#/.NET) with latest ZSI
 2.0rc3 library. It just does not work.

 from ZSI.ServiceProxy import ServiceProxy 
 wsdl = 'http://192.168.0.103/NewWebServices/TemplateInsert.asmx?wsdl' 
 print ServiceProxy(wsdl, tracefile=sys.stdout) 

 C:\opt\Python25\lib\site-packages\zsi-2.0_rc3-py2.5.egg\ZSI\wstools\WSDLTools.py,
 line 1116, in getAddressBinding 
 WSDLError: No address binding found in port. 

 This pythonic library must be stupid, because I have no problem to connect
 with... Ruby:

Actually, it's likely just more tolerant of an error in your WSDL
(leaving out your address binding).

Many of the WSDL toolkits ignore leaving out the address binding in the port 
type.

The java tooling seems to work that way and apparently ruby is the same way.

Try fixing your WSDL, then try again.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-26 Thread Jaroslaw Zabiello
Dnia Mon, 26 Mar 2007 20:06:28 + (UTC), David E. Konerding DSD staff
napisał(a):

 Try fixing your WSDL, then try again.

The problem is I see no errors in my WSDL. Pythonic implementation of SOAP
is just crapy.

-- 
Jaroslaw Zabiello
http://blog.zabiello.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-26 Thread Ravi Teja
On Mar 26, 3:47 pm, Jaroslaw Zabiello [EMAIL PROTECTED] wrote:
 Dnia Mon, 26 Mar 2007 20:06:28 + (UTC), David E. Konerding DSD staff
 napisa³(a):

  Try fixing your WSDL, then try again.

 The problem is I see no errors in my WSDL. Pythonic implementation of SOAP
 is just crapy.

 --
 Jaroslaw Zabiellohttp://blog.zabiello.com

As Lawrence suggested, did you try soaplib? It is a newer project. Try
the more recent svn version
svn co https://svn.optio.webfactional.com/soaplib/trunk soaplib

In my experience, it is more compliant than ZSI, although I mainly
used it as a server than a client.

Ravi Teja.

-- 
http://mail.python.org/mailman/listinfo/python-list


ZSI, SOAP and .NET web services - problem

2007-03-22 Thread Jaroslaw Zabiello
I try to connect to web services (written in C#/.NET) with latest ZSI
2.0rc3 library. It just does not work.

from ZSI.ServiceProxy import ServiceProxy 
wsdl = 'http://192.168.0.103/NewWebServices/TemplateInsert.asmx?wsdl' 
print ServiceProxy(wsdl, tracefile=sys.stdout) 

C:\opt\Python25\lib\site-packages\zsi-2.0_rc3-py2.5.egg\ZSI\wstools\WSDLTools.py,
line 1116, in getAddressBinding 
WSDLError: No address binding found in port. 

This pythonic library must be stupid, because I have no problem to connect
with... Ruby:

require 'soap/wsdlDriver'
require 'rexml/document'
wsdl = 'http://192.168.0.103/NewWebServices/TemplateInsert.asmx?wsdl'
soap = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
#soap.wiredump_file_base = 'soapresult'
p soap.templateInsert('')

It is a shame why Python still has so poor SOAP implementation. Ruby has
SOAP in *standard library*, Python - not. Even PHP5 has very good SOAP
library built in. 

I tried to use different library - SOAPpy, but I couldn't. It requires
fpconst library which cannot be installed because its server does not
respond at all. What a shit...

Why nobody wants to add SOAP to standard Python library? XML-RPC was added
and it works without any problems.

-- 
Jarosław Zabiełło
http://blog.zabiello.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-22 Thread Laszlo Nagy

 I tried to use different library - SOAPpy, but I couldn't. It requires
 fpconst library which cannot be installed because its server does not
 respond at all. What a shit...
   
I concur! When I tried to use ZSI the first time, it turned out it has 
no support for attachments. Next time I it turned out that it requires 
PyXML, which has no support and cannot be installed for Window + Python 
2.5. Then I needed to use WSSE login, and then I wanted to authenticate 
with x509. Too many problems. SOAP support for Python is bad indeed.

 Why nobody wants to add SOAP to standard Python library? XML-RPC was added
 and it works without any problems

Unfortunately, cursing won't help. It would be the best to join the ZSI 
group - it is where we can help. However, it is an interesting question. 
Ruby has smaller community, how could they implement a standard SOAP lib?

My personal opinion is that SOAP is a piece of shit itself. It is 
hampered from the beginning. If you are interested why, read this:

http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple/ 


XML-RPC is a fantastic, often undervalued protocol. You can create a 
new, secure XML-RPC server in Python within 5 minutes. You can write a 
client for it within one minue. It is REALLY simple. I'm using it 
continuously.

In contrast, SOAP is overcomplicated and anything but simple. No one 
should create new web services using SOAP. We have enough problems with 
the existing ones. :-(

Despite SOAP is even not a finished standard, big software companies are 
pushing the technology, can someone explain why? Is it because it only 
works correctly with Java and .NET? I guess the reasons are quite 
financial. :-(

  Laszlo



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-22 Thread Jaroslaw Zabiello
Dnia Thu, 22 Mar 2007 18:44:31 +0100, Laszlo Nagy napisał(a):

 However, it is an interesting question.  Ruby has smaller community, 
 how could they implement a standard SOAP lib?

Yes. It is interesting why it is so difficult to make it working for
Python.

 My personal opinion is that SOAP is a piece of shit itself. It is 
 hampered from the beginning. If you are interested why, read this:
 
 http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple/
  

Hehe, it was good. :)


 XML-RPC is a fantastic, often undervalued protocol. You can create a 
 new, secure XML-RPC server in Python within 5 minutes. You can write a 
 client for it within one minue. It is REALLY simple. I'm using it 
 continuously.
 
 In contrast, SOAP is overcomplicated and anything but simple. No one 
 should create new web services using SOAP. We have enough problems with 
 the existing ones. :-(

I agree. The problem is, I have to live with this stupid, poor implemented
M$ technology. Ruby and with its standard SOAP library is able to live. Why
Python cannnot? 

-- 
Jaroslaw Zabiello
http://blog.zabiello.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-22 Thread Jarek Zgoda
Jaroslaw Zabiello napisał(a):

 However, it is an interesting question.  Ruby has smaller community, 
 how could they implement a standard SOAP lib?
 
 Yes. It is interesting why it is so difficult to make it working for
 Python.

It is not difficult to write in .NET a client for the service
implemented on .NET platform. This is interoperability as understood by
Microsoft. BEA, IBM Oracle and others aren't any better.

If you really must write client for this service, go and do it in Ruby,
if it works.

-- 
Jarek Zgoda
http://jpa.berlios.de/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-22 Thread Paul Boddie
Jaroslaw Zabiello wrote:

 I tried to use different library - SOAPpy, but I couldn't. It requires
 fpconst library which cannot be installed because its server does not
 respond at all.

Locating fpconst has been quite a challenge in the past, but a search
for fpconst on Google yielded the Python Package Index entry pretty
quickly:

http://cheeseshop.python.org/pypi/fpconst/0.7.2

I believe the package archive is available directly from the above
location, but you can also find source packages for various GNU/Linux
distributions, BSDs, and so on. On the first search results page there
were links to such details for Fedora, FreeBSD, Darwin and Debian.

Paul

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-22 Thread Jaroslaw Zabiello
Dnia Thu, 22 Mar 2007 22:48:26 +0100, Jarek Zgoda napisał(a):

 If you really must write client for this service, go and do it in Ruby,
 if it works.

I cannot. I am using Pylons framework so I have to use Python. Ruby solves
this problem but not others, like its low speed.

-- 
Jaroslaw Zabiello
http://blog.zabiello.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ZSI, SOAP and .NET web services - problem

2007-03-22 Thread Lawrence Oluyede
Jaroslaw Zabiello [EMAIL PROTECTED] wrote:
 Why nobody wants to add SOAP to standard Python library? XML-RPC was added
 and it works without any problems.

I think because SOAP is kinda crappy :-)

Did you try soaplib? http://trac.optio.webfactional.com/

I've never used it (nor SOAP in a while) but seems promising

-- 
Lawrence, oluyede.org - neropercaso.it
It is difficult to get a man to understand 
something when his salary depends on not
understanding it - Upton Sinclair
-- 
http://mail.python.org/mailman/listinfo/python-list


Calling Python Web Services from C#

2007-02-27 Thread jvframework
I have a C# .NET cliente calling a Python web services. I pass two
string values to web service and I wanna receive a string from the
method.

But, the server side receive my string values and the client side only
display a empty string ().

I generate a C# Proxy class from the python web services WSDL with
wsdl.exe tool.

Any idea about this problem?

Regards.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Calling Python Web Services from C#

2007-02-27 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote:

 I have a C# .NET cliente calling a Python web services. I pass two
 string values to web service and I wanna receive a string from the
 method.
 
 But, the server side receive my string values and the client side only
 display a empty string ().
 
 I generate a C# Proxy class from the python web services WSDL with
 wsdl.exe tool.
 
 Any idea about this problem?

Not until you provide some more detail. Read this on how to do so properly:

http://www.catb.org/~esr/faqs/smart-questions.html


Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


SOAP web services

2006-08-29 Thread Yusnel Rojas
I'm trying to make the wsdl asociated with this sample but I cannot make it workimport SOAPpydef doUpper(word): return word.upper()server = SOAPpy.SOAPServer((, 8000))
server.registerFunction(doUpper)server.registerFunction(who)server.serve_forever()can anyone tell me how to do this?anyone who nkows something about SOAPpy.wstools.WSDL?thanks
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: python soap web services

2006-05-13 Thread Butternut squash
Diez B. Roggisch wrote:

 Butternut squash wrote:
 
 Is there any reason why there isn't any python library that makes
 using soap as easy as how microsoft .net makes it.
 
 I mean I write rudimentary asmx files call them from a webbrowser.
 The WSDL is generated and then there is documentation and a form to
 invoke a function.
 
 The WSDL will never as easily be created as in .NET/JAVA, as Python lacks
 static typing annotations that are used by the WSDL-generators. So either
 someone defines his own type annotation theme for that purpose that can be
 used to infer the WSDL  - or you write WSDL yourself. Which is a major
 PITA, as the whole SOAP mess.
 
 Ravi OTH has pointed out _running_ a SOAP service is easy as cake.


I agree python soap is pretty easy to use.  Just a bit harder to use the c#
classic way to call a web service.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python soap web services

2006-05-12 Thread Ravi Teja
 Is there any reason why there isn't any python library that makes
 using soap as easy as how microsoft .net makes it.

SOAP with Python is easy too in a different sort of way. I don't know
about the equivalent for autogenerating WSDL bit as in .NET.

#!/usr/bin/env python
def hello():
  return Hello, world
import ZSI
ZSI.dispatch.AsCGI()

And you have SOAP available on ANY web server.

More here.
http://pywebsvcs.sourceforge.net/zsi.html
http://diveintopython.org/soap_web_services/index.html

 When do you think someone will make this available for python web service??
When? Will let you know soon as my crystal ball gets delivered :-)
Seriously, whenever someone gets that itch to scratch since that's how
things get done in OSS usually.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python soap web services

2006-05-12 Thread Diez B. Roggisch
Butternut squash wrote:

 Is there any reason why there isn't any python library that makes
 using soap as easy as how microsoft .net makes it.
 
 I mean I write rudimentary asmx files call them from a webbrowser.
 The WSDL is generated and then there is documentation and a form to
 invoke a function.

The WSDL will never as easily be created as in .NET/JAVA, as Python lacks
static typing annotations that are used by the WSDL-generators. So either
someone defines his own type annotation theme for that purpose that can be
used to infer the WSDL  - or you write WSDL yourself. Which is a major
PITA, as the whole SOAP mess. 

Ravi OTH has pointed out _running_ a SOAP service is easy as cake.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


python soap web services

2006-05-11 Thread Butternut squash
Is there any reason why there isn't any python library that makes 
using soap as easy as how microsoft .net makes it.

I mean I write rudimentary asmx files call them from a webbrowser.
The WSDL is generated and then there is documentation and a form to
invoke a function.

When do you think someone will make this available for python web service??
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: 有關於 Mining google web services : Building applications with the Google API這本書的範例

2006-04-22 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with:
 ?z?n?A
   ?O?o?A?e???b???s Mining Google Web Services
: Building Applications with
 the Google API[EMAIL PROTECTED] 6??Using SQL Server as a
 Database??
 ?M?B?A???q???w?g?w??SQL Server 2000
 sp4?A?b?d???{?A.net?X?{?F
 ?u?L?k?B?z?~???p: System.Data.SqlClient.SqlException: SQL
 Server
 [EMAIL PROTECTED]@?U?C?P???U??.
 Thank you.

It helps if you post in ASCII and English.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
 Frank Zappa
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: 有關於 Mining google web services : Building applications with the Google API這本書的範例

2006-04-22 Thread pou
I have found the way to solve .
So long as alter and establish reading account number and password of
the database , finish. 
Thank you very mush.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Calling Web Services from Python

2006-04-11 Thread Ivan Zuzak
m.banaouas wrote:
 Can you tell us more about SOAPpy bug ?
 Is it about authentication ?
 
 Ivan Zuzak a écrit :
 
 ...
 I need a package/tool that generates web service proxies that will do 
 all the low-level HTTP work. (Someting like the WSDL.EXE tool in .NET 
 Framework) The ZSI and SOAPy packages [1] that i found (should) have 
 those functionalities but either have a bug (SOAPy) or either do not 
 work for arbitrary web services (ZSI). ...

SOAPy : http://soapy.sourceforge.net/
SOAPPy : http://pywebsvcs.sourceforge.net/

The bugged one is SOAPy (parsing errors and something else). I just
downloaded and tried SOAPPy and that one crashes too. I get an Index
out of range error while parsing the wsdl ( in XMLSchema.py ). The
traceback is a bit long, so I wont list the whole thing here.

Bellow this message is the wsdl of the service for which im trying to
get a proxy. If anyone manages to get a proxy out of it - please let me
know :).

Thank you for your help,
Ivan

 WSDL START 

?xml version=1.0 encoding=utf-8?
wsdl:definitions xmlns:s1=http://www.ris.fer.hr/overlay/addressing;
xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:s=http://www.w3.org/2001/XMLSchema;
xmlns:s3=http://www.ris.fer.hr/OpenCollectives/CoopetitionServices/MailBox/MessageStatistics;
 

xmlns:s2=http://www.ris.fer.hr/OpenCollectives/CoopetitionServices/XmlDoc;
xmlns:s4=http://ris.zemris.fer.hr/remotingSchema;
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:tns=http://www.ris.fer.hr/OpenCollectives/CoopetitionServices/MailBox; 

xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/;
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
targetNamespace=http://www.ris.fer.hr/OpenCollectives/CoopetitionServices/MailBox;
 

xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
   wsdl:types
 s:schema elementFormDefault=qualified
targetNamespace=http://www.ris.fer.hr/OpenCollectives/CoopetitionServices/MailBox;
   s:import namespace=http://www.ris.fer.hr/overlay/addressing; /
   s:import
namespace=http://www.ris.fer.hr/OpenCollectives/CoopetitionServices/XmlDoc; 

/
   s:element name=Create
 s:complexType
   s:sequence
 s:element minOccurs=0 maxOccurs=1 name=mbID
type=s:string /
 s:element minOccurs=0 maxOccurs=1
ref=s1:EndpointReference /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=CreateResponse
 s:complexType
   s:sequence
 s:element minOccurs=1 maxOccurs=1 name=CreateResult
type=s:boolean /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=ResourceID type=tns:ResourceID /
   s:complexType name=ResourceID mixed=true
 s:annotation
   s:appinfo
 keepNamespaceDeclarationsxmlns/keepNamespaceDeclarations
   /s:appinfo
 /s:annotation
   /s:complexType
   s:element name=Destroy
 s:complexType
   s:sequence
 s:element minOccurs=0 maxOccurs=1
ref=s1:EndpointReference /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=DestroyResponse
 s:complexType
   s:sequence
 s:element minOccurs=1 maxOccurs=1 name=DestroyResult
type=s:boolean /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=PutMessage
 s:complexType
   s:sequence
 s:element minOccurs=1 maxOccurs=1 ref=s2:xmlDoc /
 s:element minOccurs=0 maxOccurs=1
ref=s1:EndpointReference /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=PutMessageResponse
 s:complexType
   s:sequence
 s:element minOccurs=1 maxOccurs=1
name=PutMessageResult type=s:boolean /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=GetMessage
 s:complexType
   s:sequence
 s:element minOccurs=1 maxOccurs=1 name=timeParam
type=s:int /
 s:element minOccurs=0 maxOccurs=1 name=cb
type=s:string /
 s:element minOccurs=0 maxOccurs=1
ref=s1:EndpointReference /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=GetMessageResponse
 s:complexType
   s:sequence
 s:any minOccurs=0 maxOccurs=1 /
   /s:sequence
 /s:complexType
   /s:element
   s:element name=FlushPerformanceLog
 s:complexType /
   /s:element
   s:element name=FlushPerformanceLogResponse
 s:complexType /
   /s:element
   s:element name=GetPerformanceLog
 s:complexType /
   /s:element
   s:element name=GetPerformanceLogResponse
 s:complexType
   s:sequence
 s:element minOccurs=0 maxOccurs=1
name=GetPerformanceLogResult
   s:complexType mixed=true

Re: Calling Web Services from Python

2006-04-10 Thread Robert Boyd
On 4/7/06, Ivan Zuzak [EMAIL PROTECTED] wrote:
[snip]
 I need a package/tool that generates web service proxies that will do
 all the low-level HTTP work. (Someting like the WSDL.EXE tool in .NET
 Framework) The ZSI and SOAPy packages [1] that i found (should) have
 those functionalities but either have a bug (SOAPy) or either do not
 work for arbitrary web services (ZSI). I tried the ZSI wsdl2py script on
 a wsdl of one of my services, and the script crashes. I suppose the wsdl
 was too hard for the script to parse.

I've successfully used wsdl2py for very complex WSDLs and gotten
better results than with .Net's equivalent! Could you post the error
you got?

I don't know of other Python SOAP modules with WSDL support, sorry.

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Calling Web Services from Python

2006-04-09 Thread m.banaouas
Can you tell us more about SOAPpy bug ?
Is it about authentication ?

Ivan Zuzak a écrit :
...
 I need a package/tool that generates web service proxies that will do 
 all the low-level HTTP work. (Someting like the WSDL.EXE tool in .NET 
 Framework) The ZSI and SOAPy packages [1] that i found (should) have 
 those functionalities but either have a bug (SOAPy) or either do not 
 work for arbitrary web services (ZSI). 
 ...
-- 
http://mail.python.org/mailman/listinfo/python-list


Calling Web Services from Python

2006-04-07 Thread Ivan Zuzak
Hello,

My Python application calls web services available on the Internet. The 
web service being called is defined through application user input.

The Python built-in library allows access to web services using HTTP 
protocol, which is not acceptible - generating SOAP messages for 
arbitrary web services is something i wish to avoid.

I need a package/tool that generates web service proxies that will do 
all the low-level HTTP work. (Someting like the WSDL.EXE tool in .NET 
Framework) The ZSI and SOAPy packages [1] that i found (should) have 
those functionalities but either have a bug (SOAPy) or either do not 
work for arbitrary web services (ZSI). I tried the ZSI wsdl2py script on 
a wsdl of one of my services, and the script crashes. I suppose the wsdl 
was too hard for the script to parse.

Are there any other packages that utilize generation of web service 
proxies that are compatible with SOAP  WSDL standards?

Thank you,
ivan zuzak

[1] - http://pywebsvcs.sourceforge.net/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Calling Web Services from Python

2006-04-07 Thread John Salerno
Ivan Zuzak wrote:

 I need a package/tool that generates web service proxies that will do 
 all the low-level HTTP work. (Someting like the WSDL.EXE tool in .NET 
 Framework) The ZSI and SOAPy packages [1] that i found (should) have 
 those functionalities but either have a bug (SOAPy) or either do not 
 work for arbitrary web services (ZSI).

You might want to read this, specifically 12.5 and 12.6 for WSDL:
http://diveintopython.org/soap_web_services/index.html

It uses SOAPpy, which may or may not be different than SOAPy, depending 
on if you made a typo or not. :)
-- 
http://mail.python.org/mailman/listinfo/python-list


CFP: The 2006 IAENG International Workshop on Internet Computing and Web Services (in IMECS 2006)

2006-01-20 Thread imecs__2006
Call for Papers From:
International Association of Engineers (http://www.iaeng.org)
Journal Engineering Letters (http://www.engineeringletters.com)

The 2006 IAENG International Workshop on Internet Computing and Web
Services

(Part of The International MultiConference of Engineers and Computer
Scientists IMECS 2006)

20-22 June, 2006, Hong Kong
http://www.iaeng.org/IMECS2006/IWICWS2006.html


The IWICWS'06 workshop is held as part of the International
MultiConference of Engineers and Computer Scientists 2006. The IMECS
2006 is organized by the International Association of Engineers
(IAENG), and serves as good platforms for the engineering community
members to meet with each other and to exchange ideas. Extended version
of the papers under this workshop can be included in the special issue
of our journal Engineering Letters. And, further extended version can
also be included in a book called Current Trends in Internet Computing
and Web Services to be published by IAENG.

The IMECS 2006 multiconference has the focus on the frontier topics in
the theoretical and applied engineering and computer science subjects.
It consists of 14 workshops (see the details at IMECS website:
www.iaeng.org/IMECS2006). The multiconference serves as good platforms
for the engineering community members of different disciplines to meet
with each other and to exchange ideas. The current conference committee
of the IMECS 2006 includes over 140 workshop co-chairs and committee
members of mainly research center heads, department heads, professors,
research scientists from over 20 countries, while a few of the
committee members are also experienced software development directors
and engineers.

All submitted papers will be under peer review and accepted papers will
be published in the conference proceeding (ISBN: 988-98671-3-3). The
abstracts will be indexed and available at major academic databases.
The Technology Research Databases (TRD) of CSA (Cambridge Scientific
Abstracts), DBLP and Computer Science Bibliographies have promised to
index the print proceeding in advance of its publication. And after the
publication of the proceeding, print copies will also be sent to
databases like IEE INSPEC, Engineering Index (EI) and ISI Thomson
Scientific for indexing. The accepted papers will also be considered
for publication in the special issues of the journal Engineering
Letters. Some participants may also be invited to submit extended
version of their conference papers for considering as book chapters
(soon after the conference).


The topics of the workshop include, but not limited to, the following:

Internet architecture design
Internet search methods
Optimization methods
Security and protection
Fault Tolerance
Software Agents
Web Java-based applications
Knowledge-based web systems
Multimedia web tools, architectures, and broadcasting
Web data mining and database management

Coding and compression
Information retrieval
Distance learning
E-commerce applications
E-business modeling and applications
And other Internet applications and other web services applications


=
Submission:

Prospective authors are invited to submit their draft paper in abstract
format (one page) or in full paper format to [EMAIL PROTECTED] by 12
March, 2006. The submitted file can be in MS Word format, PS format, or
PDF formats.

The first page of the draft paper should include:

· Title of the paper;
· Name, affiliation and e-mail address for each author;
· A maximum of 5 keywords of the paper;

Also, the name of the workshop session that the paper is being
submitted to should be stated in the email.


=
Important Dates:

Proposals for special conference sessions and tutorials deadline: 30
December, 2005
Draft Manuscript / Abstract submission deadline: 12 March, 2006
Camera-Ready papers  Pre-registration due: 2 April, 2006
IMECS 2006: 20-22 June, 2006


More details about the IWICWS 2006 can be found at:
http://www.iaeng.org/IMECS2006/IWICWS2006.html


IWICWS Workshop Co-chairs and Committee Members:

Fidel Cacheda (co-chair)
Assistant professor, Department of Information and Communications
Technologies
University of A Coruna, Spain

Chin-Chen Chang
IEEE Fellow, IEE Fellow
Chair Professor in Department of Information Engineering and Computer
Science, Feng Chia University, Taiwan

Yen-Wen Chen
Associate Professor, Dept. of Communication Engineering
National Central University, Taiwan

Dr. Manuel Jose Damasio (co-chair)
Head of course at the film, video and Multimedia course of the
Communication Sciences Department,
Universidade Lusofona de Humanidades e Tecnologias, Portugal

Enrique Herrera-Viedma (co-chair)
Professor in the Department of Computer Science and Artificial
Intelligence
Sub-director of the Library Sciences School
University of Granada, Spain

Fu-Chien Kao
Associate Professor, Department of Computer Science and
Information Engineering, Da-Yeh University, Taiwan

Dr. Reggie Kwan
School of Science and Technology,
The Open

Re: Spambayes modifications with web services

2005-11-02 Thread benmorganpowell
Thank you for the flippant remarks. Let's just say that I found them to
be unproductive.

I would like to point out the process was not designed to be automatic
and I don't believe made such a statement. I should clarify that my
desire was to list each domain that was contained in a spam email, so
that the user could then:

 - check if previously it has been reported as spam, or
 - open the link in their browser, and
 - check whether the domain was spam or ham, and then if spam
 - post it to the web service (Post Spam Site to Web Service).

Therefore, thanks, yes, I did think through the consequences of my
actions.

The line that reads WARNING: DO NOT BUY FROM THIS WEBSITE. THE SPAMMER
IS., was tongue in cheek, and it seems to be the line that stirred
up the condescending comments. What I should have written was something
more along the lines of:

WARNING: The website domain has been reported by x users as a
website that uses illegal spam email to generate business leads

I think that is a perfectly useful and fair statement, which I cannot
see damaging legitimate business enterprises.

I also think it would be quite useful for consumers to know that the
domain name they are about to purchase had previously been misused by
spammers, and was quite likely to be blacklisted by spam software.

I must say that I am surprised that the python group could be so
unfriendly and unhelpful.

Many thanks.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Spambayes modifications with web services

2005-11-02 Thread Steve Holden
[EMAIL PROTECTED] wrote:
 Thank you for the flippant remarks. Let's just say that I found them to
 be unproductive.
 
 I would like to point out the process was not designed to be automatic
 and I don't believe made such a statement. I should clarify that my
 desire was to list each domain that was contained in a spam email, so
 that the user could then:
 
  - check if previously it has been reported as spam, or
  - open the link in their browser, and
  - check whether the domain was spam or ham, and then if spam
  - post it to the web service (Post Spam Site to Web Service).
 
 Therefore, thanks, yes, I did think through the consequences of my
 actions.
 
 The line that reads WARNING: DO NOT BUY FROM THIS WEBSITE. THE SPAMMER
 IS., was tongue in cheek, and it seems to be the line that stirred
 up the condescending comments. What I should have written was something
 more along the lines of:
 
 WARNING: The website domain has been reported by x users as a
 website that uses illegal spam email to generate business leads
 
 I think that is a perfectly useful and fair statement, which I cannot
 see damaging legitimate business enterprises.
 
 I also think it would be quite useful for consumers to know that the
 domain name they are about to purchase had previously been misused by
 spammers, and was quite likely to be blacklisted by spam software.
 
 I must say that I am surprised that the python group could be so
 unfriendly and unhelpful.
 
 Many thanks.
 
Personally I didn't regard the reply as unhelpful, and I believe the 
replier was honestly trying to get you to see that your rather naive 
suggestion was most unlikely to make things better.

In essence your proposal appears to be that we clog up the search 
services with long-lived references to pages in your sites that refer to 
the spammers' (short-lived) sites in derogatory terms. If you managed to 
get enough people to be so unwise then Google and the other search 
engines would be useless within a month, and the spammers' sites would 
dominate their content.

You say you specialize in web programming and getting good results on 
Google, but you don't seem to know that much about how the spammers 
operate and how the web really works. Generally speaking any attempt to 
fight back by generating more traffic and more search engine entries 
will only make things worse. They certainly *won't* go away if you don't 
ignore them, and they *probably* won't go away even if you do. Ergo 
such retaliation is a waste of time.

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006  www.python.org/pycon/

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Spambayes modifications with web services

2005-11-02 Thread Tim Williams (gmail)
On 02/11/05, Steve Holden [EMAIL PROTECTED] wrote:
 Personally I didn't regard the reply as unhelpful, and I believe the
 replier was honestly trying to get you to see that your rather naive
 suggestion was most unlikely to make things better.



To the OP

A tip for curing your own problem - remove your catchall.   Only allow
incoming email and bounces to valid in-use addresses - not to an
infinite number of unused addresses.   Repeat after me Catchalls are
lazy !!!:)

Catchalls are a spammer's best friend and contribute greatly to the
internet's spam problem AND to the increasingly harsh attempts by ISPs
and other mail providers to reduce their load and spam throughput.
Not to mention the slow lingering death of services that provide a
catchall that can be forwarded.

You used a real domain name in your original post !! Anyone
marking your post as spam using your criteria would have blacklisted
that unfortunate domain.

HTH :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Spambayes modifications with web services

2005-10-28 Thread benmorganpowell
In the last few months many personal website owners (such as myself)
have found that spammers have been using their domain names to
masquerade as valid users to send spam, normally in the form of:

[EMAIL PROTECTED]

This new tactic has an annoying problem, which is that the bounced
emails end up back with the postmaster at the innocent persons domain.
This is normally the first time that the domain owner realises that
there is a problem.

I am one of those people and currently have nearly 3 thousand bounces
in my catch all POP3 box.

Solutions I can see to this are one of two things:

1) Delete the email as it arrives and ignore it. Realise that the
domain name might end up being blacklisted as a spammer's domain and be
done with it, or

2) Fight back! All of the bounced emails contain at least one URI to a
spammer website, in a effort to sell Cheap Meds or Faked Rolexes or
similar. The format is usually something like this:

http://www.sickmate.info/?a2fb9e415e74beS9cdee919d78Sa6a7d

The query part of the URI I believe provides the reference between the
email address and the visit. Hence if you visit the website with this
link, your email address is saved in a database as one that is a)
valid, and b) dumb enough to visit the website.

The spammers rely on the fact that some people will visit this website
and buy from them. In fact, Q.E.D., some people must buy from these
websites via spam, otherwise the spammers would have given up a long
time ago*.

So, as a web programmer and someone who specialises in getting good
results on Google, I realised that I could simply post every spammer
website on a Google optimized page, which if searched for on Google
would return something like:

WARNING: DO NOT BUY FROM THIS WEBSITE. THE SPAMMER IS A RUSSIAN MAFIA
CROOK WHO WILL STEAL YOUR MONEY.

...Or something equally obvious along those lines. In this way we
attack the websites that are the link between the spam and the money.
The real necessity therefore is to:

a) Process the received bounced messages quickly and list them on the
website without delay.
b) Prevent the spammer using the domain

The answer to (b) I cannot find. I thought SPF might help, but it is
not a panacea. The answer to (a) I need help with!

So, I'm on Windows XP. I use Outlook 2002 and I already have the
excellent (and FREE) SpamBayes Outlook add-in** that blocks spam and
loves ham. Spambayes is open source and as such I can modify the source
code, recompile it and install it afresh. However, the problem is that
I'm not a python programmer, and I'm not sure where to start. This is
what I want to do, so if anyone would like to direct me, I'd be
grateful:

1) Add a menu option to the SpamBayes add-in - Post Spam Site to Web
Service. I'm guessing I can add a new line to the addin.py such as
below, but how do I sink the event?

self._AddControl(popup,
constants.msoControlButton,
ButtonEvent, (PostSpamSite, self.manager,),
Caption=Post Spam Site to Web Service,
Enabled=True,
Visible=True,
Tag = SpamBayesCommand.PostSpam)

2) Add a configuration setting, so that the web service location can be
set. I'm guessing this is in config.py. Pointers welcome.

4) Add a function to extract all links in a block of text. I have
written a good one of these for .NET, but I'm not sure if, or how it
would work in Python:

string hrefPattern =
@(?all(?:(?protocolhttp(?:s?)|ftp)(?:\:\/\/))
+ @(?domain[^/\r\n\:]+)?
+ @(?port\:\d+)?
+ @(?path[^\?#]*)?
+ @(?qrystr\?\w*)?
+ @(?bookmark\#\w*)?);

// Regular Expression
Regex hrefRegex = new Regex(hrefPattern, RegexOptions.Singleline |
RegexOptions.IgnorePatternWhitespace | RegexOptions.IgnoreCase);

Any help with this welcome. Do I need a specific Python regex library
or can I use the .NET regex library in Python?

4) Connect to web service using SOAP and consume that service. Service
will provide:

a) Authorise (username, password) - returns access
b) Submit (domain) - returns success or failure

Can I use SOAPpy for this? Can anyone give me any examples or point me
in the right direction?

5) Provide another option in the add in to Scan folder and Post Spam
Sites to Web Service, in the same manner as Filter messages works
now. Can I use filter.py as a model to work from?

Summary
=
I am not a Python programmer per se but have no problem with getting my
hands dirty. I have already got the basics of this working as a
Windows.Forms application, but running both that and Outlook together
is daft. The Spambayes project already does the hard bit in classifying
the spam, so it makes sense to hang off the back of it.

Has anyone else had similar problems as me with these phantom email
addresses being using by spammers and would like to work with me on
this? Would anyone in the Spambayes team like to have a go at this, or
point me in the right direction? Has anyone had a 

Re: Spambayes modifications with web services

2005-10-28 Thread Neil Hodgson
benmorganpowell:

 So, as a web programmer and someone who specialises in getting good
 results on Google, I realised that I could simply post every spammer
 website on a Google optimized page, which if searched for on Google
 would return something like:
 
 WARNING: DO NOT BUY FROM THIS WEBSITE. THE SPAMMER IS A RUSSIAN MAFIA
 CROOK WHO WILL STEAL YOUR MONEY.

Spam may also contain the addresses of non-spamming businesses, 
sometimes in an effort to increase the apparent legitimacy of the spam. 
Attacking all of the web sites in spam will cost these businesses while 
having little effect on spammers who use temporary domains which may be 
cheaply abandoned. It also gives another attack vector for those 
criminals that attempt to extort money from web sites by threatening to 
damage them.

If you want to take action against spammers, first think through all 
the potential consequences of your actions.

Neil
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Spambayes modifications with web services

2005-10-28 Thread Lasse Vågsæther Karlsen
[EMAIL PROTECTED] wrote:
 In the last few months many personal website owners (such as myself)
 have found that spammers have been using their domain names to
 masquerade as valid users to send spam, normally in the form of:
snip
 So, as a web programmer and someone who specialises in getting good
 results on Google, I realised that I could simply post every spammer
 website on a Google optimized page, which if searched for on Google
 would return something like:
 
 WARNING: DO NOT BUY FROM THIS WEBSITE. THE SPAMMER IS A RUSSIAN MAFIA
 CROOK WHO WILL STEAL YOUR MONEY.
snip

So basically a DoS attack could now be simply performed by crafting a 
spam message and adding the url to your target and then sending it out 
to as many users you can think of ? (DoS not in the typical form, but 
the effect would be just as real, deny them of legitimate customers)

Nice plan sherlock.

-- 
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:[EMAIL PROTECTED]
PGP KeyID: 0x2A42A1C2
-- 
http://mail.python.org/mailman/listinfo/python-list


amazon web services/api...

2005-08-07 Thread bruce
hi...

has anybody ever played/successfully with the amazon- web services/api? i'm
trying to figure out how i can use the browsenodeid to generate ISBN
information for a book.

the examples i've seen on various sites haven't been much help yet.

thanks

-bruce
[EMAIL PROTECTED]


-- 
http://mail.python.org/mailman/listinfo/python-list