Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
114 changes: 88 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,89 @@
# README for Service Adapter Assignment on IF4050 2015

##Instruction
1. Fork this repository https://github.com/if-itb/if4050-2015-ServiceAdapter.git
2. Work on your fork --> commit --> push [as many as you want]
3. [When you are done OR the deadline] create pull request

Each participnats should indicate clearly the following data:
* NIM = 1[35|82]+XXYYY
* Name = XXXXXXX
* GithubID = YYYY

Requreiments:
* ....
* ....
*

How to Deploy
1. .....
2. .....
3. .....
4.

How to Run
1. .....
2. .....
## Requirements
- [GlassFish Server](https://glassfish.java.net/download.html)
- [Maven](https://maven.apache.org/download.cgi)
- JRE >= 1.7
- Connection must be within the ITB network or use a vpn to the ITB network


## How to Run the SOAP Adapter
1. Move to `six-adapter-soap` directory

```
$ cd six-adapter-soap
```
2. Build war using maven

```
$ mvn compile war:war
```
3. A new folder named `target` will be created inside `six-adapter-soap` folder.
Now, it should contain a war file named `six-adapter-soap-1.0-SNAPSHOT.war`
4. Run GlassFish server:

```
PATH/TO/GLASSFISH/BIN/asadmin start-domain --domaindir /PATH/TO/GLASSFISH/DOMAINS -v [DOMAIN_FOLDER_NAME]
```
In my machine, the script looks like:
```
Users/edmundophie/Downloads/glassfish4full/glassfish/bin/asadmin start-domain --domaindir /Users/edmundophie/Downloads/glassfish4full/glassfish/domains -v domain1
```
5. Go to GlassFish admin console at `localhost:4848`
6. Select `Application` menu in the sidebar
7. Select `Deploy...` button and locate the war file that we have just built
8. To test the endpoint, you can go to
`http://localhost:8080/six-adapter-soap-1.0-SNAPSHOT/SixAdapterService?Tester`
or use the `SOAP Client` program in `six-adapter-soap-client` folder
9. WSDL can be viewed at
`http://localhost:8080/six-adapter-soap-1.0-SNAPSHOT/SixAdapterService?wsdl`

## How to Run the SOAP Client
1. Move to `six-adapter-client` directory

```
$ cd six-adapter-soap-client
```
2. Build `jar` using maven `mvn`

```
$ mvn package
```
2. Run `SixClient` from the generated `jar` in `target` folder

```
$ java -cp target/six-adapter-soap-client-1.0-SNAPSHOT.jar com.edmundophie.client.SixClient
```
3. Input your `Kode Prodi`, `Kode Mata Kuliah`, and `Kelas`


## How to Run the REST Adapter
1. Move to `six-adapter-rest` directory

```
$ cd six-adapter-rest
```
2. Build war using maven

```
$ mvn compile war:war
```
3. A new folder named `target` will be created inside `six-adapter-rest` folder.
Now, it should contain a war file named `six-adapter-rest-1.0-SNAPSHOT.war`
4. Run GlassFish server using:

```
PATH/TO/GLASSFISH/BIN/asadmin start-domain --domaindir /PATH/TO/GLASSFISH/DOMAINS -v [DOMAIN_FOLDER_NAME]
```
In my machine, the script would look like:
```
Users/edmundophie/Downloads/glassfish4full/glassfish/bin/asadmin start-domain --domaindir /Users/edmundophie/Downloads/glassfish4full/glassfish/domains -v domain1
```
5. Go to GlassFish admin console at `localhost:4848`
6. Select `Application` menu in the sidebar
7. Select `Deploy...` button and locate the war file that we have just built
8. To test the endpoint, you can go to
`http://localhost:8080/six-adapter-rest-1.0-SNAPSHOT/api/six?ps=[KODE_PRODI]&kode=[KODE_MATA_KULIAH]&kelas=[NO_KELAS]`

## Other
* NIM : 13512095
* Name : Edmund Ophie
* GithubID : edmundophie
Binary file added six-adapter-rest/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions six-adapter-rest/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions six-adapter-rest/.idea/artifacts/six_adapter_rest_war_exploded.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions six-adapter-rest/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions six-adapter-rest/.idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading