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=BPELSEHowToCallJavaMethodsAnother link that maybe helpful, is this one on handling binary
attachments in BPEL :
http://wiki.open-esb.java.net/Wiki.jsp?page=BPELSEInlineAttachmentPlease 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
>