Add Soap Headers Inband

2016-05-25 Thread Kiren Pillay
Hi I would like to add Soap credentials inband with by soap request using a cxf-codegen classes. http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ws="http://ws..com";> http://xxx.com";> spbadmin sandvine I'm using the following code as detailed in your FAQ, but the para

Re: UnMarshalling illegal characters from XML

2015-08-04 Thread Kiren Pillay
a custom XMLStreamWriter and do a more > > fine-grained control... > > > > HTH, Sergey > > > > On 03/08/15 13:55, Kiren Pillay wrote: > > > >> Hi > >> > >> Which is the most efficient way of removing illegal characters from the > >>

UnMarshalling illegal characters from XML

2015-08-03 Thread Kiren Pillay
Hi Which is the most efficient way of removing illegal characters from the JAXB XML Output for a JAX-RS service? I have data values that have 0x00 which does get marshalled, however the client falls over because of this. I want to prevent these values from being written to the JAXB Output stream

Re: NullPointerException with WebClient

2015-05-07 Thread Kiren Pillay
Hi Binh Your issue isn't exactly the same as mine. However I have had an experience similar to yours before. It turns out that if you have jar with dependencies, classes from different versions of libraries may overwrite each other. I worked around this by using the maven-app-assembler whic

Re: Webclient to local endpoint loses SecurityContext

2015-05-06 Thread Kiren Pillay
> > HTH > Sergey > > On 04/05/15 16:17, Kiren Pillay wrote: > >> Hi All, >> >> I have a Webclient in one application calling a local endpoint of another >> application in the same container. >> >> It seems that the security context is being

Webclient to local endpoint loses SecurityContext

2015-05-04 Thread Kiren Pillay
Hi All, I have a Webclient in one application calling a local endpoint of another application in the same container. It seems that the security context is being lost in the local call. Is there a way to preserve the Security Context? //Working 1. WebClient localClient = WebClient.create

Re: Inject MessageContext into Aspect

2014-12-09 Thread Kiren Pillay
I managed to get this working with scope prototype, as this was at my app startup and there wasn't a web application thread in scope.: Thanks Kiren On Mon, Dec 8, 2014 at 2:21 PM, Kiren Pillay wrote: > Okay thanks Sergey. > > For reference for others I'm

Re: Inject MessageContext into Aspect

2014-12-08 Thread Kiren Pillay
Okay thanks Sergey. For reference for others I'm using the following aspect config. On Mon, Dec 8, 2014 at 2:16 PM, Sergey Beryozkin wrote: > Hi > > On 08/12/14 12:02, Kiren Pillay wrote: > >> Hi >> >> I need to inject the MessageContext into an Aspect

Inject MessageContext into Aspect

2014-12-08 Thread Kiren Pillay
Hi I need to inject the MessageContext into an Aspect that sits around my Service. Is there maybe sample code that illustrates how to do this? I've tried to inject the MessageContext into the Aspect but it comes out as nul for some reason. Regards Kiren

MessageContext from Exchange

2014-12-08 Thread Kiren Pillay
Hi How do I get the MessageContext from the Exchange? Regards Kiren

Re: SOAP calling REST service

2014-08-12 Thread Kiren Pillay
Thanks for your help Sergey! Cheers. On Tue, Aug 12, 2014 at 9:49 PM, Sergey Beryozkin wrote: > Hi Kiren > > Sounds good, thanks for making it work > > Cheers, Sergey > > On 12/08/14 20:39, Kiren Pillay wrote: >> >> Hi Sergey, >> >> I have mana

Re: SOAP calling REST service

2014-08-12 Thread Kiren Pillay
Hi Sergey, I have managed to get the local transport working. It is working as specified in the tests:) I think the missing MessageObserver error is caused by a missing target resource bean in my jaxrs:server config. Regards Kiren On Mon, Aug 11, 2014 at 12:18 PM, Kiren Pillay wrote: >

NullPointerException with WebClient

2014-08-11 Thread Kiren Pillay
Hi Sergey, I am getting a NPE when I use the WebClient as a self-standing application. We're using Maven and the jar-with-dependencies option for this client. It looks like a dependency issue, because if I run the app in my IDE it works fine. When I run the self-packaged jar it fails. What depend

Re: SOAP calling REST service

2014-08-11 Thread Kiren Pillay
ocalTransportTest with a failing test and create > a patch ? > Thanks, Sergey > > On 11/08/14 11:20, Kiren Pillay wrote: >> >> Hi Sergey, >> >> This is CXF 3.0.1. >> >> Regards >> Kiren >> >> On Sun, Aug 10, 2014 at 9:24 PM, Sergey Be

