Create a Provider Web Service and Web Service Client (JAX-WS) + Apache Tomcat

Create a Provider Web Service and Web Service Client (JAX-WS) + Apache Tomcat

1). Open Eclipse, Create Dynamic Project ( WebServiceWSDL ), choose server tomcat, Next and Finish.

4webServices.jpg

2). Set the package – com.fndong.ws – in the /src. Create java Class – CalculateAdditional.java

package com.fndong.ws;

public class CalculateAdditional {
    public double addtheValues(double firstnumber, double secondnumber ) {
       double plus = firstnumber + secondnumber;
       return plus;

    }
 
}

3). Right Click on file CalculateAdditional.java -> Web Services -> Create Web Service

6webServices.jpg

  • First configuration : select start service
  • Second Configuration : select Test Client
  • Tick the Checkbox true (Publish the Web Service & Monitor the web Service)

Click Finish.

4). Then it will created the sub project folder for web service client testing “WebServicesWSDLClient“.

calculate.jpg

5). Run on Tomcat – for run web service client test .

webserviceclienttest.jpg

SELAMAT MENCUBA!

Adding the IBM MobilFirst SDK to Android Application – Hello World

Good Day! & Happy New Year 2017 Gregorian Calendar

1.) Create New Project in Android Studio. Select File > New Project.

2.) Enter new Project, add the name for the project with the name of the package, example:

New Project name : MyApp

company domain : com.fndong.myApp

3.) Then After created, adding the SDK into android MyApp Application.

3.1) Add the sdk plugin mobilefirst android in build.gradle (Module:App).

apply plugin: 'com.android.application'
repositories{
    jcenter()
}
android {
    compileSdkVersion 23
    buildToolsVersion "25.0.2"

    packagingOptions {
        pickFirst 'META-INF/ASL2.0'
        pickFirst 'META-INF/LICENSE'
        pickFirst 'META-INF/NOTICE'
    }

    defaultConfig {
        applicationId "myapp.com.fndong.myapp"
        minSdkVersion 22
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile 'com.ibm.mobile.foundation:ibmmobilefirstplatformfoundation:8.0.+'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
}

4.) Add the Permission and the Mobilefist UI activity in the AndroidManifest.xml.

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  • add inside tag <application…>
<activity android:name="com.worklight.wlclient.ui.UIActivity" />

5.) Running emulator – just go here android_page

6.) Go to Run – app / (Shift+ F10) – then it will show your first Mobile App with Mobilefist SDK for Android.

android_mobilefist.jpg

7. Add the registration of the application with mobilefirst server – and add the mfpclient.properties

  • using node.js prompt – set this command : mfpdev app register (must run the mobilefirst Foundation server 8.0 – for console first)

Android App – android studio – Create my Hello World!

Good Day!

Android App – android studio – Create my Hello World!

Today – 21/12/2016, after a long time doing web development , its time to learn new thing , here is my experience starting create Hello World Android App using Android studio.

1). Download the Android studio bundle

2) Installed it, and please follow the right prerequisites.

3). Open Android studio, select File > New Project.

  • application name: MyFirstAndroid
  • company domain: com.fndong.myapp

1.jpg

4.) Click Next > In the Target Android Devices screen, i Choose SDK “API 22: Android 5.1(lolipop)” and click Next.

2.jpg

5) create the activity, choose Empty Activity and Next.

6). Then , just leave as default MainActivity (Class Name), Click Finnish

4

7) Run the Application. Run on Emulator.

  • Just selecting Tools > Android > AVD Manager , In the Your Virtual Devices screen, click Create Virtual Device. Then you can choose any hardware you want. I choose Nexus 6.
  • On the Run image, click and select deployment target, then click Ok.

5.jpg