Upload
ramakrishna-beesu
View
9
Download
0
Embed Size (px)
DESCRIPTION
create soap in google app engine
Citation preview
SOAP service for Google Calendar Events:
This application exposes the Google calendar event service in SOAP format.
Using this we create, update, delete, and retrieve the events from Google calendar.
Application URL:
http://j2eewebapp.appspot.com
WSDL Location:
http://j2eewebapp.appspot.com/AppointmentServiceService.wsdl
XSD Location:
http://j2eewebapp.appspot.com/AppointmentServiceService_schema1.xsd
Please go through the video file how to access the SOAP service.
How use application:
1. Go to http://j2eewebapp.appspot.com
2. Click on Get Signed SessionID
3. Give your gmail id and pass words
4. Allow the appointment application
5. The you can get the session id
6. Using this sessionid , In every soap request you need to pass as matrix parameter.
SOAP request URL:
http://j2eewebapp.appspot.com/gevents;jsessionid= xxxxxxx
Date format in soap Message:
In SOAP message the Date format must be yyyy-MM-DD HH:MM:SS
If you can modify your own date format, please change date format in DateAdapter class .
JAX-B doesnt automatically convert java Date to SOAP datetime type. We need to explicitly convert the date type. To specify the @XmlJavaTypeAdapter(DateAdapter.class) Annotation on each Date parameter in JAX-B POJOs that were generated by wsgen(package in.ramsinfo.appointments.jaxws)
Run project from Source Code
The source code is compatible to eclipse environment. You can directly import the project into
eclipse.
1. Register your app with Google. You will get client Id & secret key, Please read Register.pdf
file for more information.
2. Modify config.properties file, your new client id, secret key, app id, redirect URL.
3. Modify appengine-web.xml file, your Google appengine id.
appID
4. Modify AppointmentServiceService.wsdl, give your Google app ID in appid place.
Regeneration WSDL file
If your regenerating wsdl file please follow the instructions.
1. Please comment the Service Method body
Example:
Public void CreateEvent()
{
/*
body
*/
}
Then save and compile, use gen.cmd file generate the WSDL file and
in.ramsinfo.appointments.jawxs.* package.
2. In in.ramsinfo.appointments.jawxs.* package java classes To specify the
@XmlJavaTypeAdapter(DateAdapter.class) Annotation on each Date parameter.
Create new SOAP service in Google app engine
please read go through following links
https://developers.google.com/appengine/articles/soap
http://googcloudlabs.appspot.com/codelabexercise5.html