• Post Reply Bookmark Topic Watch Topic
  • New Topic

Web Services Server Development help  RSS feed

 
ada choi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Supposed to develop a server with java. How shld i do it?

I wrote some SAX.java and Saaj and XML codes. But problem is that i do not know if they are correct...

can anyone please help me?
thnx..
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ada choi:
I wrote some SAX.java and Saaj and XML codes. But problem is that i do not know if they are correct...

You mean to say you have some coding experience in SAX,SAAJ etc, and want to know how to write a server or you want to convert your codes to Server ?

What is your requirements ?
Apache Axis http://ws.apache.org/axis has some examples on developing and deploying webservices.
 
ada choi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx for replying.
I have no idea what the heck is SAX or SAAJ at all. But am using some examples found on sun website. My supervisor says that we have to use SAX and SAAJ and XML and JSR 172..
The problem now is that i have to map xml using SAX or SAAJ and have no idea how to do it and i cant use axis...
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check these links

SAX tutorial

SAAJ tutorial

But you'll first have to understand what you have to do and why (if ?) SAX and SAAJ are needed
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ada choi:
The problem now is that i have to map xml using SAX or SAAJ and have no idea how to do it and i cant use axis...

What made you to decide this?

Your questions were incoherent or may be you are a novice to webservice...
but still then...
XML is standard for encoding message in markup format.
Check w3cshools.com website to learn about it.
SAX is a XML parser,...that is to read XML based datas
SAAJ is specification/api for SOAP attachments
 
ada choi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm sorry for being so incoherent.. i am really a novice in this thing.

ok here goes, we need the xml codes to 'extract' data from other web services and mapped it to the main web service(the one who request).
So basically, my xml is empty.

It doesn't contains any data at all, instead, my XML have codes like <sequence = "1">. It was taken from an example given by my supervisor. But have no idea whether my codes are correct or not.

Books and internet usually teach us to do:
<books category = "Horror">
<title> Fright Night </title>
<price> $19.99 </price>
</books>

But my XML codings are not supposed to contain any data or information because these information shld come from the web services..
So, how shld i do all these codes using J2ME java codes and JSR172 and SAAJ and so on ?? I am really really very LOST..
I hope it is clearer now.
Thank you.
[ September 23, 2004: Message edited by: ada choi ]
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the SAAJ tutorial link I gave you earlier explain how to create a new message and populate it with data. So it sounds like it is what you may need in order to "re-assemble" a payload from several web services.

According to what you have to do and what is your web service background, you should consider the sun tutorial before going ahead. You will learn the technologies involved in the web services and how they can be used to fit your needs.
[ September 23, 2004: Message edited by: Jean-Louis Marechaux ]
 
ada choi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You for all your help. Really appreciate it!! =D

Do you guys have any idea what kind of web service i am doing is called? what sort of architecture is it?
Are there any examples out there doing the same as the porject i doing?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!