Re: SOAP calling REST service

2014-08-11 Thread Kiren Pillay
Hi Sergey, This is CXF 3.0.1. Regards Kiren On Sun, Aug 10, 2014 at 9:24 PM, Sergey Beryozkin wrote: > Hi Kiren > > What CXF version is it ? > > Thanks, Sergey > > On 08/08/14 13:24, Kiren Pillay wrote: >> >> Hi Sergey, >> >> Thanks, I tried

Re: SOAP calling REST service

2014-08-08 Thread Kiren Pillay
ient.get(Book.class); > assertEquals(123L, book.getId()); > } > > Can you please try the following, create WebClient directly in the code, > without injecting it, and see if it can invoke correctly,just to check if it > is an injection related issue or not. &g

Re: SOAP calling REST service

2014-08-07 Thread Kiren Pillay
be set > to a full WebClient name -> it will lead to a WebClient created. > WebClient can work with a local transport too > > Cheers, Sergey > > On 07/08/14 16:16, Kiren Pillay wrote: >> >> Hi Sergey, >> >> Not sure if I'm the r

Re: SOAP calling REST service

2014-08-07 Thread Kiren Pillay
t 2:18 PM, Sergey Beryozkin wrote: > Hi Kiren > Looks like a jaxrs:client/@serviceClass is missing > > Cheers, Sergey > > On 07/08/14 14:25, Kiren Pillay wrote: >> >> Hi Sergey, >> >> I'm trying to use the local transport as outlined in our email befo

Re: SOAP calling REST service

2014-08-07 Thread Kiren Pillay
ableBeanFactory.java:1015) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911) On Sun, Nov 17, 2013 at 5:47 PM, Kiren Pillay wrote: > Okay, I was was supposed to use "#" in front of bean name. > > Thx > > > On Sun, Nov 17, 2013 at 11:42 AM, Kir

Re: POSTing XML to REST Webservice

2013-11-17 Thread Kiren Pillay
Okay, thanks Sergey! On Sun, Nov 17, 2013 at 11:23 PM, Sergey Beryozkin wrote: > Hi Kiren > > On 17/11/13 20:44, Kiren Pillay wrote: > >> Hi Sergey, >> >> I think I may have managed to fix the issue, it was coming from my request >> packet. For some reason,

Re: POSTing XML to REST Webservice

2013-11-17 Thread Kiren Pillay
uot;mmsBilling") public Response execute(MmsBillingRequest request) throws Exception { Regards Kiren On Sun, Nov 10, 2013 at 11:54 PM, Sergey Beryozkin wrote: > Hi Kiren > Can you please open a JIRA and attach your project there ? > > Thanks, Sergey > > On 10/11/13 20:58, K

Re: SOAP calling REST service

2013-11-17 Thread Kiren Pillay
Okay, I was was supposed to use "#" in front of bean name. Thx On Sun, Nov 17, 2013 at 11:42 AM, Kiren Pillay wrote: > Hi Sergei, > > I'm trying to use the bean reference for the implementing class but am > getting a classNotFoundError (CXF2.7.7). Is this a bug or

Re: SOAP calling REST service

2013-11-17 Thread Kiren Pillay
beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254) On Thu, Nov 14, 2013 at 12:54 PM, Kiren Pillay wrote: > Thanks Sergey, will give it a try! > > Regards > Kiren > > > On Thu, Nov 14, 2013 at 12:36 PM, Sergey Beryozkin > wrote: > >> Hi Kiren &

Re: SOAP calling REST service

2013-11-14 Thread Kiren Pillay
ject this client (or WebClient) into the soap server > > This should do > > Cheers, Sergey > > > On 13/11/13 23:10, Kiren Pillay wrote: > >> Hi Sergey, >> >> I am trying to have a SOAP service calling a RESTFUL service, both >> deployed >> withi

SOAP calling REST service

2013-11-13 Thread Kiren Pillay
Hi Sergey, I am trying to have a SOAP service calling a RESTFUL service, both deployed within the same CXF servlet. What is the best or most efficient way to invoke the RestFul service from the SOAP service?. I want the RestFul service to behave as if its being called from an external source so t

Re: POSTing XML to REST Webservice

2013-11-10 Thread Kiren Pillay
odd > indeed > > Thanks, Sergey > > On 02/11/13 15:23, Kiren Pillay wrote: > >> Thanks. I removed the QueryPAram as below, >> >> @POST >> @Consumes({ MediaType.APPLICATION_XML }) >> @Produces({ MediaType.APPLICATION_XML }) >> @Pa

