Hi all,
I must change the content of the response obtained at
?wsdl
invocation.
I'm using cxf 2.7.3.
I've tried different solutions but with poor results:
1. I've tried to extend the WSDLGetInterceptor but, if I'm not mistaken,
this interceptor is recalled before the response is properly built:
Hi Sergey,
I'm in a similar situation...I must use a parameter converter for Date type
to be sure at the serialization of a Date parameter the toString() method
adds also the milliseconds info in the produced string (until now I've seen
that when a Date obj is serialized by default the string is
on client side
Hi,
What CXF version and how method Date parameter is annotated ?
Cheers, Sergey
On 04/09/13 15:24, eanbiso wrote:
Hi Sergey,
I'm in a similar situation...I must use a parameter converter for Date type
to be sure at the serialization of a Date parameter
Hi all,
I need to get the equivalent of the SOAP MessageID with REST ws.
I have an interceptor that must register a message in a MAP and I have to
use the message urn as the unique message identifier.
How can I get it?
With SOAP technology I used an interceptor like this:
public class
!
Node elem1 =
document.createElement(KPIMsgTracker.KPIWSMsgLen_ByDispatcher);
Node elem2 =
document.createElement(KPIWSLatencyTracker.WSIntercStartTime_ByDispatcher);
//elem.setNodeValue(EANBISO PROV
Hi Sergey,
I perform a call to this web method:
@CxfWSAuthorization(group=PlatUserLevel.GUEST, roles={authRoles.all})
@GET
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@Path(/GetPlatUserByPK/{userID})
@ApiOperation(value = Gets the
to
the String returned by web method)
Hi
On 05/07/13 13:20, eanbiso wrote:
Hi all,
I've published a rest endPoint adding the JacksonJaxbJsonProvider at
publication time (I've added it to properly support swagger).
All is good but some times the JacksonJaxbJsonProvider seems
Hi all,
I've published a rest endPoint adding the JacksonJaxbJsonProvider at
publication time (I've added it to properly support swagger).
All is good but some times the JacksonJaxbJsonProvider seems to smudge the
response adding unexpected chars.
For example, I have an endPoint with this web
Hi Sergey,
I've tried this solution: I've add a BodyReader at clientSide to manage the
response from the server.
I've added this provider:
@Provider
public class StringArrayBodyReader implements MessageBodyReaderString[] {
private static final Plat1Logger log = new
Thanks, Sergey
On 04/07/13 11:15, eanbiso wrote:
Hi Sergey,
I've tried this solution: I've add a BodyReader at clientSide to manage the
response from the server.
I've added this provider:
@Provider
public class StringArrayBodyReader implements MessageBodyReaderString
org.apache.cxf.jaxrs.providers.ignore.typevars to true ?
It is a bug: the runtime does not currently deal at all with
GenericArrayType
I'll be fixing it shortly
Many thanks, Sergey
On 04/07/13 12:44, eanbiso wrote:
Hi Sergey,
unfortunately the StringArrayBodyReader is the only one provider I've added
Hi Sergey,
thanks for the help.
I've another question for you... I hope this is the last :-)
Testing my REST API I've another anomalous behavior with this method:
@GET
@Path(/getUnitsOfMeasure/{appGardenID}/{protType}/{profileID}/{objectIDhigh}/{objectIDlow})
@ApiOperation(value =
no ClassCastException should be reported but something
more meaningful, I'll try to have to look into it.
In meantime, try Byte[]. may be that will help
Sergey
On 01/07/13 16:22, eanbiso wrote:
Hi all,
I've a class cast exception invoking a REST web method that wants a byte[]
as input parameter.
I
Hi Sergey,
I'm testing also other endPoints after their RESTization and I've found
another problem connected to particular input parameters...
I've this ws method:
@GET
@Path(/parseGenCommandArgs)
@ApiOperation(value = Parses the given set of arguments according to
the
Hi all,
I've a class cast exception invoking a REST web method that wants a byte[]
as input parameter.
I had a SOAP endPoint and I've added all the annotations required to publish
it also with REST technology...
The web method is this:
@POST
@Produces({MediaType.APPLICATION_XML,
Hi all,
I'm updating from cxf 2.5.0 to cxf 2.7.3 (using osgi environment).
After the update an anomalous fault occurs at SOAP ws invocation.
With a MANIFEST.MF of the cxf 2.7.3 bundle containing import statements:
Import-Package: ...,
javax.servlet,
javax.servlet.http,
...
Another useful info:
the fault is caused by an operation
HttpServletRequest request =
(HttpServletRequest)message.get(AbstractHTTPDestination.HTTP_REQUEST);
that I've to execute in one of the input interceptors.
This is the cause of the class cast exception (but I've always executed it
with old
Problem seems to be caused by conflict in the import/export of same packages
from different bundles; it has been solved with these changes:
- remove from the MANIFEST.MF of CXFBundle (bundle version of cxf 2.7.3) the
import of
javax.servlet,
javax.servlet.http
- add the two packages in
I attach also the pom.xml file with required jar of the project (if it was
more useful)...
it is the pom.xml file of the example at:
https://github.com/wordnik/swagger-core/tree/develop-1.3/samples/java-jaxrs-cxf
that I've tried to replicate in mine project...
pom.xml
?
Thanks a lot for the help,
Andrea
Date: Fri, 7 Jun 2013 02:12:14 -0700
From: ml-node+s547215n5728909...@n5.nabble.com
To: bisoma...@hotmail.it
Subject: Re: CXF and swagger
Hi Andrea
On 07/06/13 07:37, eanbiso wrote:
I attach also the pom.xml file with required jar of the project
:44, eanbiso wrote:
Hi Jersey,
You meant CXF :-) ?
the project
https://github.com/wordnik/swagger-core/tree/develop-1.3/samples/java-jaxrs-cxf
works for me (with this shrewdness: from swagger u.i when you put the address
http://localhost:8002/api/api-docs.json you must remove the .json
, eanbiso wrote:
I'm sorry, I have not explained clearly,
I was referring to the call of the other endPoint.
I try to explain:
whit the annotation
@Path(/PubDocs.json)
in the RestPublicDocsJSON class, when I call the endPoint
http://localhost:8162/PubDocs/isReady
the call
to the same
situation you mentioned.
So could you also provide which cxf version you are using?
regards, aki
2013/6/4 eanbiso [hidden email]
The problem is that the client enters in the while cicle of the follofing
method of ClientImpl class:
protected void waitResponse(Exchange
)
@Produces({application/json})
public class RestPublicDocsJSON extends RestPublicDocs{}
Thanks,
Andrea
Date: Tue, 4 Jun 2013 02:13:05 -0700
From: ml-node+s547215n5728690...@n5.nabble.com
To: bisoma...@hotmail.it
Subject: Re: CXF and swagger
Hi
On 03/06/13 16:32, eanbiso wrote:
Hi all
The problem is that the client enters in the while cicle of the follofing
method of ClientImpl class:
protected void waitResponse(Exchange exchange) {
int remaining = synchronousTimeout;
while (!Boolean.TRUE.equals(exchange.get(FINISHED)) remaining
0) {
long
...@hotmail.it
Subject: Re: CXF and swagger
Hi
On 04/06/13 14:31, eanbiso wrote:
Hi Sergey,
the annotation that is responsible for the failure is the
@Path(/PubDocs.json)
Removing it the endPoint works fine.
All the annotations used in the class are the following
: CXF and swagger
Hi
On 04/06/13 17:35, eanbiso wrote:
Hi Sergey,
I've tried but the same problem occurs.
the only ways to call the ws without exceptions seem to be:
1) remove the annotation @Path
2) or replace it with general @Path(/)
Hmm, so which URI works ?
When you have
: WebServiceException is not propagated from ProviderSource to the
client.
On May 31, 2013, at 11:20 AM, eanbiso [hidden email] wrote:
Sorry, I was wrong:
the exception arrives to the client but very late (with almost a minute of
delay).
Seems to have lost a lot of time in the chain
Hi all,
I'm trying to publish and use cxf rest endPoint adding annotations required
to use the framework com.wordnik.swagger
I tried to follow the example at
https://github.com/wordnik/swagger-core/tree/master/samples/java-jaxrs-cxf/src/main/java/com/wordnik/swagger/sample
with some differences:
Hi all,
I have the following problem using a provider to redirect SOAP web service
invocation from client to a server.
I have the class:
public class CustomProvider implements ProviderSource{
public Source invoke(Source request) {
DOMSource source = ...;
Sorry, I was wrong:
the exception arrives to the client but very late (with almost a minute of
delay).
Seems to have lost a lot of time in the chain of interceptors on the
dispatcher.
I try to investigate it and get more info.
Andrea
--
View this message in context:
Hi all,
I have a problem with rest endPoint that return an empty list.
I have a ws interface like this:
@GET
@Produces(multipart/form-data;type=text/xml)
@Path(/GetNetworkIDsManagedBy/{controller})
public ListInteger GetNetworkIDsManagedBy(
Subject: Re: Rest ws: how to return an empty ListInteger avoiding
java.lang.IndexOutOfBoundsException
Hi
Please see comments below,
On 17/05/13 11:04, eanbiso wrote:
Hi all,
I have a problem with rest endPoint that return an empty list.
I have a ws interface like this:
@GET
an empty ListInteger avoiding
java.lang.IndexOutOfBoundsException
On 17/05/13 11:52, eanbiso wrote:
I'm resting an original SOAP ws so what is important to me is to ensure the
same behavior.
What happens when you return 'null' on the WS path ?
I've seen that returning null
dependencies affecting the proxy generation.
Cheers, Sergey
On 08/05/13 07:16, eanbiso wrote:
Good morning,
the GenCmdDescr code is a class like this:
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import
On 08/05/13 10:18, eanbiso wrote:
Thanks for the reply.
What I've seen in last test is that moving the GenCmdDescr class in the same
package with IModel interface the exception doesn't occurs anymore.
But I am not clear what can be the reason: also the other package was visible
and loading
Hi at all,
I have the following problem loading a rest endPoint using cxf.
The operations I do to load the rest endPoint after its publication are the
following:
JAXRSClientFactoryBean proxyFactory = new
JAXRSClientFactoryBean();
: java.lang.NoClassDefFoundError exception loading a rest endPoint
in particular condition
Hi
On 07/05/13 15:56, eanbiso wrote:
Hi at all,
I have the following problem loading a rest endPoint using cxf.
The operations I do to load the rest endPoint after its publication are the
following
Hi all,
I have this problem using cxf dispatching behavior.
I have developed an Interceptor that implements the
org.apache.cxf.jaxrs.ext.RequestHandler interface.
In its public Response handleRequest(Message m, ClassResourceInfo
resourceClass) method I throw an exception (e.g. a
39 matches
Mail list logo