CMDBuild Forum

webservice Soap auth error in 2.1.7

Hi,

I have a problem with the webservices since i've upgraded in 2.1.7.

I ran the simple soap.py script below and have these error.

Anybody can provide help ?

Many thanks

Olivier

Here's the script

from suds.client import Client
from suds.plugin import *
from suds.wsse import *
from suds import WebFault

url = "http://localhost:8080/cmprod/services/soap/Webservices?wsdl"
client = Client(url)
security = Security()
token = UsernameToken('soap', 'soap')
security.tokens.append(token)
client.set_options(wsse=security)
print client.service.getCardList('Personnes')

 

Here's the script output :

suds.WebFault: Server raised fault: 'An invalid security token was provided (An error happened processing a Username Token "{0}")'

 

And the cmdbuild side log:

WARN  2014-06-04 15:10:36 [org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor]
org.apache.ws.security.WSSecurityException: An invalid security token was provided (An error happened processing a Username Token "{0}")

same problem for me using 2.1.8 version with a .Net client