JMS BC BytesMessage in BPEL

4 messages Options
Embed this post
Permalink
kmo

JMS BC BytesMessage in BPEL

Reply Threaded More More options
Print post
Permalink
Hi there,

From a BPEL process , I want to send a BytesMessage to a JavaMQ queue.
The concrete WSDL that I generated expects a xsd:base64Binary type for the part.

In the BPEL mapper I noticed there is a "cast to" option that opens a SubType Chooser window that contains a base64Binary element, but I am not able to choose it (the OK button stays grayed out ???).
 
Is there another way (maybe directly in the source) to convert a String to this base64Binary type ?
Calling an external jar is imo not an option since the return type can only be String, Number , Boolean or Node.

I am using JavaCAPS 6 Update 1

Thanks
 
Kris
Philip Varghese

Re: JMS BC BytesMessage in BPEL

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,
It looks like you are looking for a conversion of xsd:string to xsd:base64Binary, currently there is no direct support for it.
Although i have not tired it, i think you could achieve it by calling a java function that takes the string as the input parameter and returns a string that is base64Binary (encoded), the conversion being done in the function. You could then assign that to your base64Binary node in your assignment.
How to call a java function in bpel : http://wiki.open-esb.java.net/Wiki.jsp?page=BPELSEHowToCallJavaMethods

Another link that maybe helpful, is this one on handling binary attachments in BPEL : http://wiki.open-esb.java.net/Wiki.jsp?page=BPELSEInlineAttachment

Please file an enhancement bug in issue tracker, https://open-esb.dev.java.net/IssueTracker.html, so that this can be considered for the next round of enhancement .

-Philip

kmo wrote:
Hi there, 

From a BPEL process , I want to send a BytesMessage to a JavaMQ queue.
The concrete WSDL that I generated expects a xsd:base64Binary type for the
part.

In the BPEL mapper I noticed there is a "cast to" option that opens a
SubType Chooser window that contains a base64Binary element, but I am not
able to choose it (the OK button stays grayed out ???).
 
Is there another way (maybe directly in the source) to convert a String to
this base64Binary type ?
Calling an external jar is imo not an option since the return type can only
be String, Number , Boolean or Node. 

I am using JavaCAPS 6 Update 1

Thanks
 
Kris
  
kmo

Re: JMS BC BytesMessage in BPEL

Reply Threaded More More options
Print post
Permalink
Thanks Philip,

in the meantime I tested with sending a base64 endcoded payload, which succeeded.
Because sending BytesMessages through the JMS BC requires base64 encoding, it would be nice to have some conversion available inside the mapper. I filed the enhancement for this.

Cheers,

Kris


Philip Varghese wrote:
Hi,
It looks like you are looking for a conversion of xsd:string to
xsd:base64Binary, currently there is no direct support for it.
Although i have not tired it, i think you could achieve it by calling a
java function that takes the string as the input parameter and returns a
string that is base64Binary (encoded), the conversion being done in the
function. You could then assign that to your base64Binary node in your
assignment.
How to call a java function in bpel :
http://wiki.open-esb.java.net/Wiki.jsp?page=BPELSEHowToCallJavaMethods

Another link that maybe helpful, is this one on handling binary
attachments in BPEL :
http://wiki.open-esb.java.net/Wiki.jsp?page=BPELSEInlineAttachment

Please file an enhancement bug in issue tracker,
https://open-esb.dev.java.net/IssueTracker.html, so that this can be
considered for the next round of enhancement .

-Philip

kmo wrote:
> Hi there,
>
> From a BPEL process , I want to send a BytesMessage to a JavaMQ queue.
> The concrete WSDL that I generated expects a xsd:base64Binary type for the
> part.
>
> In the BPEL mapper I noticed there is a "cast to" option that opens a
> SubType Chooser window that contains a base64Binary element, but I am not
> able to choose it (the OK button stays grayed out ???).
>  
> Is there another way (maybe directly in the source) to convert a String to
> this base64Binary type ?
> Calling an external jar is imo not an option since the return type can only
> be String, Number , Boolean or Node.
>
> I am using JavaCAPS 6 Update 1
>
> Thanks
>  
> Kris
>  
alexndr

Re: JMS BC BytesMessage in BPEL

Reply Threaded More More options
Print post
Permalink
What happened with this enhancement? Is it implemented yet?

/Alex


kmo wrote:
Thanks Philip,

in the meantime I tested with sending a base64 endcoded payload, which succeeded.
Because sending BytesMessages through the JMS BC requires base64 encoding, it would be nice to have some conversion available inside the mapper. I filed the enhancement for this.

Cheers,

Kris


Philip Varghese wrote:
Hi,
It looks like you are looking for a conversion of xsd:string to
xsd:base64Binary, currently there is no direct support for it.
Although i have not tired it, i think you could achieve it by calling a
java function that takes the string as the input parameter and returns a
string that is base64Binary (encoded), the conversion being done in the
function. You could then assign that to your base64Binary node in your
assignment.
How to call a java function in bpel :
http://wiki.open-esb.java.net/Wiki.jsp?page=BPELSEHowToCallJavaMethods

Another link that maybe helpful, is this one on handling binary
attachments in BPEL :
http://wiki.open-esb.java.net/Wiki.jsp?page=BPELSEInlineAttachment

Please file an enhancement bug in issue tracker,
https://open-esb.dev.java.net/IssueTracker.html, so that this can be
considered for the next round of enhancement .

-Philip

kmo wrote:
> Hi there,
>
> From a BPEL process , I want to send a BytesMessage to a JavaMQ queue.
> The concrete WSDL that I generated expects a xsd:base64Binary type for the
> part.
>
> In the BPEL mapper I noticed there is a "cast to" option that opens a
> SubType Chooser window that contains a base64Binary element, but I am not
> able to choose it (the OK button stays grayed out ???).
>  
> Is there another way (maybe directly in the source) to convert a String to
> this base64Binary type ?
> Calling an external jar is imo not an option since the return type can only
> be String, Number , Boolean or Node.
>
> I am using JavaCAPS 6 Update 1
>
> Thanks
>  
> Kris
>