on 12-19-2019 11:42 AM
Hi All,
I am uplaoding the file to vendor system through SoapUI, after opening the uploadByteArrayFile method it has three values to pass
1. FileName -> I can read file name dynamically and pass it
2. Content ->every time when i import wsdl in sopaui new content vlaue is coming, this value is always gettign changed,
3. Destination ->it's user id, so no issue
I have issue for content value, ohter two i can handle in java mapping, how can i get content value from java code so that i can pass it.content-issue.png
Please help me to get the content value ?
i am not sure, might be need to call the wsdl url or somting.
Regards,
Binod
Hi!
As far as I could understand your requirement, you should get byte array from your source file and convert it to Base64-encoded string.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Evgeniy,
I saw yout ocmment on one of the thread, there same logic you had implemented, get byte array from source file and convert it to Base64-encoded, but i didn't try this.
My issue got resolved, after seeing the content value carefully i got to know every time it contains 12 digits no starting with "cid:" like cid:<12 digits no>.
So I tried creating random no which contians 12 digits and pass it to content value dynamically and it worked as expected.
But let me try your logic and will update on this.
Thanks
Hi Evgeniy,
It's working in this way as well, fileobject ->byte array ->convert to base64 and pass this value to content field.
I used import java.util.Base64; code got compiled successfully, but when i import jar file in ESR then it's throwing error
NoClassDefFoundError: java/util/Base64, MappingClassNotFoundException: java/util/Base64.class
don't know why, i used jre1.8 for compilation and PO is 7.4 single stack and using jdk 1.6
Regards,
Binod
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.