You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Owen Thomas <ot...@wcg.net.au> on 2007/05/07 04:18:37 UTC

Creating intermediary XSLT service.

Good afternoon ServiceMix users.

 

After 3 months of persistence, I finally got a web service functioning
in a ServiceMix container.

 

What I have is an HTTP BC that forwards requests from outside the NMR to
a JSR-181 SE. The JSR-181 SE implements an OS call using the string
supplied in the received SOAP message as the command. As those who have
been observant up to this point can see, this is very dangerous. It is
not recommended one expose such a web service on a production machine
for the possibility of damage to the host that could result.

 

What I would like to do is to use this SE to run specific commands that
I write in XSLT, and run using an XSLT SE. I'm not quite sure how to do
this, and would appreciate help on the following matters:

 

1. I have the HTTP BC and JSR-181 SE. I appear to need the XSLT SE. Can
anyone tell me what other service units I might need?

2. How do I get these service units to talk to each other?

 

I believe, that in the Java Business Integration spec v 1.0, my JBI
instance is going to look something like that given in section 4.9.1,
except that it will be a request-response MEP. Can anyone please help me
draw light over my solution in respect of this example?

 

Thank you for your considered replies,

 

  Owen.

 


Re: Creating intermediary XSLT service.

Posted by Gert Vanthienen <ge...@skynet.be>.
Owen,

This information clarifies the question very well, but I don't know how 
the answer.  As far as I know, you can only use the XSL-T SE to 
translate XML in a unidirectional way (e.g. the incoming request into 
your 'filtered' XML message format).  You could also do the same thing 
for the responses, but you still need something to tie both of them 
together, I assume...  Perhaps someone else can help us out with this one?

Gert


Owen Thomas wrote:
> Hi again Gert.
>
> Sure, I'm simply translating information between one XML and another.
>
> This is because I don't want the user to have direct access to my
> JSR-181 SE. I want the XSLT SE to transform a document with a specific
> structure to an OS command, and I want the result of the command's
> execution to be translated into another document with a specific
> structure.
>
> Does that information help you answer my original questions any better?
>
>   Owen.
>
> -----Original Message-----
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
> Sent: Monday, May 07, 2007 3:40 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: Creating intermediary XSLT service.
>
> Owen,
>
> I'm a bit confused about exactly what you will be trying to do with the 
> XSLT SE.  Anyway, ServiceMix already has an out-of-the-box XSLT 
> component (servicemix-saxon) that you can use for data transformation 
> (XSL-T) and XQuery.  Doesn't this one suit your needs?
>
> Gert
>
>
> Owen Thomas wrote:
>   
>> Good afternoon ServiceMix users.
>>
>>  
>>
>> After 3 months of persistence, I finally got a web service functioning
>> in a ServiceMix container.
>>
>>  
>>
>> What I have is an HTTP BC that forwards requests from outside the NMR
>>     
> to
>   
>> a JSR-181 SE. The JSR-181 SE implements an OS call using the string
>> supplied in the received SOAP message as the command. As those who
>>     
> have
>   
>> been observant up to this point can see, this is very dangerous. It is
>> not recommended one expose such a web service on a production machine
>> for the possibility of damage to the host that could result.
>>
>>  
>>
>> What I would like to do is to use this SE to run specific commands
>>     
> that
>   
>> I write in XSLT, and run using an XSLT SE. I'm not quite sure how to
>>     
> do
>   
>> this, and would appreciate help on the following matters:
>>
>>  
>>
>> 1. I have the HTTP BC and JSR-181 SE. I appear to need the XSLT SE.
>>     
> Can
>   
>> anyone tell me what other service units I might need?
>>
>> 2. How do I get these service units to talk to each other?
>>
>>  
>>
>> I believe, that in the Java Business Integration spec v 1.0, my JBI
>> instance is going to look something like that given in section 4.9.1,
>> except that it will be a request-response MEP. Can anyone please help
>>     
> me
>   
>> draw light over my solution in respect of this example?
>>
>>  
>>
>> Thank you for your considered replies,
>>
>>  
>>
>>   Owen.
>>
>>  
>>
>>
>>   
>>     
>
>
>   


RE: Creating intermediary XSLT service.

Posted by Owen Thomas <ot...@wcg.net.au>.
Hi again Gert.

Sure, I'm simply translating information between one XML and another.

This is because I don't want the user to have direct access to my
JSR-181 SE. I want the XSLT SE to transform a document with a specific
structure to an OS command, and I want the result of the command's
execution to be translated into another document with a specific
structure.

Does that information help you answer my original questions any better?

  Owen.

-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Monday, May 07, 2007 3:40 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: Creating intermediary XSLT service.

Owen,

I'm a bit confused about exactly what you will be trying to do with the 
XSLT SE.  Anyway, ServiceMix already has an out-of-the-box XSLT 
component (servicemix-saxon) that you can use for data transformation 
(XSL-T) and XQuery.  Doesn't this one suit your needs?

Gert


Owen Thomas wrote:
> Good afternoon ServiceMix users.
>
>  
>
> After 3 months of persistence, I finally got a web service functioning
> in a ServiceMix container.
>
>  
>
> What I have is an HTTP BC that forwards requests from outside the NMR
to
> a JSR-181 SE. The JSR-181 SE implements an OS call using the string
> supplied in the received SOAP message as the command. As those who
have
> been observant up to this point can see, this is very dangerous. It is
> not recommended one expose such a web service on a production machine
> for the possibility of damage to the host that could result.
>
>  
>
> What I would like to do is to use this SE to run specific commands
that
> I write in XSLT, and run using an XSLT SE. I'm not quite sure how to
do
> this, and would appreciate help on the following matters:
>
>  
>
> 1. I have the HTTP BC and JSR-181 SE. I appear to need the XSLT SE.
Can
> anyone tell me what other service units I might need?
>
> 2. How do I get these service units to talk to each other?
>
>  
>
> I believe, that in the Java Business Integration spec v 1.0, my JBI
> instance is going to look something like that given in section 4.9.1,
> except that it will be a request-response MEP. Can anyone please help
me
> draw light over my solution in respect of this example?
>
>  
>
> Thank you for your considered replies,
>
>  
>
>   Owen.
>
>  
>
>
>   


Re: Creating intermediary XSLT service.

Posted by Gert Vanthienen <ge...@skynet.be>.
Owen,

I'm a bit confused about exactly what you will be trying to do with the 
XSLT SE.  Anyway, ServiceMix already has an out-of-the-box XSLT 
component (servicemix-saxon) that you can use for data transformation 
(XSL-T) and XQuery.  Doesn't this one suit your needs?

Gert


Owen Thomas wrote:
> Good afternoon ServiceMix users.
>
>  
>
> After 3 months of persistence, I finally got a web service functioning
> in a ServiceMix container.
>
>  
>
> What I have is an HTTP BC that forwards requests from outside the NMR to
> a JSR-181 SE. The JSR-181 SE implements an OS call using the string
> supplied in the received SOAP message as the command. As those who have
> been observant up to this point can see, this is very dangerous. It is
> not recommended one expose such a web service on a production machine
> for the possibility of damage to the host that could result.
>
>  
>
> What I would like to do is to use this SE to run specific commands that
> I write in XSLT, and run using an XSLT SE. I'm not quite sure how to do
> this, and would appreciate help on the following matters:
>
>  
>
> 1. I have the HTTP BC and JSR-181 SE. I appear to need the XSLT SE. Can
> anyone tell me what other service units I might need?
>
> 2. How do I get these service units to talk to each other?
>
>  
>
> I believe, that in the Java Business Integration spec v 1.0, my JBI
> instance is going to look something like that given in section 4.9.1,
> except that it will be a request-response MEP. Can anyone please help me
> draw light over my solution in respect of this example?
>
>  
>
> Thank you for your considered replies,
>
>  
>
>   Owen.
>
>  
>
>
>