From the main menu choose: System->Preferences->Sessions->Startup Programs. Click Add and select the program you wish to start automatically.
1) Get the latest jaxb libraries from: https://jaxb.dev.java.net/
2) Copy the lib folder to the root of your eclipse project
3) Copy this build.xml file which triggers the schema generation to the root of your eclipse project.
4) In build.xml change: srcdir="./ejbModule/eu/socrades/sap/messages"
to make it point to the folder where the classes you want to generate the folder
5) Let's say you want to generate your schema from the class Message.java.
If Message.java uses other classes (which is very likely) you need to add them
to the build.xml class path. To do so right click the build.xml file:
Properties->Run/Debug settings->Edit->Classpath and select the jars to include
(e.g. siiCommonDataStructures) by selection Add JARS...
6) Right click on build.xml and do: Run As->Ant build
7) Your schema should be generated in build/schemas
8) Note that the generated schema is sometimes not perfect and might need some
manual edits (such as adding elements that contain the generated types).
More info on: https://jaxb.dev.java.net/nonav/2.0.2/docs/schemagen.html
We have a Web Service which is supposed to return a complex object (called ServiceInstance) which exposes a method returning a WSDL file (ServiceInstance.getWSDL(). Now, I tried several methods for sending the WSDL file as part of the web service payload. The first one was to create a Document object (DOM document) that would contain the XML structure of the WSDL. However, this approach does not seem to work as the JAXB compiler doesn't know how to serialize a Document.
The second approach was to send it as a String. However, when using this approach the xml tags (namely the "greater than" and "smaller characters") are escaped creating a messy xml that one needs to re-parse on the client side. Well actually there is a work around. On the client side you can do:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document xmlDocument = builder.parse
(new InputSource(new StringReader(instances.get(0).getWSDL())));
which will re-create a clean DOM Document from the WSDL represented as a String. Note that this will work for any XML document, not just WSDLs.
I know this is not extremely clean but in our case it was the best solution for two reasons (and I'm really open, no eager, to listen to any better proposal):
1) We can still re-create the XML documents on the client side in an easy manner.
2) We needed the WSDL in the ServiceInstance objects to have a small
memory foot-print (they get out of an in-memory database).
InputStream in = getClass().getResourceAsStream("DomTest.tex");
InputStreamReader inReader = new InputStreamReader(in);
BufferedReader reader = new BufferedReader(inReader);
StringBuilder builder = new StringBuilder();
String currentLine;
try {
while((currentLine = reader.readLine()) != null) {
builder.append(currentLine);
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
To delete the profile folder of another user on your machine (i.e. of a user who logged on to your machine) start:
Control Panel\User Accounts\User Accounts and click on "Configure advanced user profile properties".
There you can select the profile folders you want to remove.
:: Next Page >>
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
This is my logbook, use it if you feel like but it is mainly customized for my own use...