You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Env: Django with spyne
Url must be "exampleapi/submit" while operation is named "submitXmlMessage".
How can I solve this?
soap11env:Client.SchemaValidationError:4:0:ERROR:SCHEMASV:SCHEMAV_CVC_ELT_1: Element '{https://partner.example.com/xmlgw/submit}submitXmlMessage': No matching global declaration available for the validation root.
class SubmitService(ServiceBase):
@rpc(Unicode, Unicode, Unicode, _returns=Iterable(Unicode), _operation_name="submitXmlMessage")
def submit(ctx, partnerno, xml, signature):
filedate = str(time.time())
debugpath = 'data/debug/api-msg/in/'
f = open(debugpath + 'api-' + filedate + '.txt', 'w')
f.write('partnerno\n') # python will convert \n to os.linesep
f.write(str(partnerno)) # python will convert \n to os.linesep
f.write('\n\n\nxml\n') # python will convert \n to os.linesep
f.write(str(xml)) # python will convert \n to os.linesep
f.write('\n\n\nsignature\n') # python will convert \n to os.linesep
f.write(str(signature)) # python will convert \n to os.linesep
f.close() # you can omit in most cases as the destructor will call it
exit(500)
app = Application([SubmitService],
'http://partner.example.com/xchange/example-3.0',
out_protocol=Soap11(),
in_protocol=Soap11(validator='lxml'),
)
hello_world_service = csrf_exempt(DjangoApplication(app))
Env: Django with spyne
Url must be "exampleapi/submit" while operation is named "submitXmlMessage".
How can I solve this?
soap11env:Client.SchemaValidationError:4:0:ERROR:SCHEMASV:SCHEMAV_CVC_ELT_1: Element '{https://partner.example.com/xmlgw/submit}submitXmlMessage': No matching global declaration available for the validation root.
WSDL:
The text was updated successfully, but these errors were encountered: