Attend a User Group

Home » Atlassian Forums » Software » JIRA Development



Permlink Replies: 2 - Pages: 1 - Last Post: May 4, 2007 11:07 AM Last Post By: Dan.Wise@pgl.net
Dan.Wise@pgl.net
[JIRA-dev] SOAP XML format for attaching files
Posted: May 4, 2007 4:41 AM
Click to report abuse...   Click to reply to this thread Reply
 global.attachment att1.html (1.8 KB )

Hi,

I'm using elementsoap in Python to create a SOAP message to attach files
to issues.

This library requires contruction of the XML message to send to the SOAP
service. I am struggling with construction the arrays of file names and
base64 encoded data. Does anyone have an example of such a message?

Regards,

Dan.

Pearl Group Ltd No. 5282342 and Pearl Group Services Ltd No.5549998. The following companies are subsidiary companies of Pearl Group Ltd and are authorised and regulated by the Financial Services Authority: Pearl Assurance plc No. 1419, London Life Ltd No. 1179800, NPI Ltd No. 3725037, National Provident Life Ltd NO. 3641947. All companies are registered in England at The Pearl Centre, Lynch Wood, Peterborough PE2 6FY. Tel. 01733 470470. We may record or monitor telephone calls to improve service and for our mutual protection.

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee and access to this e-mail by anyone else is unauthorised. Although this message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by any of the companies of Pearl Group Limited for any loss or damage in any way arising from its use.
_______________________________________________
Jira-developer mailing list
Jira-developer@lists.atlassian.com
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-developer

Matt Doar

Posts: 228
Registered: 06/01/05
Re: [JIRA-dev] SOAP XML format for attaching files
Posted: May 4, 2007 10:43 AM    global.in_response_to.tooltip in response to: Dan.Wise@pgl.net
Click to report abuse...   Click to reply to this thread Reply
It's not using elementsoap. but ake a look at the JIRA CLI for an example

import base64

fp = open(filename, 'rb')

file_contents = fp.read()

fp.close()

file_contents = base64.b64encode(file_contents)

try:

return soap.addAttachmentsToIssue(auth, issueKey, name, [file_contents])

~Matt

Message was edited by: Matt Doar

Message was edited by: Matt Doar

Dan.Wise@pgl.net
Re: [JIRA-dev] SOAP XML format for attaching files
Posted: May 4, 2007 11:07 AM    global.in_response_to.tooltip in response to: Matt Doar
Click to report abuse...   Click to reply to this thread Reply
 global.attachment att1.html (3.7 KB )

Matt,

thanks, but that only works with SOAPpy. This library seems to have been
discontinued. Have you actually tried using it?

Dan.


forums@atlassian.com

Sent by: jira-developer-bounces@lists.atlassian.com
04/05/2007 16:43
Please respond to
jira-developer@lists.atlassian.com

To
jira-developer@lists.atlassian.com
cc

Subject
Re: JIRA-dev SOAP XML format for attaching files

Take a look at the [JIRA
CLI|http://confluence.atlassian.com/display/JIRAEXT/Jira+CLI?showComments=false]
for an example

import base64 fp = open(filename, 'rb') file_contents = fp.read() fp.close() file_contents = base64.b64encode(file_contents) try: return soap.addAttachmentsToIssue(auth, issueKey, [name], [[file_contents]]) except Exception, e:

~Matt
--
Post by mdoar - online at:
http://forums.atlassian.com/thread.jspa?forumID=100&threadID=17515
_______________________________________________
Jira-developer mailing list
Jira-developer@lists.atlassian.com
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-developer


Pearl Group Ltd No. 5282342 and Pearl Group Services Ltd No.5549998. The following companies are subsidiary companies of Pearl Group Ltd and are authorised and regulated by the Financial Services Authority: Pearl Assurance plc No. 1419, London Life Ltd No. 1179800, NPI Ltd No. 3725037, National Provident Life Ltd NO. 3641947. All companies are registered in England at The Pearl Centre, Lynch Wood, Peterborough PE2 6FY. Tel. 01733 470470. We may record or monitor telephone calls to improve service and for our mutual protection.

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee and access to this e-mail by anyone else is unauthorised. Although this message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by any of the companies of Pearl Group Limited for any loss or damage in any way arising from its use.
_______________________________________________
Jira-developer mailing list
Jira-developer@lists.atlassian.com
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-developer

Legend
Genius: 1000 - 10000 pts
Expert: 500 - 999 pts
Guide: 250 - 499 pts
Enthusiast: 50 - 249 pts
Newbie: 5 - 49 pts
Atlassian Employee
Atlassian Partner
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums