Problem with connection server confluence

Hi. I write c# application for confluence, and want make pages from my desktop application. But i have a problem, i can't connect to server. My code

var soapService = new ConfluenceSoapServiceService();

soapService.Url = "http://localhost:8090/rpc/soap-axis/confluenceservice-v2?wsdl";

var token = soapService.login("admin", "admin");

When I try to run my code I get the message : "An unhandled exception of type 'System.Net.WebException' occurred in System.Web.Services.dll

Additional information: The request was aborted: The connection was closed unexpectedly."

In admin tools Remote API (XML-RPC & SOAP) is enable.

Why is this happening? If i use this uri = "http://localhost:8090" to connect i recieve: "Additional information: The request failed with an empty response"

Can you help me?

2 answers

Problem change

When i use CLI i have errors

C:\Users\a.usov\Documents\confluence-cli-3.7.0>confluence.bat -a getspacelist --

space SP -s http://localhost:8090 -u admin -p admin

Unable to log in to server: http://localhost:8090/rpc/soap-axis/confluenceservic

e-v1 with user: admin.

Cause: (500)Internal Server Error

C:\Users\a.usov\Documents\confluence-cli-3.7.0>confluence.bat -a getspacelist --

space SP -s http://localhost:8000 -u admin -p admin

Unable to log in to server: http://localhost:8000/rpc/soap-axis/confluenceservic

e-v1 with user: admin.

Cause: (0)null

What is it? Not true number of port? Port 8090 and address http://localhost:8090 work in brouwser.

Problem was solved. It is program bug of confluence, now i use version 4.1 and don't have this problem

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

355 views 20 10
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