Re: POSTing XML to REST Webservice

2013-11-02 Thread Kiren Pillay
Spaces.put("ns2","http://www.mmsLogDetails.products.pams.co.za "); MmsBillingRequest mms=xml.getNode("/", MmsBillingRequest.class); String msisdn = mms.getOriginatorMsisdn(); On Sat, Nov 2, 2013 at 5:23 PM, Kiren Pillay wrote: > Thanks. I rem

Re: POSTing XML to REST Webservice

2013-11-02 Thread Kiren Pillay
represent a message body, so no attempt to read the stream is attempted > > Thanks, Sergey > > On 01/11/13 07:31, Kiren Pillay wrote: > >> HI All, >> >> I need to post an XML entity to a restful web-service, however my service >> isn't picking up the requ

POSTing XML to REST Webservice

2013-11-01 Thread Kiren Pillay
HI All, I need to post an XML entity to a restful web-service, however my service isn't picking up the request for some reason, I'm getting a null value for my request. Can someone please guide me in the right direction. I'm using the JAXB Provider. Here's my service: @POST @Produces({ Med

Re: OperationInfo NoClassDefFoundError: CXF under high load

2013-05-07 Thread Kiren Pillay
kind of memory > > issue... I do not expect any leaks in CXF JAX-RS code in CXF 2.6.6. I > think > > you can confirm that by having a single client do many requests. If it > > proves OK which I do expect to, then I guess it a question of increasing > > the memory resource

Re: OperationInfo NoClassDefFoundError: CXF under high load

2013-05-07 Thread Kiren Pillay
nk > you can confirm that by having a single client do many requests. If it > proves OK which I do expect to, then I guess it a question of increasing > the memory resources on the server > > Sergey > > > On 07/05/13 14:29, Kiren Pillay wrote: > >> Hi >> >> W

OperationInfo NoClassDefFoundError: CXF under high load

2013-05-07 Thread Kiren Pillay
Hi We are subjecting our CXF app to high load (200 concurrent users), and are experiencing a strange exception NoClassDefFoundError: org/apache/cxf/service/model/OperationInfo. When calling the loaded function in a single request (ie, no load), its fine. Theses are the included jars: springsourc

Re: JAX-RS resource path question

2012-09-11 Thread Kiren Pillay
Thanks Sergey, Looks like the first option will solve the problem for me:) Best regards Kiren On Tue, Sep 11, 2012 at 10:06 PM, Sergey Beryozkin wrote: > Hi > > On 11/09/12 20:41, Kiren Pillay wrote: > >> Hi All, >> >> We have a project where the customer real

JAX-RS resource path question

2012-09-11 Thread Kiren Pillay
Hi All, We have a project where the customer really doesn't want to go the full REST route. We are basically migrating a Corba IDL interface with 100+ functions over to web services and they want a generic URL to send requests through to. For the new implementation, I want to implement the follow

Re: SocketTimeoutException on POST request using Webclient

2012-05-21 Thread Kiren Pillay
Hi Chandru, If you're running your code from netbeans, make sure there is no proxy configured there. I've seen this happen before. Regards Kiren On Mon, May 21, 2012 at 5:04 PM, Sergey Beryozkin wrote: > On 21/05/12 15:59, Ganesan, Chandru wrote: > >> Thanks Sergey. Could you point me to sample

Re: CXF Test client for JAXB load testing

2012-04-10 Thread Kiren Pillay
cuting 100 requests >> simultaneously with JAXB marshalling/unmarshalling involved :-) >> >> I tried 2.6.0-SNAPSHOT. I'm getting convinced CXF is performing pretty >> well indeed :-), there could be a lot of other factors though affecting >> the actual performance data

Re: CXF Test client for JAXB load testing

2012-03-28 Thread Kiren Pillay
throw new RuntimeException(); } } } } On Wed, Mar 28, 2012 at 12:20 PM, Sergey Beryozkin wrote: > Hi Kiren > > On 28/03/12 10:33, Kiren Pillay wrote: > >> Hi Sergey! >> >> With your code I'm getting 13 ms average on my Tomcat s

Re: CXF Test client for JAXB load testing

2012-03-28 Thread Kiren Pillay
Kiren > > On 27/03/12 13:09, Kiren Pillay wrote: > >> Hi Sergey, >> >> Attached is a war file against which I am testing my client. >> > great, thanks > > > The test URLS >> are given below together with the Jamon stats for a 1000 hits. >> >

