How to specify byte[] type map in wadl2java?

2019-11-20 Thread Vjacheslav V. Borisov
Hi! Trying to specify byte[] type map in wadl2java: -tMap { http://www.w3.org/2001/XMLSchema}base64Binary=byte[] But this not works: Failed to execute goal org.apache.cxf:cxf-wadl2java-plugin:3.3.3:wadl2java

Re: cxf client default key managers not initialized

2019-06-13 Thread Vjacheslav V. Borisov
Confirm auto key registration using javax.net.ssl.keyStore system property is broken in REST module (mayb since cxf 3.2 / 3.3 ) чт, 13 июн. 2019 г. в 19:10, Colm O hEigeartaigh : > Right, but when you don't specify a "params.setKeyManagers", it tries to > get the KeyManagers from the

Per request scope for prividers?

2019-05-31 Thread Vjacheslav V. Borisov
Hi! Does "Per request" scope for prividers possible? There is only beans example: http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Lifecyclemanagement I tried (spring-boot) @Bean @Scope("request") public XSLTJaxbProvider xsltJaxbProvider() {

Re: Configure cxf-wadl2java-plugin for multiple wadl

2019-05-07 Thread Vjacheslav V. Borisov
> > > > wadl2java > > > > > > > On 4/30/19, Vjacheslav V. Borisov wrote: > > Hi! > > > > Is there option to configure

Configure cxf-wadl2java-plugin for multiple wadl

2019-04-29 Thread Vjacheslav V. Borisov
Hi! Is there option to configure same extrarags for multiple cxf-wadl2java-plugin exections? e.g. I have long list of extrargs can i specify this list only once, and appy in every wadl exection? -verbose -inheritResourceParams

How to determine served content-type?

2018-08-10 Thread Vjacheslav V. Borisov
Hi! When method serves different content-types, like @Produces({"application/xml", "application/json", "application/xhtml+xml" }) How to determine served content-type? Should I manually parse "Accept" header Message message = PhaseInterceptorChain.getCurrentMessage();

Swagger2Feature and javadoc

2018-06-19 Thread Vjacheslav V. Borisov
Hi! Currently Swagger2Feature (and WadlGenerator too) can be configured to generate methods and params descriptions from javadoc, but it lacks feature to generate objects properties doc? E.g If I have Jaxb annoteted object as method param, it will be available in definitions section, but without

Customizing proxies injected by spring

2018-05-15 Thread Vjacheslav V. Borisov
Hi! Question about example of customizing proxies http://cxf.apache.org/docs/ jax-rs-client-api.html I can set additiona headers, etc using this approach: BookStore proxy = JAXRSClientFactory.create("http://books;, BookStore.class ); WebClient.client(proxy).accept("text/xml"); // continue using

How to customize BINARY_CONTENT_MEDIA_TYPES in DefaultLogEventMapper?

2017-12-25 Thread Vjacheslav V. Borisov
Hi! How to customize BINARY_CONTENT_MEDIA_TYPES in DefaultLogEventMapper? E.g. add application/pdf public class DefaultLogEventMapper { private static final Set BINARY_CONTENT_MEDIA_TYPES; static { BINARY_CONTENT_MEDIA_TYPES = new HashSet();

Re: Does it possible to exclude resource from logging feature?

2017-06-16 Thread Vjacheslav V. Borisov
I want to exclude Rest resource from logging 2017-06-16 10:35 GMT+04:00 vEnkaTa mohAna rAo SriperumbUdUru < mohanara...@gmail.com>: > Could you please tell what do you mean by resource do you want it for Soap > or Rest. > > On Fri, Jun 16, 2017 at 11:45 AM, Vjachesla

Does it possible to exclude resource from logging feature?

2017-06-16 Thread Vjacheslav V. Borisov
Hi! Does it possible to exclude resource from logging feature org.apache.cxf.ext.logging.LoggingFeature ? I do not want some resourse to show request and response logs

Re: sources of cxf-2.6.2.jar?

2017-05-10 Thread Vjacheslav V. Borisov
Look inside archive, may be it contains META-INF/maven folder then you will know reference 2017-05-10 11:48 GMT+04:00 Sigmund God : > We had a old project which have dependency on a jar called cxf-2.6.2.jar. > Now I have to refactoring it for performance. this project is

Re: Rest default request encoding and logging

2017-03-29 Thread Vjacheslav V. Borisov
er ? > > Thanks, Sergey > > On 29/03/17 05:40, Vjacheslav V. Borisov wrote: > >> Hi! >> >> Currently cxf (3.1.10) runtime sets default message encoding, if not >> specified by client, to >> ISO-8859-1 >> >> String encoding = (String)me

Rest default request encoding and logging

2017-03-28 Thread Vjacheslav V. Borisov
Hi! Currently cxf (3.1.10) runtime sets default message encoding, if not specified by client, to ISO-8859-1 String encoding = (String)message.get(Message.ENCODING); if (StringUtils.isEmpty(encoding)) { // this is never working encoding = StandardCharsets.UTF_8.name();

Re: Is it possible to use the JAX-RS Client API to go through an SSL-secured Proxy with authentication?

2017-02-28 Thread Vjacheslav V. Borisov
You can try system properties -Djavax.net.ssl.trustStore=... -Djavax.net.ssl.keyStore=... -Djavax.net.ssl.keyStorePassword=... This usually work for any type of protocol (https,ldaps, ssl database connections) 2017-03-01 3:29 GMT+04:00 Andy McCright : > Hi All, > >

Re: swagger2feature do not see javadocs ?

2017-01-27 Thread Vjacheslav V. Borisov
to do a quick try this morning, I've tried Jetty9, > older Jetty Maven plugins, dropped it into a standalone Tomcat 8, the demo > fails to start for various reasons (no runt time weaving support, some > classes are missing, etc) > > Cheers, Sergey > > On 25/0

Re: swagger2feature do not see javadocs ?

2017-01-24 Thread Vjacheslav V. Borisov
> classpath then it will be easier for me to prioritize and experiment with > the parser code, otherwise a creating a dedicated CXF test module will take > time. > > Cheers, Sergey > > > On 24/01/17 07:06, Vjacheslav V. Borisov wrote: > >> No, I am talking about different (may

Re: swagger2feature do not see javadocs ?

2017-01-23 Thread Vjacheslav V. Borisov
ld one load a javadocs jar without knowing the full > Jar name, perhaps it can be done based on some convention... > > Sergey > > > On 22/01/17 16:21, Vjacheslav V. Borisov wrote: > >> Hi! >> >> I have configured javadoc using this config: >> >>

Re: swagger2feature do not see javadocs ?

2017-01-22 Thread Vjacheslav V. Borisov
Hi! I have configured javadoc using this config: But this jar is regular war dependency lib, is there possibility to configure javadoc using regular classpath, not referencing actual jar version? 2017-01-17 17:08 GMT+04:00 Francesco Chicchiriccò

Streaming xml parsing

2017-01-19 Thread Vjacheslav V. Borisov
Hi! There is possibility to do Response Streaming http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-ResponseStreaming Is there any option to read xml from stream, accessing elements as they are appear in input ("Request Streaming") ?

Does it possible to run swagger.json generation from command line

2017-01-18 Thread Vjacheslav V. Borisov
Hi! Does it possible to run swagger.json generation from command line, without jaxrs server?

Re: xml namespace not generated in swagger.json generated by swagger2feature

2017-01-17 Thread Vjacheslav V. Borisov
> Hi > > I've always been thinking Swagger can only describe JSON payloads which > would have no namespaces. Unless some trick exists which I'm unaware of > > Sergey > > > On 17/01/17 15:44, Vjacheslav V. Borisov wrote: > >> Hi! >> >> Playng again w

xml namespace not generated in swagger.json generated by swagger2feature

2017-01-17 Thread Vjacheslav V. Borisov
Hi! Playng again with swagger2feature and notice that definitions of jaxb objects do not contain namespace "OperationSchema" : { "type" : "object", "properties" : { "id" : { "type" : "integer", "format" : "int64" }, "name" : {

Re: swagger2feature do not see javadocs ?

2017-01-17 Thread Vjacheslav V. Borisov
Thanks! 2017-01-17 17:08 GMT+04:00 Francesco Chicchiriccò <ilgro...@apache.org>: > On 17-jan-17, at 13:44, Vjacheslav V. Borisov slav...@gmail.com wrote: > > > Hi! > > > > Playing with > > https://github.com/apache/cxf/tree/master/distribution/src/ >

swagger2feature do not see javadocs ?

2017-01-17 Thread Vjacheslav V. Borisov
Hi! Playing with https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/spring_boot Added Javadoc to method sayHello /** * sayHello doc * @param a the a param * @return */ public String sayHello(String a) { return "Hello2 " +

Re: Client generation based on swagger.json generated by swagger2feature

2017-01-16 Thread Vjacheslav V. Borisov
With @io.swagger.annotations.Api annotation everything works! 2017-01-13 15:58 GMT+04:00 Vjacheslav V. Borisov <slav...@gmail.com>: > I am using cxf 3.1.9, I Downloaded demo from trunk, it is working (tags > generated) > will check farther, thanks > > 2017-01-12 17:06 GMT+0

Re: Client generation based on swagger.json generated by swagger2feature

2017-01-13 Thread Vjacheslav V. Borisov
t; > or a single endpoint with multiple root resources ? > Both options work in CXF demos (ex, jax_rs/spring_boot) and > description_swagger2_web > > Sergey > > On 12/01/17 08:55, Vjacheslav V. Borisov wrote: > >> Hi! >> >> Experimenting with javascript client generatio

Client generation based on swagger.json generated by swagger2feature

2017-01-12 Thread Vjacheslav V. Borisov
Hi! Experimenting with javascript client generation based on swagger2feature generated swagger.json and noticed, that operations from all jax-rs resources placed on one "default" client so if different resources contains same method, there will be conflict. Looking at example here

Re: How CXF SOAP server can present a different certificate to different clients?

2016-12-20 Thread Vjacheslav V. Borisov
Hi! apache mod_proxy_ajp + tomcat AJP connector could be used in this config different apache vhosts could have own authorisation configuration, all connected to one tomcat AJP connector 2016-12-20 20:09 GMT+04:00 Gregory Orciuch : > Hi, > > we have been solving this

Swagger2Feature and json extension in jaxrs:extensionMappings

2016-12-19 Thread Vjacheslav V. Borisov
Hi! Looks like Swagger2Feature conflicts with jaxrs:extensionMappings E.g. when I have Then I cannot request swagger.json, i am getting 404, becouse it tries to find resource "swagger" (without extension) 15:10:17.489 [http-nio-8080-exec-20] INFO

Re: How to get stream from CachedStream ?

2016-10-14 Thread Vjacheslav V. Borisov
ting a simple test which does an output stream > replacement from the JAX-RS filter and hits this problem ? > > Thanks, Sergey > > On 08/10/16 20:19, Vjacheslav V. Borisov wrote: > >> I have used this class istead of CachedOutputStream >> https://www.whitebyte.inf

Re: CXF Dynamic Client datime binding

2016-10-11 Thread Vjacheslav V. Borisov
Why do you need this in first example ? try jxb:globalBindings only, without 2016-10-10 14:57 GMT+04:00 purushottam : > I am using the *CXf 2.2.12* to create the dynamic webservice client, the > dynamic client is mapping the

Re: How to get stream from CachedStream ?

2016-10-08 Thread Vjacheslav V. Borisov
Vjacheslav V. Borisov <slav...@gmail.com>: > Hi! > > I see WriterInterceptorContext could be used, but it also requires > CachedOutputStream to intercept OutputStream, I see this in > JweJsonWriterInterceptor... > So CachedOutputStream bug will be repeated in WriterIntercept

Re: How to get stream from CachedStream ?

2016-10-07 Thread Vjacheslav V. Borisov
option for replacing the content... > > Cheers, Sergey > > On 19/09/16 11:30, Vjacheslav V. Borisov wrote: > >> During message.getInterceptorChain().doIntercept(message); I see call to >> maybeDeleteTempFile() which resets inmem = true; >> and later csnew.getInputStream() ex

Re: How to use PATCH method in CXF

2016-10-05 Thread Vjacheslav V. Borisov
<sberyoz...@gmail.com>: > Hi > > No, setting this property is not really needed any longer. > With the latest CXFs it should just work with or without the async conduit > being loaded, Dan did some HTTPURLConnection reflective work. > > Cheers, Sergey > > > On 0

How to use PATCH method in CXF

2016-10-05 Thread Vjacheslav V. Borisov
Hi! There is "How to use PATCH method in CXF" thread http://stackoverflow.com/questions/32067687/how-to-use-patch-method-in-cxf Where author is using use.async.http.conduit to allow proxy client generated to work. To do this he recommends to write interceptor: if (

Re: How to get stream from CachedStream ?

2016-09-19 Thread Vjacheslav V. Borisov
During message.getInterceptorChain().doIntercept(message); I see call to maybeDeleteTempFile() which resets inmem = true; and later csnew.getInputStream() execution leads to if (inmem) { } 2016-09-19 13:05 GMT+04:00 Vjacheslav V. Borisov <slav...@gmail.com>: > Hi! > > I have

How to get stream from CachedStream ?

2016-09-19 Thread Vjacheslav V. Borisov
Hi! I have following code (this is interceptror which does regular expression replacements) https://github.com/ilb/common/blob/master/common-jaxrs/src/main/java/ru/ilb/common/jaxrs/interceptors/ReplaceOutInterceptor.java private void replaceContents(Message message) { OutputStream

Re: Json - schema validation - JacksonProvider+JAXBElementProvider / JSONProvider

2016-09-08 Thread Vjacheslav V. Borisov
of string to date conversion. Looks like only way is to do format validation in xml adapter attached to xsd:dateTime 2016-08-26 14:38 GMT+04:00 Vjacheslav V. Borisov <slav...@gmail.com>: > > > 2016-08-26 13:41 GMT+04:00 J. Fiala <mod...@fwd.at>: > >>

Re: CXF3 BeanValidation - wadl2java @Valid

2016-09-08 Thread Vjacheslav V. Borisov
2016-09-08 12:43 GMT+04:00 Sergey Beryozkin : > >>> As I know, only xsd:enumeration types are projected to custom class by >> default, all other simpleTypes projected to java.lang.String, >> hower, if we map some xsd type to java class, then i think this should >> work, but

Re: CXF3 BeanValidation - wadl2java @Valid

2016-09-08 Thread Vjacheslav V. Borisov
> >>> To be precise, wadl grammar already overloaded in wadl2java >> Becouse i can write >> and see in generated interface param with type of SomeType - enum class >> generated from xsd >> > > I'm only aware of param/option > https://www.w3.org/Submission/wadl/#x3-280002.12.3 > > being

Re: CXF3 BeanValidation - wadl2java @Valid

2016-09-07 Thread Vjacheslav V. Borisov
2016-08-29 14:00 GMT+04:00 Sergey Beryozkin : > > In the vast majority of cases query/header/cookie parameters are simple > properties. Doing the complex mapping from WADL grammar to individual Bean > validation properties only for the sake of enforcing some digital or

Re: CXF3 BeanValidation - wadl2java @Valid

2016-08-29 Thread Vjacheslav V. Borisov
2016-08-27 18:58 GMT+04:00 J. Fiala : > Sergey, > > OK, so there is no option to get query parameter validation for wadl2java > generated java sources in the near future? > > So if query parameter validation is desired, one has to switch to Swagger > as contract and generate the

Re: Json - schema validation - JacksonProvider+JAXBElementProvider / JSONProvider

2016-08-26 Thread Vjacheslav V. Borisov
2016-08-26 13:41 GMT+04:00 J. Fiala : > No, it works with and without namespace :). > > Thx so I better stay with JacksonProvider with manual BeanValidation for > now until wadljava+@Valid or do you actually recommend using > MoxyJsonProvider in favor of JacksonProvider (cxf-docs

Re: JacksonXMLProvider + wadl2java - @XmlRootElement

2016-08-26 Thread Vjacheslav V. Borisov
This not related directly to cxf, but to jaxb you can 1) describe Request and Response as xsd:element with anonymous xsd:complexType inside 2) use extension like this https://github.com/ilb/jparestresource/blob/master/jparestresource-api/src/main/resources/schemas/jparestresource/core.xjb

Re: Json - schema validation - JacksonProvider+JAXBElementProvider / JSONProvider

2016-08-26 Thread Vjacheslav V. Borisov
Does @XmlRootElement requires namespace? I think Jaxb generation should create package-info.java with @javax.xml.bind.annotation.XmlSchema(namespace ... And btw, Jettison has array serialization issue bug, where "single item" arrays serialized without [] I think better way, if you require xsd

Re: CXF3 BeanValidation - wadl2java @Valid

2016-08-25 Thread Vjacheslav V. Borisov
2016-08-25 16:58 GMT+04:00 Sergey Beryozkin : > https://www.w3.org/Submission/wadl/#x3-90002.4 > > states the WADL grammar "acts as a container for definitions of the format > of data exchanged during execution..." - this implies the > 'wadl:representation'. > > These other

Re: CXF3 BeanValidation - wadl2java @Valid

2016-08-25 Thread Vjacheslav V. Borisov
2016-08-25 15:55 GMT+04:00 Sergey Beryozkin : > Linking schema elements to non representation parameters is not going to > work for sure. > It overloads the idea that the schema elements represent the in/out > payloads. > WADL Parameter Definition contains also "type"

Re: CXF3 BeanValidation - wadl2java @Valid

2016-08-25 Thread Vjacheslav V. Borisov
2016-08-24 21:56 GMT+04:00 J. Fiala : > Sergey, > > Exactly, this plugin provides the beanvalidation annotations for > complextypes at the client + server side, making BeanValidation possible on > both sides. > > What is missing so far: > > 1.) Necessary: Add a switch to wadl2java

Re: default encoding in LoggingInInterceptor

2016-08-17 Thread Vjacheslav V. Borisov
2016-08-17 11:19 GMT+04:00 Christian Schneider : > You should also take a look at the new Logging support in: > https://github.com/apache/cxf/tree/master/rt/features/logging > > http://www.liquid-reality.de/display/liquid/2015/06/08/Enter >

Re: default encoding in LoggingInInterceptor

2016-08-17 Thread Vjacheslav V. Borisov
2016-08-17 11:19 GMT+04:00 Christian Schneider : > You should also take a look at the new Logging support in: > https://github.com/apache/cxf/tree/master/rt/features/logging > > http://www.liquid-reality.de/display/liquid/2015/06/08/Enter >

Re: default encoding in LoggingInInterceptor

2016-08-17 Thread Vjacheslav V. Borisov
2016-08-16 13:58 GMT+04:00 Sergey Beryozkin : > Hi > > I'm still planning to investigate why only the out logging interceptor on > the server side which is being affected > Thanks, Sergey. out logging interceptor is working with utf-8, I have problems with

Re: default encoding in LoggingInInterceptor

2016-08-15 Thread Vjacheslav V. Borisov
ing.equals(encoding)) { message.put(Message.ENCODING, encoding); } } } 2016-08-09 10:33 GMT+04:00 Vjacheslav V. Borisov <slav...@gmail.com>: > Hi! > > Cannot log properly UTF-8 encoded requests using > org.apache.cxf.interceptor.LoggingInInterceptor > I se

default encoding in LoggingInInterceptor

2016-08-09 Thread Vjacheslav V. Borisov
Hi! Cannot log properly UTF-8 encoded requests using org.apache.cxf.interceptor.LoggingInInterceptor I see in log Encoding: ISO-8859-1 and Payload with incorrect characters Do i need to write something like public class EncodingInterceptor extends AbstractPhaseInterceptor {

Re: How to disable default jettison json provider in jaxrs:server?

2016-08-08 Thread Vjacheslav V. Borisov
2016-08-08 16:14 GMT+04:00 Sergey Beryozkin : > Hi > > How to disable / change priority of jettion provider on second url (v2), or >> may be other solution exists to make two providers work in same >> application >> using some switch in url or query string? >> >> Set a

How to disable default jettison json provider in jaxrs:server?

2016-08-08 Thread Vjacheslav V. Borisov
Hi! I have web application, which serves json using two different json providers: jettison and moxy Jettison Moxy JSON providers listening on different URLs using

Re: Dealing with Jettison array serialization issues

2016-05-04 Thread Vjacheslav V. Borisov
2016-05-04 12:59 GMT+04:00 Sergey Beryozkin <sberyoz...@gmail.com>: > On 04/05/16 07:15, Vjacheslav V. Borisov wrote: > >> >> Yes, arrays (lists) serialized correctly, no extra configuration >> required. >> >> I quickly checked the source, > > &

Re: Dealing with Jettison array serialization issues

2016-05-04 Thread Vjacheslav V. Borisov
2016-05-03 12:01 GMT+04:00 Sergey Beryozkin > >> Actually I have adapted org.eclipse.persistence.jaxb.rs.MOXyJsonProvider >> to >> make it more cxf-friendly, e.g to accept SchemaHandler to allow JSON >> schema >> validation as Jettison does >> >>

Re: Dealing with Jettison array serialization issues

2016-05-04 Thread Vjacheslav V. Borisov
2016-05-03 12:01 GMT+04:00 Sergey Beryozkin : > > >> And also copied from AbstractJAXBProvider extraClass and contextProperties >> support to custom JaxbContextResolver >> >>

Re: Dealing with Jettison array serialization issues

2016-05-01 Thread Vjacheslav V. Borisov
copied from AbstractJAXBProvider extraClass and contextProperties support to custom JaxbContextResolver https://github.com/ilb/common/blob/master/common-jaxrs/src/main/java/ru/ilb/common/jaxrs/jaxb/JaxbContextResolver.java 2016-04-26 17:12 GMT+04:00 Vjacheslav V. Borisov <slav...@gmail.

Re: Dealing with Jettison array serialization issues

2016-04-26 Thread Vjacheslav V. Borisov
rray keys for specific paths, example, a/b/c > > where only a 'c' property of 'b' which is a property of 'c' will be > treated as an array key. > > That said, please do try Jackson, you will use annotations... > > Cheers, Sergey > > > On 26/04/16 11:14, Vjacheslav V. Borisov wrote

Re: Dealing with Jettison array serialization issues

2016-04-26 Thread Vjacheslav V. Borisov
and attempts to convert > XMLStreamWriter events into JSON. Thus it needs a configuration support to > deal with some edge cases... > > Sergey > > On 25/04/16 09:17, Vjacheslav V. Borisov wrote: > >> And you don't see possible realisation to automate list property >>

Re: WADL with references - java code generation

2016-04-25 Thread Vjacheslav V. Borisov
mented, but working feature. Hoewer, reading documentation I was thinking that this should be described using resource_type record, so this is why I am posted my question. 2016-04-25 13:27 GMT+04:00 Sergey Beryozkin <sberyoz...@gmail.com>: > Hi > On 25/04/16 08:48, Vjacheslav V. Bor

Re: Dealing with Jettison array serialization issues

2016-04-25 Thread Vjacheslav V. Borisov
> Hi > > Jettison is XMLStreamWriter, no type information is available. > If it does accumulate more than one value for a given property it can > guess it must be a list, otherwise it does not know if it is a simple or > complex property. > > Sergey > > > On 04/0

WADL with references - java code generation

2016-04-25 Thread Vjacheslav V. Borisov
Hi! Trying to generate code from WADL with references http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription- WADLwithreferences I am getting strange results 1. @Path("/books") public interface BooksResource { } 2. @Path("/bookstore/{id}") public interface

Re: [OT] How to update the existing jar with Maven and then depend on it

2016-04-24 Thread Vjacheslav V. Borisov
2016-04-23 0:00 GMT+04:00 Sergey Beryozkin : > > Thanks, well, I was not planning to spend any more time on LTW, but I > decided to give it a go again, and after spending a lot of time debugging > through TomcatInstrumentableClassLoader and OpenJPA it proved >

Re: [OT] How to update the existing jar with Maven and then depend on it

2016-04-18 Thread Vjacheslav V. Borisov
2016-04-18 20:53 GMT+04:00 Sergey Beryozkin : > > Now, as far as my own practical requirement is concerned, this model needs > to be JPA persisted with OpenJPA. So I've spent a lot of time by > experimenting with the load time weaving with Spring ORM, which does not > seem

Re: Post: CXF JAX-RS SAML based authentication

2016-03-31 Thread Vjacheslav V. Borisov
Hi! Interesting article, but if we are using client private and public keys in SSL connection, why additional STS service is required? 2016-03-30 23:21 GMT+04:00 Andrei Shakirin : > Hi, > > I have published a small post with example illustrating JAX-RS SAML based >

Re: catalogLocation in JAXB/JSON Provider and @SchemaValidation

2016-03-23 Thread Vjacheslav V. Borisov
2016-03-23 18:26 GMT+04:00 Sergey Beryozkin : > > I'm not sure what happens when you use @SchemaValidation and no schema > holder. Can you please put a breakpoint in AbstractJaxbProvider.init() and > see how SchemaValidation is processed. I can imagine that a schema will be

Re: catalogLocation in JAXB/JSON Provider and @SchemaValidation

2016-03-23 Thread Vjacheslav V. Borisov
2016-03-23 15:48 GMT+04:00 Sergey Beryozkin : > Thanks for the analysis and the patch, I'm traveling so will look into it > in detail next week (though might apply the patch earlier), does your patch > addresses all of your concerns you raised in this thread ? > > Yes,

Re: catalogLocation in JAXB/JSON Provider and @SchemaValidation

2016-03-22 Thread Vjacheslav V. Borisov
> Don't know, how should this fixed (or should not) > E.g. , code like this could fix that, but seems ugly: > resolvedLocation = > catalogResolver.resolvePublic(publicId!=null?publicId:namespaceURI, > systemId); > > Found where it takes place in case of cxf-wadl2java-plugin, please see

Re: catalogLocation in JAXB/JSON Provider and @SchemaValidation

2016-03-22 Thread Vjacheslav V. Borisov
Also noticed following : When wadl2java code generation resolves using xml-resolver, it resolves it using publicId using this record in catalog.xml This is the code: class org.apache.xml.resolver.Catalog, method resolveLocalPublic, while (en.hasMoreElements()) { ... if

Re: catalogLocation in JAXB/JSON Provider and @SchemaValidation

2016-03-21 Thread Vjacheslav V. Borisov
ot; should be replaced with name="schemaLocations" (which has catalogLocation support) 2016-03-21 10:05 GMT+04:00 Vjacheslav V. Borisov <slav...@gmail.com>: > Playing with xml catalogs, found strage bug (or my misconfiguration, i > don't know) >

Re: How to generate episode file using wadl2java ?

2016-03-21 Thread Vjacheslav V. Borisov
2016-01-21 14:29 GMT+04:00 Sergey Beryozkin : > I see there it checks "OASISCatalogManager.catalog.debug.level" system > property - which is set, if not null, on > org.apache.xml.resolver.CatalogManager, apparently CatalogManager can also > check Catalog.properties file >

catalogLocation in JAXB/JSON Provider and @SchemaValidation

2016-03-21 Thread Vjacheslav V. Borisov
Playing with xml catalogs, found strage bug (or my misconfiguration, i don't know) When i place my catalog on default DEFAULT_CATALOG_LOCATION (classpath:META-INF/jax-rs-catalog.xml), it works in @SchemaValidation feature but if I want to rename to custom location, eg ... (and

Re: How to generate episode file using wadl2java ?

2016-03-19 Thread Vjacheslav V. Borisov
2016-01-21 14:29 GMT+04:00 Sergey Beryozkin : > Hi > > Sure, have a look please at > org.apache.cxf.catalog.OASISCatalogManager, this is in the cxf-core module. > > I see there it checks "OASISCatalogManager.catalog.debug.level" system > property - which is set, if not null,

Proxy-based API genaration (two or more interaces)

2016-02-24 Thread Vjacheslav V. Borisov
Hi! Currently it is possible to write server side resource implementing two interfaces at the same time Eg,. public class SomeResource implements OneResourceInterface, TwoResourceInterface does it possible to generate Proxy-based client based on more that one interface?

Re: WADL and Swagger

2016-02-04 Thread Vjacheslav V. Borisov
2016-02-04 17:19 GMT+04:00 Francesco Chicchiriccò : > As a result, we will end up having, in > > ${project.build.directory}/classes/META-INF/resources/swagger > > all the files in place ready to be packaged again. > > The "magic" that allows accessing such resources via HTTP

Re: WADL and Swagger

2016-02-04 Thread Vjacheslav V. Borisov
Hi Thanks for you work and examples! I am looking at https://github.com/apache/syncope/blob/master/ext/swagger-ui/pom.xml At copy-swagger-resources-in-place You are copying resources to ${project.build.directory}/classes/META-INF/resources/swagger But how do you made static resources located

Re: WADL and Swagger

2016-02-04 Thread Vjacheslav V. Borisov
finally understand, how to access META-INF/resources, to allow external access, resources should be in separate jar, not in war itself http://stackoverflow.com/questions/4732965/exposing-resources-from-jar-files-in-web-applications-tomcat7 2016-02-04 17:45 GMT+04:00 Vjacheslav V. Borisov <s

Re: How to generate episode file using wadl2java ?

2016-01-20 Thread Vjacheslav V. Borisov
I am talking about my progress is slow :) Where can I find xml catalog resolution code in cxf wadl2java ? May be i can patch it to enable debugging info 2016-01-20 18:24 GMT+04:00 Sergey Beryozkin : > Well, this is one of those issues which I can not prioritize upon - I've

Re: How to generate episode file using wadl2java ?

2016-01-20 Thread Vjacheslav V. Borisov
2015-11-24 19:48 GMT+04:00 Sergey Beryozkin : > I'll look in detail at one of the existing tests where an external binding > is applied (I recall copying some JAXWS tooling code which modifies the > binding files), and will let you know, a bit later though > > Found temporal

Re: How to limit concurrent requests served by resource?

2016-01-18 Thread Vjacheslav V. Borisov
. > > Sergey > > > On 15/01/16 11:12, Vjacheslav V. Borisov wrote: > >> Hi, >> >> How to limit concurrent requests served by specific resource, or by >> application iteself? >> >> Found this thread >> >> http://stackoverflow.c

How to limit concurrent requests served by resource?

2016-01-15 Thread Vjacheslav V. Borisov
Hi, How to limit concurrent requests served by specific resource, or by application iteself? Found this thread http://stackoverflow.com/questions/5563442/how-to-set-limit-to-the-number-of-concurrent-request-in-servlet Should i do something like showed in accepted answer, or cxf has his limit

Re: How to generate episode file using wadl2java ?

2015-11-23 Thread Vjacheslav V. Borisov
2015-11-23 16:32 GMT+04:00 Sergey Beryozkin : > Well, knowing that "-episode sun-jaxb.episode" is expected to be provided > to XJC as 2 params, it also becomes obvious how to do it without even > changing CXF, > > > -xjc-episode > -xjcsun-jaxb.episode > > > Thanks for

Re: How to generate episode file using wadl2java ?

2015-11-23 Thread Vjacheslav V. Borisov
2015-11-23 16:32 GMT+04:00 Sergey Beryozkin : > > I've still decided to do a minor update, so that users can use a single > extraarg: > https://issues.apache.org/jira/browse/CXF-6690 May be not only XJC compiler argumens, but also wadl2java arguments, like -tMap should be

How to generate episode file using wadl2java ?

2015-11-18 Thread Vjacheslav V. Borisov
Hi, I am trying to generate episode file for modular schema creation. using this config: -xjc-episode sun-jaxb.episode -verbose However no matter where is place

Re: How to generate episode file using wadl2java ?

2015-11-18 Thread Vjacheslav V. Borisov
o address this issue with inability to generate / use episode file using wadl2java? 2015-11-18 20:23 GMT+04:00 Sergey Beryozkin <sberyoz...@gmail.com>: > Hi > > I wonder if you should do > > -xjc-episode sun-jaxb.episode > > > something like that, try it pleas

Re: How to use FIQL without SearchContext?

2015-10-15 Thread Vjacheslav V. Borisov
Hi, I think technically this is possible, will try it if there is no other options, but this leads to exporting business logic that constructs SearchCondition to outer layer 2015-10-15 15:33 GMT+04:00 Sergey Beryozkin : > Hi > > Can you use SearchContext to prepare

Re: How to use FIQL without SearchContext?

2015-10-15 Thread Vjacheslav V. Borisov
2015-10-15 17:50 GMT+04:00 Sergey Beryozkin <sberyoz...@gmail.com>: > Hi > On 15/10/15 13:22, Vjacheslav V. Borisov wrote: > >> Hi, >> >> I think technically this is possible, will try it if there is no other >> options, but this leads to e

How to use FIQL without SearchContext?

2015-10-14 Thread Vjacheslav V. Borisov
Hi, i am writing service, which starts separate thread, and want to use FIQL in this thread @Context SearchContext is unavailiable on this thread, and i am using this code to construct SearchCondition: public static SearchCondition getSearchCondition(String fiqlExpression, Class clazz) {

Re: Consuming mutiple xml representations on resource

2015-10-06 Thread Vjacheslav V. Borisov
2015-10-05 18:28 GMT+04:00 Sergey Beryozkin : > Done for 3.1.4-SNAPSHOT > Thanks again, we will try it. Upgrading from 3.0.4 found strange behavior (started at 3.0.6) When method request contains xml and json representation and both contain "element" reference

Re: Consuming mutiple xml representations on resource

2015-10-05 Thread Vjacheslav V. Borisov
2015-10-05 0:56 GMT+04:00 Sergey Beryozkin : > > Re Patch/etc - yes wadl-to-java can not generate the custom annotation > classes - it is time to do it though, will take care of it > Thanks !

Re: Consuming mutiple xml representations on resource

2015-10-05 Thread Vjacheslav V. Borisov
ltiple created URIs (return them to client directly or via > result resource) and multiple error codes in fault case. > 3. Introduce PUT to replace the whole collection. In this case client > should be responsible to specify individual resource URIs. You have to deal > with multiple er

Consuming mutiple xml representations on resource

2015-10-01 Thread Vjacheslav V. Borisov
Hi! I am trying to model rest api which can consume different xml representations, but without success I have two methods on same url which accepts application/xml, but different objects: single object and collection of objects With two methods generated @POST

Re: Consuming mutiple xml representations on resource

2015-10-01 Thread Vjacheslav V. Borisov
2015-10-01 14:16 GMT+04:00 Vjacheslav V. Borisov <slav...@gmail.com>: > Hi! > > I am trying to model rest api which can consume different xml > representations, but without success > I have two methods on same url which accepts application/xml, but > differen

Re: JAX-RS JS client frontend

2015-09-10 Thread Vjacheslav V. Borisov
2015-09-10 15:50 GMT+04:00 Sergey Beryozkin : > > Thanks, I wish we did it earlier :-). I believe RestEasy did it awhile > back (though not sure what exactly it offers), though the idea of having of > a JS frontend in CXF is not new given that it is available for WS. > We

Re: JAX-RS JS client frontend

2015-09-10 Thread Vjacheslav V. Borisov
I am not like hierahical interface generated by wadl-client in Example wadl https://github.com/rbelouin/wadl-client/blob/master/spec/swagger.js with path segments (/test/dynamic/{param}) it leads to non-intuitive call like var res = client.test.dynamic._.get().withParams(["12345"]).send(); also

Re: using XSLTJaxbProvider for text/csv

2014-10-30 Thread Vjacheslav V. Borisov
Thanks! It working now! 2014-10-16 12:55 GMT+04:00 Sergey Beryozkin sberyoz...@gmail.com: This provider has a 'produceMediaTypes' List property that can be used to override the default Produces. Sergey

Re: Auto-discovery of root resources and cross-resource reference

2014-10-28 Thread Vjacheslav V. Borisov
2014-10-28 14:21 GMT+04:00 Sergey Beryozkin sberyoz...@gmail.com: That should not be needed... Did you add @Component annotations too to the auto-discovered service beans ? I'll try to write a test when I get some free time... Yes, @Component works with context:component-scan

  1   2   >