Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes CXF Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "CXF Problem" Watch "CXF Problem" New topic
Author

CXF Problem

swenling wen
Ranch Hand

Joined: Jun 07, 2006
Posts: 32
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

Joined: Jul 13, 2001
Posts: 3150
Please paste more error messages should the readers will be able to guess what it can be.


Spritle Software Blogs
swenling wen
Ranch Hand

Joined: Jun 07, 2006
Posts: 32
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
>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
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
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
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
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.


Ping & DNS - my free Android networking tools app
swenling wen
Ranch Hand

Joined: Jun 07, 2006
Posts: 32
Thank you very much!
Good luck!
 
GeeCON Prague 2014
 
subject: CXF Problem