Showing posts from April, 2006

BPEL Process Tracing

When you are dealing with Web services, there is a common problem that you have to deal with; Capturing SOAP request/response as they flow on the wire between the client and the service endpoint.

Tug's blog entry give you all the steps required to be successful with the setup, when using Oracle BPEL process manager.

I have to try using Tug's instruction in conjunction to Mindreef's SOAPscope to see how it works. At first, it looks very promising.


Having Fun playing on the Internet

If you are looking for something to do over the weekend, as the rain returns here are some cool links I wanted to share:

For the youngsters: Visit and complete your own puzzle online.

For the older: The Sudoku of the day

And for the rest of us, just a little reading from the 2005 Darwin Awards finalists.


Web Services and XML Documents

For some it's obvious. As it was not for me, I decided to put it on e-paper so that you can google this when you need it.

If you want to exchange XML Document, meaning the whole content of an XML file, with Web services, you should not use org.w3c.dom.Document or any other object representation of your XML DOM tree in your method signature. Instead, you should be using a Plain Old Types (POT) like String or byte[].

Take the following code sample, here using JSR-181 annotations:

public Document getDocument(String input) {
  Document res = null;
  try {
    DOMParser builder = new DOMParser();
    builder.parse(new StringReader(STR_XML_DOCUMENT));
    res = builder.getDocument();
  } catch (Exception ex) {
  return res;

private static final String STR_XML_DOCUMENT =
  "<?xml version=\"1.0\"?>\n" +
  "<!DOCTYPE module PUBLIC\n" +
  "\"-//Puppy Crawl//DTD Check Configuration 1.2//EN\"\n" +

unexpected null value for literal data

There is a challenge that is hard to overcome at first; making sense of error messages.You can always Google with the text of the error, “unexpected null value for literal data” and hope to be lucky. If you are using Oracle Application Server, here is the explaination for the message and two ways out.The Exception:
unexpected null value for literal data
The relevant schema:
<complexType name="Customer">
<element name="address" type="tns:Address"/>
<element name="firstName" type="string"/>
<element name="lastName" type="string"/>
A sample code that will cause this exception:
public void testServ() throws Exception {