Open mayribeirofernandes opened 5 years ago
So you converted the message into bytes and then passed it?
So you converted the message into bytes and then passed it?
Yes.
Darn doesn't work for me!
Hi I tried your solution but get message NameError: name 'byte_str' is not defined
Do I need more ?
@bruindav
I received same error as you did. I then used the .encode() rather to encode string to bytes as per below:
if len(args) == 1 and isinstance(args[0], RawSoapMessage):
message = args[0].message.encode()
received = method(__inject={'msg': message})
Then in robot framework I had to decode the response as
${sendmessage} Call Soap Method *YourServiceMethod* ${message}
${checkresponse} Get Last Received
${checkresponseDecoded} Decode Bytes To String ${checkresponse} UTF-8
This worked for me
Hi!!
I'm using:
My Robot code:
When i have tried to execute then, the following error occurs in Call Soap Method:
I solved the problem by making an adjustment in proxy.py:
Original Code:
Code with my adjustment:
Could you evaluate this adjustment, was it the best way to solve it?
Thanks. May Fernandes