In REST you are free to return whatever you want...there is no
limitation, REST is not a standard it is just a "style"...some people
calls it an "architectural approach".

REST services do not need to return XML. But you may.
You may include processing instructions if you use XML.

On Thu, Sep 23, 2010 at 2:33 PM, Thallapragada, Sowmi
<[email protected]> wrote:
> Thanks Andreas.
>
> Does this hold true for REST style services as well?
>
> -----Original Message-----
> From: Andreas Veithen [mailto:[email protected]]
> Sent: Thursday, September 23, 2010 11:32 AM
> To: [email protected]
> Subject: Re: Processing Instruction
>
> According to the SOAP specs, processing instructions are forbidden in
> SOAP messages. Here is the relevant quote from the specs:
>
> "A SOAP message MUST NOT contain a Document Type Declaration. A SOAP
> message MUST NOT contain Processing Instructions."
>
> Andreas
>
> On Thu, Sep 23, 2010 at 00:16, Thallapragada, Sowmi <[email protected]> 
> wrote:
>> How can I add a processing instruction in my response XML? We would like to
>> add something like:
>>
>>
>>
>> <?access-control allow="*myvalue"?>
>>
>>
>>
>> before the SOAP envelope. Any help is appreciated.
>>
>>
>>
>> Sowmi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to