Weather Application Using SOAP Web Service

This post will talk about how to create Weather Application using SOAP Service.

Before going to proceed we will talk about few basics,

Configuration file basics


MAF stands for Mobile Application Framework developed by Oracle for developing mobile applications that can run on android and iOS. MAF Application consists of many configuration files, web pages, images, etc. Lets discuss a little of those files,

  • maf-feature.xml – It containes feature related details.
  • maf-application.xml – It contains application level details including features display location etc.
  • maf-config.xml – It contains framework skin etc details.
  • maf.properties – It contains JVM pramateters and other property details.
  • logging.properties – It has logging configuration.
  • adf-config.xml – It has standard ADF configuration i.e. DB Lock type, security configuration etc.

Weather Application Steps


Create MAF Application. Like below,

step1

 

Select All default and click Finish.

It will show page like below,

step2

 

Click on “+” symbol for feature

enter details as below,

step3

 

Make sure Content Type is selected “AMX Page”

Below for file, click “+” to add new file as below,

step4

 

click “OK”.

Select New->From->Gallery->WebService Data Control as below,

step5

step6

 

enter data control name as below,

WSDL URL  :http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

step7

 

click on services button below name to fetch service details. then click next,

 

select getCityWeatherByZIP method as below,

step8

 

Select other defaults and finish.

 

It will display page like below,

step9

 

open weatherdetail.amx page

From data control drag details as below and drop as MAF Form,

step10

Now drag result again to the page as below,

step11

remove whatever attributes you want to remove from below screen. Click Ok.

step12

 

Save All. You are done now.

Now deploy application as we have discussed in our first post and enjoy.

Actual Application Image from My XOLO Q3000 with Android KitKat 4.4 belowm

Screenshot_2015-03-11-12-27-05

 

 

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s