понеділок, 1 лютого 2016 р.

Git: how to restore deleted no commited file

If the deletion has not been committed, the command below will restore the deleted file in the working tree.
$ git checkout -- <file>

четвер, 28 січня 2016 р.

How to test SOAP service in Eclipse by Webservice Explorer

1. create soap service
2. run on server the project
3.copy the wsdl
4. go to Run/Launch Webservice Explorer

How to test SOAP service

1. click soap service
2. create war file and deploy to Tomcat
3. test by SoapUI
create project and input wsdl file
message should be sent for testing soap service. For testing rest service URI should be send

Create SOAP web services in java(JAX-WS) using Apache CXF

1. create Dynamic web project
2. create interface ICalculator

How to push existing project to github

1. create repository in github
2. On your machine, first you will need to navigate to the project folder using git bash. When you get there you do:
git init
which initiates a new git repository in that directory.
When you've done that, you need to register that new repo with a remote (where you'll upload -- push -- your files to), which in this case will be github. You'll get the correct URL from your repo on GitHub.
$ git remote add origin https://github.com/[username]/[reponame].git
You need to add you existing files to your local commit:
git add .   # this adds all the files
Then you need to make an initial commit, so you do:
git commit -a -m "Initial commit" # this stages your files locally for commit. 
                                  # they haven't actually been pushed yet
Now you've created a commit in your local repo, but not in the remote one. To put it on the remote, you do the second line you posted:
git push --set-upstream origin master
3. Right click your project, select Team -> Share Project -> Git. Select the proposed line and press "Create repository". Press finish

HTTP Status Codes

Sr. No.HTTP CodeDescription
1200OK, shows success.
2201CREATED, when a resource is successful created using POST or PUT request. Return link to newly created resource using location header.
3204NO CONTENT, when response body is empty for example, a DELETE request.
4304NOT MODIFIED, used to reduce network bandwidth usage in case of conditional GET requests. Response body should be empty. Headers should have date, location etc.
5400BAD REQUEST, states that invalid input is provided e.g. validation error, missing data.
6401UNAUTHORIZED, states that user is using invalid or wrong authentication token.
7403FORBIDDEN, states that user is not having access to method being used for example, delete access without admin rights.
8404NOT FOUND, states that method is not available.
9409CONFLICT, states conflict situation while executing the method for example, adding duplicate entry.
10500INTERNAL SERVER ERROR, states that server has thrown some exception while executing the method.

How to test REST service

1. create service
2. deploy it on Tomcat or run locally in Eclipse "Run on server"
3. test by SoapUI
   add REST project in SoapUI