├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── styles.xml │ │ │ ├── dimens.xml │ │ │ └── strings.xml │ │ └── layout │ │ │ └── activity_main.xml │ │ ├── java │ │ └── pt │ │ │ └── joaocruz04 │ │ │ └── jsoap │ │ │ ├── weather │ │ │ ├── GetWeatherInformation.java │ │ │ ├── GetCityWeatherByZIP.java │ │ │ ├── WeatherDescription.java │ │ │ ├── GetWeatherInformationResponse.java │ │ │ └── WeatherReturn.java │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml ├── build.gradle ├── proguard-rules.pro └── app.iml ├── lib ├── .gitignore ├── gradle.properties ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ └── strings.xml │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ └── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── java │ │ └── pt │ │ │ └── joaocruz04 │ │ │ └── lib │ │ │ ├── misc │ │ │ ├── JsoapError.java │ │ │ ├── JSoapCallback.java │ │ │ ├── TheSoapClass.java │ │ │ ├── SOAPDeserializable.java │ │ │ └── SoapDeserializer.java │ │ │ ├── annotations │ │ │ ├── JSoapClass.java │ │ │ ├── JSoapResField.java │ │ │ ├── JSoapAttribute.java │ │ │ └── JSoapReqField.java │ │ │ └── SOAPManager.java │ │ └── AndroidManifest.xml ├── libs │ └── ksoap2-android-assembly-3.3.0-jar-with-dependencies.jar ├── build.gradle ├── proguard-rules.pro └── lib.iml ├── settings.gradle ├── .gitignore ├── gradle ├── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties └── local.properties ├── gradle.properties ├── JSoap.iml ├── gradlew.bat ├── gradlew ├── README.md └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':lib' 2 | -------------------------------------------------------------------------------- /lib/gradle.properties: -------------------------------------------------------------------------------- 1 | POM_NAME=JSoap Library 2 | POM_ARTIFACT_ID=jsoap 3 | POM_PACKAGING=aar -------------------------------------------------------------------------------- /lib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Lib 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/lib/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/lib/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/lib/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/lib/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/libs/ksoap2-android-assembly-3.3.0-jar-with-dependencies.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joaocruz04/JSoap/HEAD/lib/libs/ksoap2-android-assembly-3.3.0-jar-with-dependencies.jar -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | JSoap 5 | Hello world! 6 | Settings 7 | 8 | 9 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/java/pt/joaocruz04/jsoap/weather/GetWeatherInformation.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.jsoap.weather; 2 | 3 | import pt.joaocruz04.lib.annotations.JSoapClass; 4 | 5 | /** 6 | * Created by Joao Cruz on 07/01/15. 7 | */ 8 | @JSoapClass(namespace = "http://ws.cdyne.com/WeatherWS/") 9 | public class GetWeatherInformation { 10 | } 11 | -------------------------------------------------------------------------------- /lib/src/main/java/pt/joaocruz04/lib/misc/JsoapError.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.lib.misc; 2 | 3 | /** 4 | * Created by Joao Cruz on 08/01/15. 5 | */ 6 | public class JsoapError { 7 | 8 | public static final int NETWORK_ERROR = 0; 9 | public static final int PARSE_ERROR = 1; 10 | public static final int OTHER_ERROR = 2; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /lib/src/main/java/pt/joaocruz04/lib/misc/JSoapCallback.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.lib.misc; 2 | 3 | /** 4 | * Created by Joao Cruz on 08/01/15. 5 | */ 6 | public abstract class JSoapCallback { 7 | public abstract void onSuccess(Object result); 8 | public abstract void onError(int error); 9 | public void onDebugMessage(String title, String message) {} 10 | } 11 | -------------------------------------------------------------------------------- /lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /lib/src/main/java/pt/joaocruz04/lib/annotations/JSoapClass.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.lib.annotations; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * Created by João Cruz on 16/12/14. 10 | */ 11 | 12 | @Retention(RetentionPolicy.RUNTIME) 13 | @Target(ElementType.TYPE) 14 | public @interface JSoapClass { 15 | String namespace(); 16 | } 17 | -------------------------------------------------------------------------------- /gradle/local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Thu Jan 08 22:59:06 WET 2015 11 | sdk.dir=/Users/joaocruz04/Library/Android/sdk 12 | -------------------------------------------------------------------------------- /lib/src/main/java/pt/joaocruz04/lib/annotations/JSoapResField.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.lib.annotations; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * Created by João Cruz on 16/12/14. 10 | */ 11 | 12 | @Retention(RetentionPolicy.RUNTIME) 13 | @Target(ElementType.FIELD) 14 | public @interface JSoapResField { 15 | String name() default "JSOAP_DEFAULT_FIELD_NAME"; 16 | } 17 | -------------------------------------------------------------------------------- /app/src/main/java/pt/joaocruz04/jsoap/weather/GetCityWeatherByZIP.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.jsoap.weather; 2 | 3 | import pt.joaocruz04.lib.annotations.JSoapClass; 4 | import pt.joaocruz04.lib.annotations.JSoapReqField; 5 | 6 | /** 7 | * Created by Joao Cruz on 07/01/15. 8 | */ 9 | @JSoapClass(namespace = "http://ws.cdyne.com/WeatherWS/") 10 | public class GetCityWeatherByZIP { 11 | 12 | @JSoapReqField(order = 0, fieldName = "ZIP") 13 | private String zip; 14 | 15 | public GetCityWeatherByZIP(String zip) { 16 | this.zip = zip; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/java/pt/joaocruz04/jsoap/weather/WeatherDescription.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.jsoap.weather; 2 | 3 | import pt.joaocruz04.lib.annotations.JSoapResField; 4 | import pt.joaocruz04.lib.misc.SOAPDeserializable; 5 | 6 | /** 7 | * Created by Joao Cruz on 07/01/15. 8 | */ 9 | 10 | public class WeatherDescription { 11 | 12 | @JSoapResField(name = "WeatherID") 13 | private int weatherID; 14 | @JSoapResField(name = "Description") 15 | private String description; 16 | @JSoapResField(name = "PictureURL") 17 | private String pictureURL; 18 | 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/java/pt/joaocruz04/jsoap/weather/GetWeatherInformationResponse.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.jsoap.weather; 2 | 3 | import pt.joaocruz04.lib.annotations.JSoapClass; 4 | import pt.joaocruz04.lib.annotations.JSoapResField; 5 | import pt.joaocruz04.lib.misc.SOAPDeserializable; 6 | 7 | /** 8 | * Created by Joao Cruz on 07/01/15. 9 | */ 10 | 11 | 12 | @JSoapClass(namespace = "http://ws.cdyne.com/WeatherWS/") 13 | public class GetWeatherInformationResponse { 14 | 15 | @JSoapResField(name = "GetWeatherInformationResult") 16 | public WeatherDescription[] result; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /lib/src/main/java/pt/joaocruz04/lib/annotations/JSoapAttribute.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.lib.annotations; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * Created by João Cruz on 16/12/14. 10 | */ 11 | 12 | @Retention(RetentionPolicy.RUNTIME) 13 | @Target(ElementType.FIELD) 14 | public @interface JSoapAttribute { 15 | String name() default "JSOAP_DEFAULT_ATTRIBUTE_NAME"; 16 | String namespace() default "JSOAP_DEFAULT_ATTRIBUTE_NAMESPACE"; 17 | } 18 | -------------------------------------------------------------------------------- /lib/src/main/java/pt/joaocruz04/lib/annotations/JSoapReqField.java: -------------------------------------------------------------------------------- 1 | package pt.joaocruz04.lib.annotations; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * Created by João Cruz on 16/12/14. 10 | */ 11 | 12 | @Retention(RetentionPolicy.RUNTIME) 13 | @Target(ElementType.FIELD) 14 | public @interface JSoapReqField { 15 | String fieldName() default "JSOAP_DEFAULT_FIELDNAME"; 16 | String namespace() default "JSOAP_DEFAULT_NAMESPACE"; 17 | int order(); 18 | } 19 | -------------------------------------------------------------------------------- /lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 19 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 10 9 | targetSdkVersion 19 10 | versionCode 3 11 | versionName "1.0.2" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | 24 | } 25 | 26 | apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 19 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "pt.joaocruz04.jsoap" 9 | minSdkVersion 10 10 | targetSdkVersion 19 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.github.joaocruz04:jsoap:1.0.2' 25 | //compile project (':lib') 26 | } 27 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/joaocruz04/Documents/android_sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /lib/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/joaocruz04/Documents/android_sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | VERSION_NAME=1.0.2 2 | VERSION_CODE=3 3 | GROUP=com.github.joaocruz04 4 | 5 | POM_DESCRIPTION=SOAP library for Android projects 6 | POM_URL=https://github.com/joaocruz04/JSoap 7 | POM_SCM_URL=https://github.com/joaocruz04/JSoap 8 | POM_SCM_CONNECTION=scm:git@github.com:joaocruz04/JSoap.git 9 | POM_SCM_DEV_CONNECTION=scm:git@github.com:joaocruz04/JSoap.git 10 | POM_LICENCE_NAME=The Apache Software License, Version 2.0 11 | POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt 12 | POM_LICENCE_DIST=repo 13 | POM_DEVELOPER_ID=joaocruz04 14 | POM_DEVELOPER_NAME=Joao Cruz 15 | 16 | RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2 17 | SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /JSoap.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 12 | 13 |