CXF Test client for JAXB load testing

2012-03-27 Thread Kiren Pillay
Hi Sergey, Attached is a war file against which I am testing my client. The test URLS are given below together with the Jamon stats for a 1000 hits. 1. Large response (27k) url="http://localhost:8080/RestTest/rest/test/long/27000";; JAMon Label=myCodeTimer, Units=ms.: (Hits=1000.0, Avg=7.77, To

Re: JAX-RS and JIBX

2012-03-20 Thread Kiren Pillay
On 20/03/12 21:42, Sergey Beryozkin wrote: > >> Hi Kiren >> On 20/03/12 20:14, Kiren Pillay wrote: >> >>> Hi Sergey, >>> >>> That's pretty good, is that 3ms per request?! >>> >> >> I'm now getting 7 ms (average) when a 30K-35K

Re: JAX-RS and JIBX

2012-03-20 Thread Kiren Pillay
s around them with asm...Prefer using a wrapper bean... > > Cheers, Sergey > > > > On 20/03/12 16:06, Sergey Beryozkin wrote: > >> Hi Kiren >> On 20/03/12 14:47, Kiren Pillay wrote: >> >>> Hi Sergey! >>> >>> We are using 2.5.2, sorry,

Re: JAX-RS and JIBX

2012-03-20 Thread Kiren Pillay
other thing the Woodstox Stax reader is used under the hood by default > at the read time, and the (woodstox) writer can indirectly enabled by > setting a JAXBElementProvider 'enableStreaming' property - > this can be set to true by default > > Sergey > > > On 17/0

Re: JAX-RS and JIBX

2012-03-17 Thread Kiren Pillay
Hi John, I am interested in the work you are doing. I am facing performance issues with JAXB with large payloads (27K responses). The marshalling in my experience looks like its 30-40% of the request time (for large packets). I am looking at the JAXBElementProvider class and notice that a potenti

Adding near true duration into a response

2012-03-15 Thread Kiren Pillay
Hi All, I am experiencing an issue where I am trying to pass back the response duration of a REST request with the request. There is however latency in the JAXB Marshalling so the duration we pass back is erroneous. Attached is an example screenshot: The duration tag indicates 288 while the soapu

Re: Unit testing JAX-RS services

2012-02-01 Thread Kiren Pillay
I would suggest having a look at the Unit tests that come with CXF, they seem to have a simpler way of doing this. Regards Kiren On Wed, Feb 1, 2012 at 10:21 PM, KARR, DAVID wrote: > > -Original Message- > > From: cganesan [mailto:chandru.gane...@hp.com] > > Sent: Wednesday, February 01

Re: JaxRS - Issue with Restful app aspect

2012-01-30 Thread Kiren Pillay
wrote: > Hi > > On 30/01/12 16:08, Kiren Pillay wrote: > >> Hi Sergei, >> >> It is returning the correct type ( RechargeRecords ), and this gets >> handled >> via the aspect without any exception (debugged it with my own eyes), but >> an >> exce

Re: JaxRS - Issue with Restful app aspect

2012-01-30 Thread Kiren Pillay
s PAMSException; } On Mon, Jan 30, 2012 at 5:04 PM, Sergey Beryozkin wrote: > Hi > > > On 30/01/12 14:24, Kiren Pillay wrote: > >> Hi All, >> >> I have a transaction aspect which returns an object called Response. The >> Aspect works fine, ie, when debugging i

Re: JAX-RS and .NET

2011-11-21 Thread Kiren Pillay
ergey Beryozkin wrote: > Hi, > > On 21/11/11 10:00, Kiren Pillay wrote: >> >> Hi >> >> We have a partner running .NET, who is trying to integrate with our >> REST-ful cxf web services. Their toolset can consume WSDL only and not >> WADL. >> > >

JAX-RS and .NET

2011-11-21 Thread Kiren Pillay
Hi We have a partner running .NET, who is trying to integrate with our REST-ful cxf web services. Their toolset can consume WSDL only and not WADL. Can someone recommend the easiest way for them to integrate with us? Regards Kiren

Re: Exposing input arguments to ExceptionMapper.

2011-10-14 Thread Kiren Pillay
HTH, Sergey > > > On 14/10/11 15:07, Kiren Pillay wrote: >> >> Hi all! >> >> Is there a way to access the values/arguments of a JAX-RS request from >> the Exception Mapper? >> >> I am trying to get the methodSignature which I want to use as a lookup >> for an audit logger. >> >> Regards >> Kiren > >

