getAttachment(String token, String pageId) error

I have used following code to extract document attachment of cross space and same page using

ConfluenceSoapServiceService _service;
 var attachmentsList = _service.getAttachments(_token, pageId);

i got the following errors:

WebException: The operation has timed out
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at getAttachment(String token, String pageId)

where token is given by API .
  1. Is there version dependent on the function of the Confluence?
  2. Do i have to be version specific?
  3. I have found on search that use 0 as version ??
  4. Is there is problem on using Var instead of Attachment??

    Thanx in advance
    Namus


2 answers

0 vote
Davin Studer Community Champion Oct 23, 2013

Your code above is limited ... just to be sure are you getting an auth token and storing it in _token and does pageId have a value?

i did also encounter the same problem. i have used the token to save the authenication token and the pageid is also passed properly but during calling getAttachments the operation timeout is displayed. the basic parameter of timeout for the ConfluenceSoapServiceService is set to 10000ms in default but i have set it to 5 minutes but the same timeout exception occurs. what should i do ?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Monday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

151 views 3 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you