Hi people :)
I have developed a webservice app using apache-soap and just trying to
tweak abit in axis just to generate the WSDL for my service. I deployed
it with a .jws file, had tomcat already running, but somehow when I
access http://localhost:8080/axis/myService.jws?wsdl, nothing shows..
a.k.a. just plain white blank page. Did I miss anything here now?
[g]
ps. Here's the code I wanted to migrate.. please inform me about
anything I had to modify just to be able to generate a WSDL. Another
thing, I had a serializer specially made to handle a complex type,
should I also migrate this class into axis.. or is it possible that I
can use the exact class directly in axis?
Code:
package serverFTUGM;
import org.openisis.*;
import java.io.IOException;
import java.util.Date;
import java.util.Vector;
import java.net.URL;
import java.lang.*;
import java.util.*;
import java.io.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import org.apache.soap.util.xml.*;
public class serverFTUGM {
private static final String EMPTY = "";
private static Db dbs;
private static String dberr = EMPTY;
private static int ROWS = 5;
public HashMap[] searchFTUGM(String searchKey) {
try {
String[] args = new String[] { "-db",
"c:/isis/data/buku/buku", "-v", "error", "-encoding", "Cp850" };
dbs = Db.open(null,args);
} catch (IOException e) {
dberr = e.toString();
}
int[] nset = dbs.search(searchKey, Db.QRY_KEYAT);
HashMap[] sMap = new HashMap[nset.length];
for(int j = 0; j < nset.length; j++) {
HashMap item = new HashMap();
Rec recval = dbs.readRow(nset[j]);
if(recval == null) {
continue;
}
int m = Db.MDL | Db.PS | Db.HTA;
String r13 = "<br> ";
item.put("nomer",recval.v("","", 99,m,0,0,
r13,"")); //nomer
item.put("judul",recval.v("","",245,m,0,0,
r13,"")); //judul
item.put("edisi",recval.v("","",250,m,0,0,
r13,"")); //edisi
item.put("seri",recval.v("","",440,m,0,0,
r13,"")); //seri
item.put("penulis",recval.v("","",100,m,0,0,
r13,"")); //penulis
item.put("penerbit",recval.v("","",260,m,0,0,
r13,"")); //penerbit
item.put("tahun1",recval.v("","",982,m,0,0,
r13,"")); //tahun1
item.put("tahun2",recval.v("","",983,m,0,0,
r13,"")); //tahun2
item.put("catatan",recval.v("","",500,m,0,0,
r13,"")); //catatan
item.put("eks",recval.v("","",985,m,0,0,
r13,"")); //eks
item.put("ktkunci",recval.v("","",695,m,0,0,
r13,"")); //ktkunci
item.put("lokasi",recval.v("","",850,m,0,0,
r13,""));//lokasi
sMap[j] = item;
}
return (HashMap[]) sMap;
}
}