Suds2Library. Getting fail when parsing response with both Cyrillic and Latin characters

${message} = Create Raw Soap Message

<?xml version="1.0" ?>

<soapenv:Envelope xmlns:ad=“http://nvgua.com/dpi/spr/ws/ad” xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/”>
soapenv:Header
ad:UserPwd/
ad:UserName05K</ad:UserName>
ad:RequestNumber1</ad:RequestNumber>
</soapenv:Header>
soapenv:Body
ad:RequestedData
ad:Subscriber
MSISDN
380000000645

</ad:Subscriber>
ad:Services
ad:Service
DEVICE

ad:Attribute
IMSI
</ad:Attribute>

</ad:Service>
</ad:Services>
</ad:RequestedData>
</soapenv:Body>
</soapenv:Envelope>

Set Return Xml True

Call Soap Method Expecting Fault RequestedData, ${message}
getting fail:
AttributeError: ‘NoneType’ object has no attribute ‘decode’

Here’s what I get when I run the same request in soapui (and what I’m expecting in robot):
<S:Envelope xmlns:S=“http://schemas.xmlsoap.org/soap/envelope/”>
<S:Header>
rO0ABXdbAB53ZWJsb2dpYy5hcHAuQURTZXJ2aWNlXzFfbXlfdmYAAADWAAAAI3dlYmxvZ2ljLndvcmthcmVhLlN0cmluZ1dvcmtDb250ZXh0AAwyLjE1LjEjMC4wLjUAAA==
</S:Header>
<S:Body>
<ns0:Fault xmlns:ns0=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns1=“http://www.w3.org/2003/05/soap-envelope”>
ns0:Server
Аутентификация не пройдена: user_name=05K, IP=10.44.44.154

<ns0:ErrorResponse xmlns:ns0=“http://nvgua.com/dpi/spr/ws/ad”>
AD-0005
Аутентификация не пройдена: user_name=05K, IP=10.44.44.154
</ns0:ErrorResponse>

</ns0:Fault>
</S:Body>
</S:Envelope>

It worked
when I commented out this line:
Set Return Xml True

1 Like