Hi, I am a newbie in Web Services. I have made a web service, which fetches some data from database and then makes a pdf file. Then in another java class, i am converting this pdf into byte array and then sending this byte array to client side and then at client side , I am again converting the received byte array to pdf. but I want to send the pdf file as attachement. Is that possible? If yes, can anyone send me the java code for that?
Thanks a million
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
What was wrong with the very extensive answer Peer gave you in this topic?
Hi.. I am very new to Web Service.. I created a Webservice. In that i have a method, to which the Client will send prameters.. The method ontains some string and 2 array parameters.. I am getting SAXException: deserialization error for that while sending the arrays to the method. Can anyone Help me to resolve this problem..
Thanks in advance
Nagendra E Loli
lokesh jain
Ranch Hand
Joined: Feb 21, 2009
Posts: 58
posted
0
It seems that XSD created at runtime, is not matching the credentials.....only in this case we can get SAX error.
Nagendra E Loli
Greenhorn
Joined: Feb 23, 2009
Posts: 12
posted
0
hi Thanks for the quick reply.. Can you please help me to get out of this problem... Can you please explain me what is the problem in detail... When i pass the Array tot he web service method then i am getting the "org.xml.sax.SAXException: No deserializer for" error....
So you're trying to send an object of class "SMSContent" across the wire? Did you configure both sides with the proper serializers/deserializers? It sounds as if that's missing.
Nagendra E Loli
Greenhorn
Joined: Feb 23, 2009
Posts: 12
posted
0
[quote=Ulf Dittmer]So you're trying to send an object of class "SMSContent" across the wire? Did you configure both sides with the proper serializers/deserializers? It sounds as if that's missing.[/quote]
Yes.. Our client side will send the call the smsMo(). they will send the array of SMSContent.
The other side is not in my hand.. My client will send the requests to my service... At my side i implemented java.io.Serializable for the classes as i mentioned in the previous quote..
Please tell what i can do to get out of this problem... I hav to complete it within 2 days.. I got a deadline... it s my carrier matter..
Some one please help me...
Thanks & Regards
Nagendra E Loli
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
Implementing Serializable has nothing to do with this. You need to configure your SOAP toolkit with serializers and deserializers for the SMSContent class. Consult the documentation of whichever one you're using on how to do that.
Nagendra E Loli
Greenhorn
Joined: Feb 23, 2009
Posts: 12
posted
0
[quote=Ulf Dittmer]Implementing Serializable has nothing to do with this. You need to configure your SOAP toolkit with serializers and deserializers for the SMSContent class. Consult the documentation of whichever one you're using on how to do that.[/quote]
Actually what i am doing here means... I am just coded whatever functionality i wanted in the CPServices.java class.... Then i am renaming that java file into "CPServices.jws"... i am not converting the Java file into the WSDL using and Axis tools.. Because in our company we are using Sun Application server 7 , JDK 1.4 & Tomcat 4.0..
Everything is lower version.. For time being we cant upgrade that one.. We have to upload the current project before tomorrow evening.. SO i need this in urgent.. Can you please send me any documentation or any web links to get out of this solution...
Thanks a lot for your valuable reply... Please help me regarding this...