This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Emergency Help!! SOAPListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Emergency Help!! SOAPListener" Watch "Emergency Help!! SOAPListener" New topic
Author

Emergency Help!! SOAPListener

Ling Min Lee
Greenhorn

Joined: Aug 12, 2004
Posts: 10
hi, i am a completely new to SOAP and web services and now am assigned to do a major project on web services..

Please help me to understand more about SOAPListener. and how many files i need to code it?
How do i begin n start coding SOAPListener?

i am supposed to do a search page n connect to multiple web services. My client is a MIDP device. It also involves XML. Oh no.. This whole thing is so so complicated and our supervisors/teachers are not helping out at all..
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Ling Min Lee:
Please help me to understand more about SOAPListener. and how many files i need to code it?
How do i begin n start coding SOAPListener?

As far as I know, there is no standard class/interface named "SOAPListener". In fact, based on a quick Googling, I doubt that it's a class/interface of any specific product either. Thus, I believe that this "SOAPListener" was just a term your teachers used to describe the component that receives SOAP requests and responds to them. Am I correct?

If you're allowed to use 3rd party products/libraries, I would strongly suggest downloading Apache Axis (which is an open source web services platform), Googling for some Axis tutorials, and going from there. The Axis distribution also includes some twenty example web services (and clients for the same) which you might want to check out.

Originally posted by Ling Min Lee:
My client is a MIDP device. It also involves XML.

I'd suggest asking about the client-side stuff in our J2ME forum but I think you should start by Googling for "MIDP XML" or something like that. There are a couple of XML parser libraries for J2ME but no standards yet.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ling Min Lee
Greenhorn

Joined: Aug 12, 2004
Posts: 10
Yes yes, my teacher define SoapListener as something that can request and responds. So what is the next step that i should take?

My teacher also said something about XML mapping and its confusing cuz its not XML-to-Java mapping, not XML-to-database mapping, etc.. So what kind of mapping he want us to do? Can i say SOAPListener is XML Mapping?

I am supposed to use JSR 172 and do not know what i shld do with it. I know its a specification, but how to i implement it into my codes?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Ling Min Lee:
Yes yes, my teacher define SoapListener as something that can request and responds. So what is the next step that i should take?

As I replied earlier:
If you're allowed to use 3rd party products/libraries, I would strongly suggest downloading Apache Axis (which is an open source web services platform), Googling for some Axis tutorials, and going from there. The Axis distribution also includes some twenty example web services (and clients for the same) which you might want to check out.

Originally posted by Ling Min Lee:
My teacher also said something about XML mapping and its confusing cuz its not XML-to-Java mapping, not XML-to-database mapping, etc.. So what kind of mapping he want us to do? Can i say SOAPListener is XML Mapping?
I have no idea what mapping your teacher is talking about.

Originally posted by Ling Min Lee:
I am supposed to use JSR 172 and do not know what i shld do with it. I know its a specification, but how to i implement it into my codes?
I guess you could start by reading the specification. This J2ME stuff is something you really should ask about in our J2ME forum.
Ling Min Lee
Greenhorn

Joined: Aug 12, 2004
Posts: 10
we are not allowed to use Axis...
he says use JWSDP. how different are Axis and JWSDP?
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Ling Min Lee:
we are not allowed to use Axis...
he says use JWSDP. how different are Axis and JWSDP?

Cool... Cool..are you Aries ;-)

If you are not allowed to use Axis, then I would recommend you to look in to Axis or Apache SOAP or JWSDP source code and try to learn how they have implemented a typical SOAPListener, then you can start shaping them to your needs.

Regarding JWSDP vs Axis
they both implement JAX-RPC API
Apache Axis is good for production use whereas JWSDP is not really meant for production use even though sun claims.
Aapche Axis can run on any application server


Spritle Software Blogs
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Ling Min Lee:
we are not allowed to use Axis...
he says use JWSDP. how different are Axis and JWSDP?

Ah. For learning about JWSDP, the best resource is Sun's own Java Web Services Tutorial.
 
 
subject: Emergency Help!! SOAPListener
 
Similar Threads
How to exposing C/C++ API as WebService ?
running the web services part of my system
web service security and data encryption
Web services and J2EE
Apache Axis UDDI serve