Home » Enterprise Java » ws-soa

ws-soa

Metro Web Service Example

package com.wordpress.jdevel.ws; import java.io.File; import java.io.FileFilter; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.List; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; @WebService(serviceName = "Music") public class Music { private static final File FOLDER = new File("D:/TEMP/SONGS"); @WebMethod(operationName = "listSongs") public Song[] listSongs(@WebParam(name = "artist") String artist) { List<Song> songs = new ArrayList<Song>(); System.out.println("ARTIST: " + artist); if (artist != null) { File folder ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns