JAX-WS: cómo hacer que una respuesta SOAP devuelva un objeto HashMap

Así que tengo un servicio web simple:

    @WebMethod(operationName="getBookList")
    public HashMap<Integer,Book> getBookList()
    {
        HashMap<Integer, Book> books = new HashMap<Integer,Book>();
         Book b1 = new Book(1,"title1");
         Book b2 = new Book(2, "title2");
         books.put(1, b1);
         books.put(2, b2);
        return books;
    }

La clase de libros también es simple:

public class Book
{
    private int id;
    private String title;

    public int getId()
    {
        return id;
    }

    public String getTitle()
    {
        return title;
    }
    public Book(int id, String title)
    {
        id = this.id;
        title = this.title;
    }
}

Ahora cuando llamas a este servicio web en el probador del navegador, obtengo:

Method returned
my.ws.HashMap : "my.ws.HashMap@1f3cf5b"

SOAP Request
  ...
  ...

SOAP Response

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:getBookListResponse xmlns:ns2="http://ws.my/">
            <return/>
        </ns2:getBookListResponse>
    </S:Body>
</S:Envelope>


¿Es posible tener la devolución?HashMap objeto mostrado en<return> etiqueta, algo como

<return>
     <Book1>
          id=1
          title=title1
     </Book1>
</return>
<return>
     <Book2>
          id=2
          title=title2
     </Book2>
</return>

La razón por la que quiero los valores en las etiquetas de retorno es porque, desde el lado del cliente, estoy usando jQuery AJAX en una página web para llamar a este servicio web, y el XML de respuesta que estoy recibiendo está vacío.<return> etiquetas ¿Cómo puedo obtener el valor real en libros del lado del cliente AJAX?

Aquí está mi código web AJAX:

   $.ajax({
        url: myUrl, //the web service url
        type: "POST",
        dataType: "xml",
        data: soapMessage, //the soap message. 
        complete: showMe,contentType: "text/xml; charset=\"utf-8\""         

    });
function showMe(xmlHttpRequest, status)
{  (xmlHttpRequest.responseXML).find('return').each(function()
   { // do something
   }
}

Lo probé con el sencillo servicio web hello world y funcionó.

Respuestas a la pregunta(3)

Su respuesta a la pregunta