Forums Register Login

Sending bytecodes

+Pie Number of slices to send: Send
Help!

I tried sending byte codes to server application (deployed as a Web Service) as a method argument which returned SAXParserException. I believe wrapping up the class file into a String object would require Base64 encoding which I am looking into. My question is whether encoding will the right way or I must try sending byte codes as an attachment? Or something else?

My goal is to load the bytecode on a server which is deployed as a Web Service. This dynamically loaded bytecode will be then invoked from another client.

Any suggestions.

Sandeep
+Pie Number of slices to send: Send
Yes, Base64 encoding should be fine -- as long as you remember to decode it in the other end
+Pie Number of slices to send: Send
Thanks. Base64 worked fine and .class file is now able to download on the server site. Infact, I am using AXIS where encoding and decoding part is taken care by the underlying system. I just had to specify the argument as XSD_BASE64 and everything was taken care of.

My new problem is I cannot load this .class file and invoke it. I have posted a question at Java in General (Intermediate)
https://coderanch.com/t/373869/java/java/Not-able-load-Class

Any suggestions will be highly appreciated !

Sandeep
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1070 times.
Similar Threads
Advise needed !
Why bytecodes???
How to order the elements in soap message?
java.text.ParseException in Web service
WSDL2JAVA
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:50:06.