Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

web services with axis and castor  RSS feed

shawn kennedy
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im new to web services and have gone through ibm's tutorial that explains how to use castor and axis to create a web service.But i cant seem to understand the following basic things about web service

1)If i call a url of the following form http://host ort/something/services/AddressService how does Axis know what is to be done with this(im guessing that this request goes to the Aaxis Servlet since all urls of the form /services are mapped to the Axis Servlet) and what does happen exactly after i call the above url.

2)I have seen an application where a vendor just calls the above url (they say they pass an xml file too with all the details required as input to the web service)and the web service gets invoked processes the request and sends response.I cant seem to understand where and how he posts the xml and also again how invoking the url causes the web service to generate the response and how is the response sent back in xml format.

3)Ive also seen in some places where people write an xsd use castor to generate java files and these use these java files to read data from xml file and output using other java code.I cant seem to understand how exactly this happens.

I would be really greatful to anyone who helps me out with this.Im stuck and cant seem to understand how to proceed writing web services.Please help
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!