annotate service/src/main/java/info/textgrid/middleware/digilib/services/scaler/Scaler.java @ 7:39c4892724ae

new version with maven modules for service and client.
author casties
date Thu, 16 Jun 2011 17:33:06 +0200
parents src/main/java/info/textgrid/middleware/digilib/services/scaler/Scaler.java@913bc132ed96
children fe0a111cc8f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ebcc41509c2e new package names
casties
parents:
diff changeset
1 package info.textgrid.middleware.digilib.services.scaler;
ebcc41509c2e new package names
casties
parents:
diff changeset
2
7
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
3 import info.textgrid.namespaces.metadata.core._2010.MetadataContainerType;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
4 import info.textgrid.namespaces.middleware.digilib.services.digilibservice.DigilibServicePortType;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
5 import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.AuthFault;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
6 import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.IoFault;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
7 import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.MetadataParseFault;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
8 import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.ObjectNotFoundFault;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
9 import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.ProtocolNotImplementedFault;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
10 import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.TGCrudService;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
11 import info.textgrid.namespaces.middleware.tgcrud.services.tgcrudservice.TGCrudService_Service;
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
12
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
13 import java.io.ByteArrayOutputStream;
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
14 import java.io.File;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
15 import java.io.FileOutputStream;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
16 import java.io.IOException;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
17 import java.io.InputStream;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
18 import java.io.OutputStream;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
19 import java.net.MalformedURLException;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
20 import java.net.URL;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
21
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
22 import javax.activation.DataHandler;
2
ebcc41509c2e new package names
casties
parents:
diff changeset
23 import javax.jws.WebService;
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
24 import javax.xml.ws.BindingProvider;
2
ebcc41509c2e new package names
casties
parents:
diff changeset
25 import javax.xml.ws.Holder;
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
26 import javax.xml.ws.soap.SOAPBinding;
2
ebcc41509c2e new package names
casties
parents:
diff changeset
27
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
28 import digilib.image.ImageJobDescription;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
29 import digilib.image.ImageLoaderDocuImage;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
30 import digilib.image.ImageOpException;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
31 import digilib.image.ImageWorker;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
32 import digilib.io.ImageCacheStream;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
33 import digilib.servlet.DigilibConfiguration;
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
34 import digilib.servlet.DigilibRequest;
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
35
2
ebcc41509c2e new package names
casties
parents:
diff changeset
36 @WebService(targetNamespace = "http://textgrid.info/namespaces/middleware/digilib/services/DigilibService",
7
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
37 serviceName="DigilibService", portName="DigilibServicePort",
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
38 endpointInterface="info.textgrid.namespaces.middleware.digilib.services.digilibservice.DigilibServicePortType")
39c4892724ae new version with maven modules for service and client.
casties
parents: 6
diff changeset
39 public class Scaler implements DigilibServicePortType {
2
ebcc41509c2e new package names
casties
parents:
diff changeset
40
ebcc41509c2e new package names
casties
parents:
diff changeset
41 @Override
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
42 public void getScaledImage(String sessionId, String uri, String query,
2
ebcc41509c2e new package names
casties
parents:
diff changeset
43 String logParameter, Holder<String> mimeType,
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
44 Holder<byte[]> imageData, Holder<Integer> width,
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
45 Holder<Integer> height) {
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
46
2
ebcc41509c2e new package names
casties
parents:
diff changeset
47 System.out.println("getScaledImage! sid="+sessionId+" uri="+uri+" log="+logParameter);
ebcc41509c2e new package names
casties
parents:
diff changeset
48
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
49 // Get TG-crud service.
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
50 String serverUrl = "http://textgrid-ws3.sub.uni-goettingen.de/tgcrud/TGCrudService?wsdl"; // p.getProperty("crud_serverUrl");
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
51 URL location = null;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
52 try {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
53 location = new URL(serverUrl);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
54 } catch (MalformedURLException e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
55 // TODO Auto-generated catch block
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
56 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
57 }
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
58
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
59 System.out.println("TG-crud WSDL location: " + location.getProtocol()
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
60 + "://" + location.getHost() + ":"
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
61 + (location.getPort() == -1 ? "80" : location.getPort())
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
62 + location.getPath());
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
63
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
64 // Create TG-crud service stub.
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
65 if (serverUrl != null) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
66 // Use MTOM stub.
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
67 TGCrudService_Service service = new TGCrudService_Service(location);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
68 TGCrudService tgcrud = service.getTGCrudPort();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
69 BindingProvider bindingProvider = (BindingProvider) tgcrud;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
70 SOAPBinding binding = (SOAPBinding) bindingProvider.getBinding();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
71 binding.setMTOMEnabled(true);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
72
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
73 // Create holders.
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
74 Holder<MetadataContainerType> metadataHolder = new Holder<MetadataContainerType>();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
75 Holder<DataHandler> dataHolder = new Holder<DataHandler>();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
76
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
77 // Start #READ operation.
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
78 try {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
79 String theSessionId = sessionId;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
80 String theLogParameter = logParameter;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
81 String theUri = uri;
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
82 String mode = "digilib";
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
83 long startTime = System.currentTimeMillis();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
84 tgcrud.read(theSessionId, theLogParameter, theUri,
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
85 metadataHolder, dataHolder);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
86 System.out.println(Long.toString(System.currentTimeMillis()
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
87 - startTime)
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
88 + " ms");
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
89 System.out.println("READ: Title="
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
90 + metadataHolder.value.getObject().getGeneric()
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
91 .getProvided().getTitle().get(0));
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
92 InputStream istream = dataHolder.value.getInputStream();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
93 String mt = metadataHolder.value.getObject().getGeneric().getProvided().getFormat();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
94 System.out.println("Stream="+istream.toString()+" type="+mt);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
95 if (mode.equalsIgnoreCase("digilib")) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
96 // try scaling
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
97 DigilibConfiguration dlConfig = new DigilibConfiguration();
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
98 DigilibRequest dlReq = new DigilibRequest();
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
99 dlReq.setWithParamString(query, "&");
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
100 ImageJobDescription job = ImageJobDescription.getInstance(dlReq, dlConfig);
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
101 ImageCacheStream imgStream = new ImageCacheStream(istream, mt);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
102 System.out.println("iis="+imgStream.getImageInputStream());
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
103 ImageLoaderDocuImage img = new ImageLoaderDocuImage();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
104 // reuse reader for stream input
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
105 img.reuseReader = true;
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
106 // identify image size
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
107 System.out.println("Identifying...");
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
108 img.identify(imgStream);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
109 job.setDocuImage(img);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
110 job.setInput(imgStream);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
111 // use image worker
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
112 ImageWorker digilib = new ImageWorker(dlConfig, job);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
113 System.out.println("Scaling with "+digilib);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
114 digilib.call();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
115 System.out.println(Long.toString(System.currentTimeMillis()
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
116 - startTime)
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
117 + " ms");
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
118 // save image to buffer
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
119 ByteArrayOutputStream ostream = new ByteArrayOutputStream();
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
120 img.writeImage("image/jpeg", ostream);
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
121 System.out.println("written in "+(System.currentTimeMillis()-startTime)+" ms");
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
122 // set buffer in Holder
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
123 imageData.value = ostream.toByteArray();
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
124 mimeType.value = "image/jpeg";
6
913bc132ed96 returning data works now
casties
parents: 5
diff changeset
125 width.value = img.getWidth();
913bc132ed96 returning data works now
casties
parents: 5
diff changeset
126 height.value = img.getHeight();
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
127 System.out.println("output set.");
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
128
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
129 /* save to file
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
130 File f = new File("/tmp/tgimg.jpg");
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
131 OutputStream ostream = new FileOutputStream(f);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
132 img.writeImage("image/jpeg", ostream);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
133 System.out.println(Long.toString(System.currentTimeMillis()
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
134 - startTime)
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
135 + " ms");
5
f723439bd23e added query parameter to wsdl. uses parameters now. writing result doesn't work.
casties
parents: 4
diff changeset
136 */
4
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
137 } else {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
138 // try to copy to file
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
139 File f = new File("/tmp/tgimg.img");
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
140 OutputStream ostream = new FileOutputStream(f);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
141 byte[] data = new byte[1024];
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
142 int l = istream.read(data);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
143 while (l > -1) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
144 ostream.write(data, 0, l);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
145 l = istream.read(data);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
146 }
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
147 ostream.close();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
148 System.out.println(Long.toString(System.currentTimeMillis()
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
149 - startTime)
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
150 + " ms");
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
151 System.out.println("Done writing " + f);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
152 }
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
153 } catch (ObjectNotFoundFault e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
154 // System.out.println(TestServiceUtils.faultDetails(e.getFaultInfo(),
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
155 // e.getClass().getSimpleName()));
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
156 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
157 } catch (MetadataParseFault e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
158 // System.out.println(TestServiceUtils.faultDetails(e.getFaultInfo(),
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
159 // e.getClass().getSimpleName()));
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
160 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
161 } catch (IoFault e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
162 // System.out.println(TestServiceUtils.faultDetails(e.getFaultInfo(),
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
163 // e.getClass().getSimpleName()));
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
164 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
165 } catch (ProtocolNotImplementedFault e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
166 // System.out.println(TestServiceUtils.faultDetails(e.getFaultInfo(),
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
167 // e.getClass().getSimpleName()));
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
168 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
169 } catch (AuthFault e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
170 // System.out.println(TestServiceUtils.faultDetails(e.getFaultInfo(),
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
171 // e.getClass().getSimpleName()));
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
172 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
173 } catch (IOException e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
174 // TODO Auto-generated catch block
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
175 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
176 } catch (ImageOpException e) {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
177 // TODO Auto-generated catch block
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
178 e.printStackTrace();
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
179 }
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
180
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
181 } else {
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
182 System.out.println("No TG-crud server WSDL URL given!");
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
183 // assertTrue(false);
2a34f8fa0f32 works as a service, takes uri and sid and scales now.
casties
parents: 2
diff changeset
184 }
2
ebcc41509c2e new package names
casties
parents:
diff changeset
185 }
ebcc41509c2e new package names
casties
parents:
diff changeset
186
ebcc41509c2e new package names
casties
parents:
diff changeset
187 }