Now ,my project is using cxf and tomcat.I deploy a class named TestServiceImpl,this class includes a function GetEncryByte which is used for encrypting some information. That is OK when I call this function,but when I call it by webService,that is exception:javax.soap... proxy15 GetEncryByte[unknown source]...that is illegial characters.. but I call others,All is Ok.Client can get correct result from server. this function only send byte[] to client by webservice(SOAP) Now I don't known which is incorrect,function or my webservice configuration. Hope somebody can help me! Thank you very much!!
public interface testService{ ... public byte[] GetEncryptByte(String filename); ... } Because my development enviroment is on my company ,I can't post detail exceptions for you,but I think It causes errors when post byte[] by webservice, How to post byte[] to client by webservice? Thank you !
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted
0
>javax.soap... proxy15 GetEncryByte[unknown source]...that is illegial >characters.. Hi, The exception simply says unknown source. Unless you say what exact error you are getting its not easy to judge.
Check this link, if you are looking for file to byte[] conversion.
swenling wen
Ranch Hand
Joined: Jun 07, 2006
Posts: 32
posted
0
Thank you! but I known about how to read a file into a byte array,I think that's some exception when post byte array in webservice,because soap(xml file) can't read some bytes. How to solve this problem?
swenling wen
Ranch Hand
Joined: Jun 07, 2006
Posts: 32
posted
0
My friend told me that a tool can capture and parse xml file sending by server when using soap,where can I get it ? I can using tool to capture the sending xml file ,of course,I can known where cause the exception