简体   繁体   English

使用Python客户端通过SOAP访问JIRA时出现错误“导入中没有schemaLocation属性”

[英]i am getting error “no schemaLocation attribute in import” when using Python client accessing JIRA via SOAP

here is the sample code : 这是示例代码:

#!/usr/bin/env python

# Sample Python client accessing JIRA via SOAP. By default, accesses
# http://jira.atlassian.com with a public account. Methods requiring
# more than basic user-level access are commented out. Change the URL
# and project/issue details for local testing.
#
# Note: This Python client only works with JIRA 3.3.1 and above (see
# http://jira.atlassian.com/browse/JRA-7321)
#
# Refer to the SOAP Javadoc to see what calls are available:

import SOAPpy, getpass, datetime

soap = SOAPpy.WSDL.Proxy('http://jira.company.com:8080/rpc/soap/jirasoapservice-v2?wsdl')


jirauser='username'
passwd='password'

# This prints available methods, but the WSDL doesn't include argument
# names so its fairly useless. Refer to the Javadoc URL above instead
#print 'Available methods: ', soap.methods.keys()

def listSOAPmethods():
    for key in soap.methods.keys():
        print key, ': '
        for param in soap.methods[key].inparams:
            print '\t', param.name.ljust(10), param.type
        for param in soap.methods[key].outparams:
            print '\tOut: ', param.name.ljust(10), param.type


auth = soap.login(jirauser, passwd)

issue = soap.getIssue(auth, 'QA-79')
print "Retrieved issue:", issue

print "Done!"

The complete error is as follows , in order to provide the complete context: 完整错误如下,以提供完整上下文:

IMPORT:  http://service.soap.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://jira.mycompany.com:8080/rpc/soap/jirasoapservice-v2
no schemaLocation attribute in import
IMPORT:  http://exception.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://schemas.xmlsoap.org/soap/encoding/
no schemaLocation attribute in import
/usr/local/lib/python2.6/dist-packages/wstools-0.3-py2.6.egg/wstools/XMLSchema.py:3107: DeprecationWarning: object.__init__() takes no parameters
  tuple.__init__(self, args)
IMPORT:  http://service.soap.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://beans.soap.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://jira.mycompany.com:8080/rpc/soap/jirasoapservice-v2
no schemaLocation attribute in import
IMPORT:  http://schemas.xmlsoap.org/soap/encoding/
no schemaLocation attribute in import
IMPORT:  http://service.soap.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://beans.soap.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://exception.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://schemas.xmlsoap.org/soap/encoding/
no schemaLocation attribute in import
IMPORT:  http://beans.soap.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://jira.mycompany.com:8080/rpc/soap/jirasoapservice-v2
no schemaLocation attribute in import
IMPORT:  http://exception.rpc.jira.atlassian.com
no schemaLocation attribute in import
IMPORT:  http://schemas.xmlsoap.org/soap/encoding/
no schemaLocation attribute in import

I changed the JIRA Python CLI code to use suds instead of SOAPpy a while ago and haven't looked back. 不久前,我将JIRA Python CLI代码更改为使用suds而不是SOAPpy,并且没有回头。 SOAPpy is pretty old and seems unsupported now. SOAPpy很老,现在似乎不受支持。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试使用 Jira Python API 获取数据时出现错误 [AttributeError: 'bool' object has no attribute 'error'] - Getting error [ AttributeError: 'bool' object has no attribute 'error' ] when trying to get data using Jira Python API Jira-Python - jira.client导入错误 - Jira-Python - jira.client import error 为什么在Python中出现此属性错误? - Why am I getting this attribute error in Python? python的新手,我收到一个属性错误 - new to python and i am getting an attribute error 使用python撷取jira问题,我收到验证错误 - Fetching an jira issue using python i'm getting authentication error 当我使用 python selenium headless 时出现 tImeout 错误 - Getting tImeout error when I am using python selenium headless 当我没有为对象分配任何属性时出现属性错误 - Getting an attribute error when I am not assigning any attribute to the object 当我尝试将mwclient模块用于Python时,为什么会出现错误“无法导入名称扫描仪”? - Why am I getting the error “cannot import name Scanner” when I try to use the mwclient module for Python? 我收到一个属性错误,当我使用 PIL 导入时,对象图像没有打开属性 - I am getting an Atribute error that the object image does not have atibute open when I import using PIL 为什么通过python请求调用rest api时出现500 Internal Server Error? - Why am I getting 500 Internal Server Error when calling post rest api via python request?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM