由于XML架构验证失败,SOAP消息无效。>namesp中的元素“Credentials”

2024-10-02 18:26:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着用邮票网WSDL服务-以下是链接:http://34.212.2.126:8000/api/TEST/

我收到这样的信息:

Server raised fault: 'Invalid SOAP message due to XML Schema validation failure. The element 'Credentials' in namespace 'http://stamps.com/xml/namespace/2017/04/swsim/swsimv62' has incomplete content. List of possible elements expected: 'IntegrationID' in namespace 'http://stamps.com/xml/namespace/2017/04/swsim/swsimv62'.'

这是我使用的python代码:

    client = Client(stamp_endPoint)
    client.set_options(port='SwsimV62Soap')

    response = client.service.AuthenticateUser()
    return HttpResponse(response)`

以下是WSDL文件: https://drive.google.com/file/d/0B6Q9btduOt7AeVQtQk1mSkZ3RkU/view

我有登录凭据(集成ID、用户名、密码),但我不知道如何插入它们。在


Tags: intestcomclientapihttp链接response