RE: Beginner Webobjects Web Service Question
RE: Beginner Webobjects Web Service Question
- Subject: RE: Beginner Webobjects Web Service Question
- From: "Jeffrey Pearson" <email@hidden>
- Date: Wed, 14 Sep 2005 23:30:06 -0700
- Thread-topic: Beginner Webobjects Web Service Question
You mean the bottom half of page 27 and the top half of page 28? I have pasted the text from the pages below. Now, maybe it's my eyes, but I STILL dont see anything like "this is how you build a web service. Step one, create a new project of xxx type.". All I see is "in the examples is a calculator example for a web service". What code made it a web service? How was this project created? What kind of project was it? Is it a web application? Is it a Java Application with added extensions? How does it tie to Axis?
For the beginner trying to create even a simple Hello World sample, there is nothing to guide them.
So for all of you author types out there, a good beginners tutorial for creating a web service from scratch would be greatly appreciated at least by this individual.
Asacompaniontothisdocument,inprojects/Calculator,youfindtheCalculatorproject.It'sa
simpleWebObjectsapplicationprojectusedtobuildanapplicationthatservesaWebservicecalled
Calculator.Theserviceprovidesfouroperations:add,subtract,multiply,anddivide.Theoperations
taketwoparametersoftypedoubleandreturnavalueoftypedouble.TheCalculator.javaclass,
theworkhorseoftheCalculatorWebservice,islistedinListing3-1.
Listing3-1 Calculator.javaclassinCalculatorproject
public class Calculator extends Object {
public static double add(double addend1, double addend2) {
double sum = addend1 + addend2;
return sum;
}
public static double subtract(double minuend, double subtrahend) {
double difference = minuend - subtrahend;
return difference;
}
public static double multiply(double multiplicand1, double multiplicand2) {
double product = multiplicand1 * multiplicand2;
return product;
}
public static double divide(double dividend, double divisor) {
double quotient = dividend / divisor;
return quotient;
}
}
ToprovideaWebservicebasedonCalculator.javatheApplicationobjectregistersCalculator.java
asaWebservicewiththefollowingmethodinvocation:
WOWebServiceRegistrar.registerWebService(Calculator.class, true);
TheWOWebServiceRegistrarclass(com.webobjects.webservices.appserver)providesmethods
toregisterandunregisterclassesasWebservices,setasecuritydelegate,registerXSLT(Extensible
StylesheetLanguageTransformations)scriptsforoperations,andsoon.
TobecomeaWebserviceprovider,buildandruntheCalculatorapplication.ToviewtheWSDL
documentfortheWebservice, pointyourWebbrowserto
http://localhost:4210/WebObjects/Calculator.woa/ws/Calculator?wsdl.
-----Original Message-----
From: LD [mailto:email@hidden]
Sent: Wed 9/14/2005 9:28 PM
To: Jeffrey Pearson
Cc: email@hidden
Subject: Re: Beginner Webobjects Web Service Question
On 15/09/2005, at 2:41 AM, Jeffrey Pearson wrote:
> In reply, on 15/09/2005, LD wrote:
>
>> On 14/09/2005, at 3:49 PM, Jeffrey Pearson wrote:
>>
>>> Please pardon the most basic beginner question. I've been [s]
>>> earching all day and yet to find an answer.
>>>
>>> Coming from the .Net world to Java, I am making my foray into Web
>>> Services. Of course being a Mac person, I would REALLY like to use
>>> Web Objects to develop them.
>>
>> 1) Go to: http://developer.apple.com/webobjects/
>> 1) Click on: "Documentation"
>> 2) Click on "Web Services"
>> 3) Click on "WebObjects Web Services Programming Guide" [html | pdf]
>
> I have it. Which is why I posted the question here. It only shows
> you how to make one using the direct 2 web services which requires
> the data model. Hence my posting.
You must have skipped over the topic of relevance as it shows you
both. (i.e., how to make a Web Services Application _and_ a D2WS
Application).
http://developer.apple.com/documentation/WebObjects/Web_Services/
There are 7 topics:
1) Introduction
2) Web Services Overview
3) Security in Web Services
4) **Developing Web Service Applications**
5) Developing Direct to Web Services Applications
6) Revision History
7) Glossary
with regards,
--
LD
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden