I am trying to connect to Sharepoint using java of my web application.
I don't want to use Jshare or java-sharepoint as they are not in my organisations repository.
If anyone has done it previously without them please share the code snippets or any links that will be helpful.
Related
I have developed a REST web-service in Java interacting with a MySQL database.I want to deploy the web-service and the create a database at a server so that I can invoke it from an application.I tried Microsoft Azure but was unable to get it done.Where can I find relevant information for this?
I had similar problems with a MySQL database using the third party option in the Azure Marketplace from ClearDb. What I ended up doing was switching my database from a MySQL instance to an Azure Database Instance (Subset of SQL Server's features.) This worked perfectly for me! I was able to query from my database feed data to my api, and access the API through my Azure Web App.
I understand this may not be an option for you, however, Digital Ocean is a great cloud hosting option (with scaling similar to Azure, although not as good in my honest opinion.) You can set up a Linux Environment with a MySQL Server and JVM and serve your whole API through there. Best of Luck!
#coderden, According to your description, I think you have been deployed your Java Application on an Azure WebApp. Then when you created a MySQL database on Azure for connection from the Java webapp, please make sure the webapp & mysql instance created in a same resource group and note the connection string of MySQL on Azure.
As reference, please see the article to try again although it's for PHP, the steps are the same for Java.
We are trying to write a standalone java application (got sample from web ) which will push the files from a source folder to a sharepoint location using published sharepoint webservices.
Reason for using java is : This will be later plugged-in to another code.
Below are some points:
wsdl2java utility has generated java bindings for our sharepoint's copy service.
https://abc.sample.com/site1/_vti_bin/copy.asmx
Trying to use the generated stubs in my code to connect to sharepoint.
I getting below error
com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden
This seems to be related with Sharepoint oline authentication mechanism. Given limitation I cannot use C#, can anyone please help me in solving this problem in java. .
I could see similar C# example... but not sure if such functions are readily available in java.
Upload document to Sharepoint 2013 Online using webservices
You can take a look to this project i've created as i think it will save you a lot of time in this tasks. I faced up similar problems and was not able to find a working solution, so i created this rest api wrapper fort he sharepoint online rest api v1 (not fully implemented)
https://github.com/kikovalle/PLGSharepointRestAPI-java
I'am new to Android app development. I want to create a mobile application that has two entry fields.
i.e:
FirstName and
LastName
and will input into MySQL database.
Is there a basic source code example available to achieve something like this? how would i create something like this?
Thanks for your help guys.
Android access to remote SQL database will explain to you why you dont want to connect a android device directly to a SQL server of any kind. It is a bad idea.
Go do some research on how to create either a SOAP or REST service and how to consume them in Android. Here is a article on REST and here is a article on SOAP.
Once you can create web services either SOAP or REST then any device can use your service not just android.
There is some great way to generate web services for this example by using Netbeans and Eclipse. Here is a great Netbeans tutorial to get you started.
I want to upload a simple web site(Resume website) to google app engine.My web site is dynamic so i need to use database.I went through various tutorial where i found that google cloud sql can be used for a dyanamic website but it cost money.so my question is how can i use a database for my website without any payment.Is there any other ways.Plzz help me.
https://developers.google.com/appengine/docs/java/datastore/
Then use the Datastore API (from Java, Python or Go)
I want to utilise the Facebook JavaScript API in the client, but manage app logic and configuration on the server through REST web services. I've tried a lot of tutorials out there, but so far I haven't seen one that actually works.
What do you recommend as a server / web framework?
What technology should I use for my REST endpoints?
How can I host this application in a place where facebook will "see" it as a valid app?
I'm looking for a comprehensive tutorial or set of recommended practices to get started.
Thanks
I just so happened to create a blog series that takes you through EVERYTHING you will need. The articles:
Setup Eclipse (IDE) and JBoss AS7 (server)
Setup other JBoss Tools including Forge
Setup JAX-RS Web Service in Java using Forge (very easy!)
Setup account to Host the site for FREE with OpenShift
Setup an entire sample Facebook App
This blog series should be EXACTLY what you're looking for. You can find the first of three articles here:
http://ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation/
I would recommend going with Spring Social module with has a good abstraction of the Facebook API.
You could then expose these services via REST with Spring Web Services or Jersey.
I am not sure about the hosting. Facebook should see it as a valid application no matter the host. Even your development computer/localhost cando it.