Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

It is very urgent plz help me.....  RSS feed

 
venu vanga
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
please help me....I am new to web services and iam doing one program.
i am having one java file in which method takes the xml file and parses it and stores the data to database tables through stored procedures.i want to publish the method as web service. but i am not getting any idea how to pass the xml file to web service from client program.
plzzzzzzz help me.

Thanks
venu
 
chinna talluru
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am assuming that you have developed service which take xml as argument.
then problem is inorder to pass the xml as argument to that service right.

ok.then write a client program using (dynamic invovation interface)
and while calling the service pass the Document instance(which you get
from the DOM Parser.ok.

all the best
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venu,

in order to get the most out of the forums, we have put together a page with helpful advice on HowToAskQuestionsOnJavaRanch. You might want to check out EaseUp and UseAMeaningfulSubjectLine in particular.
 
sandeepsharma
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U need to publish the service with DataHandler as the argument of the function
for example:
public void getXmlFile(DataHandler file){
----
}
DataHandler of activation framework..............
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!