Daniel thanks for the quick reply. Still I cannot solve it server side.
On 04/05/2013 02:17 PM, Daniel Kulp wrote:
On Apr 5, 2013, at 5:29 AM, Vassilis Virvilis<[email protected]> wrote:
1) Server side: How I can configure the limits from the spring configuration.
Is it possible to do it per endpoint? per servlet?
You should be able to set the same property as an endpoint property in the
spring config or a Bus property, etc..
But how? ... I tried
<simple:server id="my_service_id" address="/MyService" ...>
<simple:dataBinding>
<bean
class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</simple:dataBinding>
<simple:properties>
<entry key="mtom-enabled" value="true" />
<entry key="org.apache.cxf.stax.maxChildElements"
value="1000000" />
</simple:properties>
...
but it doesn't work. Where should I put it and where is the spring magic
property I should set? Any snippet would be of great help. Thanks...
I need to test a bit on the client side. Ideally, you could just set it on the client's
request context, but since this applies to the response, I'm not 100% sure it would get
picked up. Worst case, you can do
ClientProxy.getClient(proxy).getEndpoint().put("org.ap….", 100000);
Yep the
ClientProxy.getClient(proxy).getEndpoint().put("org.apache.cxf.stax.maxChildElements",
"100000") trick works. Thanks
Vassilis