Exposing input arguments to ExceptionMapper.

2011-10-14 Thread Kiren Pillay
Hi all! Is there a way to access the values/arguments of a JAX-RS request from the Exception Mapper? I am trying to get the methodSignature which I want to use as a lookup for an audit logger. Regards Kiren

Re: Marshalling REST Query Parameter directly into Integer Array

2011-10-04 Thread Kiren Pillay
; happens by running most of JAXRSUtilsTest, testCustomerParameter is one of > them > Sergey > > On 03/10/11 15:25, Kiren Pillay wrote: >> >> Okay, can you send me the name of a test case in the code where I can >> see how this works please? >> >> Regards >&

Re: Marshalling REST Query Parameter directly into Integer Array

2011-10-03 Thread Kiren Pillay
meterHandler > only if SomeType does not have a suitable constructor or factory method. It > will also be checked as a last resort if SomeType(String) constructor throws > an exception, ex, Date(String) is problematic... > > Cheers, Sergey > > On 02/10/11 18:39, Ki

Re: Marshalling REST Query Parameter directly into Integer Array

2011-10-02 Thread Kiren Pillay
*/ DateFormatter formatter = new DateFormatter("dd/MM/ hh:mm:ss"); return tmp + formatter.print(Calendar.getInstance().getTime(), Locale.getDefault()); } } On F

Re: Marshalling REST Query Parameter directly into Integer Array

2011-09-30 Thread Kiren Pillay
st involving > List & Integer[]. > Not sure why you see a problem with List > Can you try 2.4.2 please ? > Sergey > > On 28/09/11 17:34, Kiren Pillay wrote: >> >> Hi Sergey! >> >> Tried int[], got the

Re: Marshalling REST Query Parameter directly into Integer Array

2011-09-28 Thread Kiren Pillay
Sergey > > On 28/09/11 15:42, Kiren Pillay wrote: >> >> Hi >> >> This is an old problem, but I can't seem to find a solution posted >> anywhere. I want to marshall a comma-separated list of integers >> directly into an Integer []. >> >>  1

Marshalling REST Query Parameter directly into Integer Array

2011-09-28 Thread Kiren Pillay
Hi This is an old problem, but I can't seem to find a solution posted anywhere. I want to marshall a comma-separated list of integers directly into an Integer []. 1. Service: public Response getCounters( @QueryParam("msisdn") Long msisdn, @QueryParam("counters") Intege

Re: Problems with JAX-RS

2011-09-25 Thread Kiren Pillay
Okay i see. What does your servlet mapping look like? On Sep 25, 2011 3:10 PM, "Rene Svetina" wrote: > > i don't see anywhere that i should use services in URL. > > http://cxf.apache.org/docs/jax-rs.html#JAX-RS-HowRequestURIisMatched > > On Sun, Sep 25, 20

Re: Problems with JAX-RS

2011-09-25 Thread Kiren Pillay
ovalec-service/services/iskanje it does work. > Don't know why. > > On Sun, Sep 25, 2011 at 2:57 PM, Kiren Pillay wrote: > >> Maybe you missing the "/" in front of the path? >> >> @Path("/iskanje") >> >> >> >> On Sun, Sep 25

Re: Problems with JAX-RS

2011-09-25 Thread Kiren Pillay
Maybe you missing the "/" in front of the path? @Path("/iskanje") On Sun, Sep 25, 2011 at 2:12 PM, Rene Svetina wrote: > Hello, > > i have problems with getting JAX-RS services working. > > Spring configuration > > http://www.springframework.org/schema/beans"; xmlns:xsi=" > http://www.w3.org/

Re: CXF User Poll: jetty-all or individual jars....

2011-08-23 Thread Kiren Pillay
#2 - The easier the better. On Tue, Aug 23, 2011 at 6:38 PM, Gary Gregory wrote: > See CXF-3741, it's an extra 800K on top of the 30MB that make up all jars. > > Gary > > On Aug 23, 2011, at 12:02, "Ron Wheeler" > wrote: > >> I would lean towards 2 but would be curious about what "a little bit"

Greeter demo Running within Spring DM 2

2010-09-02 Thread Kiren Pillay
Hi Has anyone managed to get the greeter demo to work in Spring DM 2? I have managed to get the application working in a sepearate Equinox runtime but I can't get it too work within Spring DM. Here are my logs: [2010-09-02 17:42:08.103] fs-watcher com.springsource.osgi.medic.eventlog.default