Open rvcristiand opened 2 years ago
In order to investigate this further, we'll need the following:
Note: Issues on this repository are for reporting bugs and feature requests for this provider, not providing support for unique environments. In order to investigate this, a reproducible case may needs to be provided, if that can't be provided, we'll have to close this issue to focus on widely impacting issues.
Hi @phillbaker.
Here is the url: https://miportafoliouat.transunion.co/InformacionComercialWS/services/InformacionComercial?wsdl.
@phillbaker there area the credencials:
username: 332970 password: 49Ya*08@qkNW
Actually, I have a repo in github.
I thank you in advance for any help !
I think this is a feature request for supporting WSSE signatures (x509). This isn't currently supported natively by this library.
However, searching github does show a few options:
Please try one of these options and let us know how it goes!
Hi @phillbaker.
I tried the first option, py-wsse, but I had problems installing it, because the library support goes until python 2.7 and python 3.4. Those python versions are deprecated and I couldn't installed them in Fedora 35. I tried with Ubuntu 16.04 under wsl2. I could install python 2.7 and python 3.4 but couldn't run pip install py-wsse[suds]
. I got the following error:
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting py-wsse[suds]
Using cached https://files.pythonhosted.org/packages/d7/40/1935e39e31c7720404d26244e9b54580b0a6e1d5d4b1b51130366ee283df/py-wsse-0.1.tar.gz
Collecting xmlsec>=0.3.1.orcas1 (from py-wsse[suds])
Using cached https://files.pythonhosted.org/packages/35/42/d7cd323c91d4706f3cc32ffe7d5f851ab8ef9898ccb350f6ba593dd8b89a/xmlsec-1.3.3.tar.gz
ERROR: Complete output from command python setup.py egg_info:
ERROR: WARNING: The wheel package is not available.
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
ERROR: Complete output from command python setup.py egg_info:
ERROR: This lxml version requires Python 2.7, 3.5 or later.
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-wheel-udx1qs_j/lxml/
Traceback (most recent call last):
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
subprocess.check_call(cmd)
File "/home/rvc/.pyenv/versions/3.4.10/lib/python3.4/subprocess.py", line 558, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/bin/python3.4', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpjqyuuhot', '--quiet', 'lxml>=3.0']' returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-r1szks9k/xmlsec/setup.py", line 60, in <module>
'Topic :: Text Processing :: Markup :: XML'
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/setuptools/__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
replace_conflicting=True,
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/pkg_resources/__init__.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1077, in obtain
return installer(requirement)
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
return fetch_build_egg(self, req)
File "/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/lib/python3.4/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/home/rvc/.pyenv/versions/3.4.10/envs/prestanza/bin/python3.4', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpjqyuuhot', '--quiet', 'lxml>=3.0']' returned non-zero exit status 1
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-r1szks9k/xmlsec/
I will try with the other options to see what happens.
Thank you for help.
See you soon.
Hi @phillbaker.
I checked the other two options but it seem obscure to me, because they are outdated and the last commits were 6 and 7 year ago, respectively. I think I'll fall in same problem again.
@rvcristiand you can try forking, updating dependencies and installing from git. Here's one fork that looks semi-recent: https://github.com/jtiri/py-wsse
Hi everybody !
I have to consume a WSDL service. I have a username and password to see the wsdl file and a
.pem
file to consume the service. I can see the wsdl with suds, but I don't know how to config the script to include the pem file in the request.The WSDL file is hosted in
https://my.url/abc/def/xyz?wsdl
(I changed the url a little bit). To see the wsdl, I need to use a username and a password (I changed the username and password, too). To test if it works, I created the following script:All goes well, and I got (I edited the output a little bit, but I think I left untouched the important info):
Then I created a
ns0:ParametrosConsultaDTO
object with the following code:And I got the following output (I changed the parameters name):
Then, I modified the attributes and called the service I need:
And I got:
I actually, I know the problem is related to WS-Security Configuration. I have a SoapUI manual to consume the service, where they configure the Outgoing WS-Security with a signature (where the private key is related) and a timestamp. Finally, they add an authorization where relate the username, password and the Outgoing WS-Security.
I would like to consume this service with suds, but I don't know how to add the private certificate to my requests.
Any help in this way will be useful to me.
Thank you.