I am trying to consume Sharepoint Online Office 365 out-of-the-box web services (Lists.asmx
) from Java application (from the moment SoapUI 5.3
)
I tried with all 3 types of authentications (Basic
, NTLM
, SPNEGO/Kerberos
) but always get 403 FORBIDDEN
error
If I add X-FORMS_BASED_AUTH_ACCEPTED=f
header, I get 401 UNAUTHORIZED
or empty return stream depending on authentication type
I've checked SharePoint 2010: consuming web services from NetSuite - 403 Forbidden error and tried to used Authentication.asmx
before but always get PasswordNotMatch
error, although I am sure password is correct
I also checked Authenticating Office 365 SharePoint Online OOTB services, but no luck
All tests are done in both Windows and Ubuntu environments to avoid NTLM fails when consuming SharePoint web service from Java?
The user I use to connect to Sharepoint Online is OK. It has admin rights and I can connect through a browser without any problem.
What do I miss?
SharePoint offers a rich set of APIs that can be consumed in various ways. This article outlines what options you have, how they work and what their advantages and disadvantages are.
SharePoint includes a Representational State Transfer (REST) service that is comparable to the existing SharePoint client object models. Now, developers can interact remotely with SharePoint data by using any technology that supports REST web requests.
SharePoint Rest API CRUD Operations – Video Tutorial Create site column in SharePoint using Rest API. Create, Update and Delete SharePoint List using Rest API. Retrieve SharePoint list items programmatically using jsom, rest api and csom. How to display dynamic contents into a page using Rest API in SharePoint Online.
Only answer can be given with what you tell us is : You have to look what your service wsdl asking for example: http://www.webservicex.net/globalweather.asmx service located here have contract(wsdl) like that: http://www.webservicex.net/globalweather.asmx?wsdl
Which is don't have any ws-security policy so no authentication required but probably your service wsdl going to have some security requirments and you have to fulfill them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With