RE: XSLT transfor in the server, and code first service

2018-04-22 Thread Andrei Shakirin
Hi,

The XSLTFeature (http://cxf.apache.org/docs/xslt-feature.html) is designed for 
such purposes: you can transform request and response on client and server 
sides with that.
Did you tried to use the feature?

Regards,
Andrei.

> -Original Message-
> From: Tóth Csaba [mailto:ig...@domen.hu]
> Sent: Donnerstag, 5. April 2018 18:33
> To: users@cxf.apache.org
> Subject: Re: XSLT transfor in the server, and code first service
> 
> Hello!
> I think I was not enough clear.
> There are a huge, complex wsdl (a standard), and I dont like to create the
> whole object structure, just to use some fields form the request:
> 
> request (wsdl1) -> xslt -> service (wsdl2) -> xslt -> response (wsdl1)
> 
> so In my service will be use a simple object with some attributes, maybe a
> simple wsdl description, or even better, if I dont need to create a wsdl (code
> first server)
> 
> and the next step will be:
> 
> request#1 (wsdl1) -> xslt -> service (wsdl2) -> logic -> client (wsdl2)
> -> xslt -> request#2 (wsdl1)
> response#1 (wsdl1) <- xslt <- service(wsdl2) <- logic <- client (wsdl2)
> <- xslt <- response#2 (wsdl1)
> 
> I think its not a big task if I find the right point to do the XSLT transform 
> both
> direction...
> 
> Csaba
> 
> On 2018.04.05. 11:27, Colm O hEigeartaigh wrote:
> > I added a test recently for a JAX-WS service using the XSLTFeature here:
> >
> >
> https://github.com/apache/cxf/commit/80e7e9720a77196ed6f996c46f7cff648
> > a77628b
> >
> > Colm.
> >
> > On Thu, Apr 5, 2018 at 6:30 AM, Tóth Csaba <ig...@domen.hu> wrote:
> >
> >> Hello!
> >>
> >> I'd like to develope a service, what can handle a big, complex
> >> request, but I need only a part of this request, so I think I try do
> >> a XSLT on the body first, and than give the new XML to deseriasabling.
> >> I have two question:
> >> - is there some example/tutorial to do a XSLT for the
> >> incomming/outgoing xml body? (i think i can do with interceptor)
> >> - is there some example/tutorial to create a code first service? I'd
> >> like to write the object first in java, and than create a service to it.
> >>
> >> Thanx
> >>
> >> Csaba
> >>
> >>
> >



Re: XSLT transfor in the server, and code first service

2018-04-05 Thread Tóth Csaba
Hello!
I think I was not enough clear.
There are a huge, complex wsdl (a standard), and I dont like to create
the whole object structure, just to use some fields form the request:

request (wsdl1) -> xslt -> service (wsdl2) -> xslt -> response (wsdl1)

so In my service will be use a simple object with some attributes, maybe
a simple wsdl description, or even better, if I dont need to create a
wsdl (code first server)

and the next step will be:

request#1 (wsdl1) -> xslt -> service (wsdl2) -> logic -> client (wsdl2)
-> xslt -> request#2 (wsdl1)
response#1 (wsdl1) <- xslt <- service(wsdl2) <- logic <- client (wsdl2)
<- xslt <- response#2 (wsdl1)

I think its not a big task if I find the right point to do the XSLT
transform both direction...

Csaba

On 2018.04.05. 11:27, Colm O hEigeartaigh wrote:
> I added a test recently for a JAX-WS service using the XSLTFeature here:
>
> https://github.com/apache/cxf/commit/80e7e9720a77196ed6f996c46f7cff648a77628b
>
> Colm.
>
> On Thu, Apr 5, 2018 at 6:30 AM, Tóth Csaba  wrote:
>
>> Hello!
>>
>> I'd like to develope a service, what can handle a big, complex request,
>> but I need only a part of this request, so I think I try do a XSLT on
>> the body first, and than give the new XML to deseriasabling.
>> I have two question:
>> - is there some example/tutorial to do a XSLT for the incomming/outgoing
>> xml body? (i think i can do with interceptor)
>> - is there some example/tutorial to create a code first service? I'd
>> like to write the object first in java, and than create a service to it.
>>
>> Thanx
>>
>> Csaba
>>
>>
>



Re: XSLT transfor in the server, and code first service

2018-04-05 Thread Colm O hEigeartaigh
I added a test recently for a JAX-WS service using the XSLTFeature here:

https://github.com/apache/cxf/commit/80e7e9720a77196ed6f996c46f7cff648a77628b

Colm.

On Thu, Apr 5, 2018 at 6:30 AM, Tóth Csaba  wrote:

> Hello!
>
> I'd like to develope a service, what can handle a big, complex request,
> but I need only a part of this request, so I think I try do a XSLT on
> the body first, and than give the new XML to deseriasabling.
> I have two question:
> - is there some example/tutorial to do a XSLT for the incomming/outgoing
> xml body? (i think i can do with interceptor)
> - is there some example/tutorial to create a code first service? I'd
> like to write the object first in java, and than create a service to it.
>
> Thanx
>
> Csaba
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


XSLT transfor in the server, and code first service

2018-04-04 Thread Tóth Csaba
Hello!

I'd like to develope a service, what can handle a big, complex request,
but I need only a part of this request, so I think I try do a XSLT on
the body first, and than give the new XML to deseriasabling.
I have two question:
- is there some example/tutorial to do a XSLT for the incomming/outgoing
xml body? (i think i can do with interceptor)
- is there some example/tutorial to create a code first service? I'd
like to write the object first in java, and than create a service to it.

Thanx

Csaba