On 02/27/12 07:09, Benjamin Cardon wrote:
First, to get Django and rpclib working together, I had to add this to
rpclib.server.django:
from __future__ import absolute_import
otherwise I got the error 'no module http'. I am on Ubuntu 11.10,
Python 2.7.2. Not sure why that was necessary.
Hi there,
That's python trying to import from rpclib.server.django module instead
of the root django package.
http://www.python.org/dev/peps/pep-0328/
the from __future__ import absolute_import hack doest not exist in
python 2.4. I wonder if I should just rename the django module to
django_ and be done with it.
Second, I have a django project called rpctest with an app called core
where the view is contained. Here is the code in my Django app.
http://pastie.org/3469070
That's exactly how it's supposed to work.
Is it possible for you to put the full django project inside
examples/django directory and issue a pull request? (make sure to add
BSD or MIT license headers to avoid any confusion)
Third, I have a basic .NET 2.0 application in MonoDevelop with a Web
Reference pointing at 127.0.0.1:8000/hello_world/service.wsdl
<http://127.0.0.1:8000/hello_world/service.wsdl> and a .NET 2.0 web
service that is hooked into it. Here is that code. I named the service
reference hwmt in my code.
http://pastie.org/3469090
So on to problems?
First problem, I cannot use the web service as functions. The
advantage to .NET SOAP is that you shouldn't have to do a bunch of
object creation and stuff to pass simple types but in this case I have
to build an object and define the types on it. Not very graceful I think.
The bigger problem, though, is that when running the .NET webservice I
get a 403 error as it tries to access
http://127.0.0.1:8000/hello_world/service.
The canonical way to get an rpclib-generated wsdl is:
http://127.0.0.1:8000/hello_world/?wsdl but
127.0.0.1:8000/hello_world/.wsdl should work as well.
You should try to make a http POST request to just
http://127.0.0.1:8000/hello_world/
Rpclib is tested to be WS-I compliant, so I don't think there should be
any problems with .NET code calling rpclib code. However, AFAIK with
.NET, you need to run the WSDL document through some tool that compiles
definitions in the WSDL document to C# code. Did you already do that?
Does that give any errors?
hth,
burak
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap