Oh, I havent used the toD yet. The full route looks like this
from("direct:fetch")
.to("oaipmh:URL"
+ "?"
+ "verb=GetRecord"
+ "&"
+ "onlyFirst=true"
+ "&"
+ "repeatCount=0"
+ "&"
+ "identifier="
+ simple("${exchangeProperty.myId}")
+ "&"
+ "metadataPrefix=datacite"
)
.log("${body}");
Will check the couple things you recommended. Thanks!
-----Ursprüngliche Nachricht-----
Von: Claus Ibsen <[email protected]>
Gesendet: Mittwoch, 4. August 2021 13:25
An: [email protected]
Betreff: Re: OAI-PMH Component and Simple Language support
Hi
See the toD and content enricher eip patterns
On Wed, Aug 4, 2021 at 1:22 PM Penagos Jaime <[email protected]>
wrote:
>
> Hi everyone,
>
> I am currently testing the OAI-PMH component with Camel 3.11.x, the component
> works as intended, but it doesnt let me use Simple Language in the Producer /
> Consumer.
>
> I want to load an ID from the body of a file, and after some basic
> processing, use this information as the identifier, but when I start
> the routes, it just shows in the URL
>
> ?verb=GetRecord&identifier=exchangeProperty%7BmyId%7D
>
> I've tried using ${exchangeProperty.myId} or the getProperty() builder, but
> nothing seems to work...
>
> Is there a workaround you could recommend to me or something I am missing?
>
> Thank you so much fort he insights!
> Best regards
>
> --
> Jaime Penagos
>
> Ludwig-Maximilians-Universität
> Universitätsbibliothek
> Abteilung Informationstechnologie
>
> Geschwister-Scholl-Platz 1, 80539 München
> Tel.: +49 89 2180 5747
> E-Mail:
> [email protected]<mailto:[email protected].
> de>
>
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2