You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dobri Kitipov <kd...@googlemail.com> on 2010/10/13 10:10:11 UTC

How to execute REST POST invocation that contains DTD into it?

Hi everybody,
what I am trying to do is to make a REST POST request that contains DTD with
Axis2 client. I am using Axis2 1.4.1, so I referenced to the Axis2 1.4.1
documentation about RESTful Web Services Support [1]. Nevertheless it seems
this is not possible because sendReceive(...)  methods expect to have
OMElement. This is a problem because the request I am trying to create is
something like:


<!DOCTYPE getTest [
<!ENTITY ....... >
]>
<getTest xmlns="http://services.samples">
<request>
<symbol xmlns="http://services.samples/xsd">my_company</symbol>
</request>
</getTest >


My understanding is that I have AXIOM OMDocument that has two children -
OMDocType (DTD) and OMElement.

As you can see this is an OMDocument but not OMElement, so cannot be passed
as argument to a sendReceive(...)  method.

Do you know if it is possible to do such REST POST request with Axis2 (any
version) or I can only use a simple HTTP client?


Thanks,
Dobri


[1] http://ws.apache.org/axis2/1_4_1/rest-ws.html