Can any one suggest me how to get xsd:base64Binary data in the JavaEmbedding activity.I can do normal Java Embedding activity.But coming to my requirement
i have an element in xsd of type base64Binary and get it in java embedding activity as string or byte .I did as given below and by changing it values
Element input= (Element)getVariableData("inputVariable","payload","/ns1:PdfData/ns1:PdfContent");
//String inputVal = input.getTextContent();
//String inputVal =new String(input.getNodeValue());
if i test it the process is executed only upto receive activity and java embedding activity is not executed which is after receive.
Edited by: 863597 on May 1, 2012 12:25 AM
Edited by: 863597 on May 1, 2012 12:26 AM
How are you loging the values ? Did you check in the log ?
Java embedded activity will now show up its value in audit trial. Use addAuditTrailEntry() to print your values just like sop and then try to check the values.
I am getting NullPointerException .Here is snippet of code which gets the Exception even though i pass the data to process.
Always I am getting exception i think the problem is reading the data from xml element.Any suggestions please ?
I think try with simple bpel and it should work. There is no need of having element objects involvement here.
Create a bpel variable as BPELName = "Some value..", and another variable as BPELName1 , dont initialize the BPELName1 variable.
Then have a java embedded inside the bpel and try to access that variable.
<bpelx:exec name="Java_Embedding_1" version="1.5" language="java">
<![CDATA[/*Write your java code below . */
String JavaName= "" ;
Keep one more assign to see whether the BPELName that you set in BPEL is being passed on to BPELName1 variable.
I'm working on SOA 184.108.40.206 version.I have one temporary variable $gRXML which is created from the schema element.How can i get the variable data of $gRXML/Payloads/PDF/BASE64
in the java embedding activity.Please give me the suggestions.
Thanks in advance!
I did the same thing and it is working i my local server but did the same thing in dev it shows NullPointer exception event though there is data.Any Suggestions please.?
I think you are trying get the value directly from payload, can you try to assign the particular value into a variable and then try to get that variable data in java embedded like the example i have provided you.