I have an existing Java web service which will access an Java object and return a byte array after processing. It is currently consumed by another Java application and it is working fine.
Recently I planned to consume the same Java web service using Python application but keep getting "NONE" respond from the Java Web Service even though I'm setting the same attribute value as my Java application . I'm not sure what is the actual root cause but I suspect it is due to the object type.
Do I need to convert my Python object to Java object before calling the Web Service?
Below is my sample python code:
from zeep import Client
from TestObject import TestObject
wsdl = "http://xxxxxxxx.com:8002/xxxx/xxxxx?WSDL"
client = Client(wsdl)
TestObject = TestObject()
TestObject.setAttribute1("1")
TestObject.setAttribute2("2")
TestObject.setAttribute3("3")
response = client.service.methodtocall(TestObject)
print(response)
I have no access to the Java Web service so the only changes I can make is on my Python code. Please let me know what options do I have.