Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CXF Problem

 
swenling wen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please paste more error messages should the readers will be able to guess what it can be.
 
swenling wen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My friend told me that a tool can capture and parse xml file sending by server when using soap,where can I get it ?

SoapUI is a great free tool that can be used to monitor SOAP connections, and display requests and responses.
 
swenling wen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much!
Good luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic