Hi, I use Axis2 1.3.

If I'd like to create a POJO-based RESTFul serivce,
but the service isn't received the JavaBean.

ex)
service
------------------------------------------------------------
public class AddressBookService {

    private Map<Integer, Entry> entries = new TreeMap<Integer, Entry>();

    public void addEntry(Entry entry) {
        this.entries.put(entry.getId(), entry);
    }
}

REST request(POST)
------------------------------------------------------------
POST /s2axis2-examples/services/AddressBookService/addEntry HTTP/1.1
Content-Type: application/x-www-form-urlencoded;
charset=UTF-8;action="urn:addEntry";
Cookie: JSESSIONID=FE93DF26AE10A5D1C336AA27089E9020; Path=/s2axis2-examples
SOAPAction: urn:addEntry
User-Agent: Axis2
Host: 127.0.0.1:8088
Transfer-Encoding: chunked

88
id=1&name=Abby%20Cadabby%20:%201&street=Sesame%20Street%20:%201&city=Sesame%20City%20:%201&state=Sesame%20State%20:%201&postalCode=123-1
0


When the service is received 'Entry',
It is always null.

I make the request as GET and POST request,
but the result is same.


Please tell me how to create a POJO-based RESTFul serivce.


Takanori.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to