Hey everyone, firstly, I want to thank you Jeff, for being so patient with me, and the quick turn around on that bug. You rock, and your client rocks! Secondly, does anyone know how you can log http headers that are sent and recieved? the documentation says that to log sent and received soap/http headers simply add these lines to the top of your code:
import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG)
However this only logs soap headers and soap messages not http headers.
I don't know... but if this is http and not https, It might be simple enough to just run a wireshark session:) HTH, Mohamed.
2009/3/17 David Bunch david.e.bunch@gmail.com:
Hey everyone, firstly, I want to thank you Jeff, for being so patient with me, and the quick turn around on that bug. You rock, and your client rocks! Secondly, does anyone know how you can log http headers that are sent and recieved? the documentation says that to log sent and received soap/http headers simply add these lines to the top of your code:
import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG)
However this only logs soap headers and soap messages not http headers.
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list
David Bunch wrote:
Hey everyone, firstly, I want to thank you Jeff, for being so patient with me, and the quick turn around on that bug. You rock, and your client rocks!
Thanks! Glad you find it useful :-)
Secondly,
does anyone know how you can log http headers that are sent and recieved? the documentation says that to log sent and received soap/http headers simply add these lines to the top of your code:
import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG)
This is the correct way to turn on logging for this. But, the http headers are not logged. I'll add it this morning.
However this only logs soap headers and soap messages not http headers.
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list
SUDS works great!! We've been able to demo it in our project for web services that are written in Java.
I have used SUDS on the Windows platform using both NetBeans and Eclipse. To run it I put the SUDS distribution in the Python site-packages directory. That seemed to work.
But, I need to move it to Linux. How is this to be setup. I don't have admin privileges. Do I need to build it?
Thanks for your HELP!! Patrick
You just need to place the suds folder somewhere and add that location to the PYTHONPATH.
After that you should be able to import suds without problems.
Quoting Walter, Patrick A on 03/18/2009 12:38 PM:
SUDS works great!! We've been able to demo it in our project for web services that are written in Java.
I have used SUDS on the Windows platform using both NetBeans and Eclipse. To run it I put the SUDS distribution in the Python site-packages directory. That seemed to work.
But, I need to move it to Linux. How is this to be setup. I don't have admin privileges. Do I need to build it?
Thanks for your HELP!! Patrick
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list
On Wed, Mar 18, 2009 at 2:47 PM, Renato Alves rjalves@igc.gulbenkian.pt wrote:
You just need to place the suds folder somewhere and add that location to the PYTHONPATH.
After that you should be able to import suds without problems.
As an alternative, you can learn to use easy_install. Install it following the instructions here: - http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install - http://pypi.python.org/pypi/setuptools
and then install suds with this command: easy_install suds --install-dir=<directory where you have write permission>
You can install any other python module in the same way, in any os.
Quoting Walter, Patrick A on 03/18/2009 12:38 PM:
SUDS works great!! We've been able to demo it in our project for web services that are written in Java.
I have used SUDS on the Windows platform using both NetBeans and Eclipse. To run it I put the SUDS distribution in the Python site-packages directory. That seemed to work.
But, I need to move it to Linux. How is this to be setup. I don't have admin privileges. Do I need to build it?
Thanks for your HELP!! Patrick
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list
David Bunch wrote:
Hey everyone, firstly, I want to thank you Jeff, for being so patient with me, and the quick turn around on that bug. You rock, and your client rocks! Secondly, does anyone know how you can log http headers that are sent and recieved? the documentation says that to log sent and received soap/http headers simply add these lines to the top of your code:
import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG)
However this only logs soap headers and soap messages not http headers.
Oops, my mistake. This (the client debug) already logs the messages and http headers. However, the headers listed are the custom headers added by the user plus the stock onces that suds adds but does *not* include the headers that might be generated by cookielib.
So, I added some better logging in the transport today on trunk.
To see this you should:
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
fedora-suds-list mailing list fedora-suds-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-suds-list