Re: [java ee programming] Java Web Service?

2011-07-29 Thread Sebastian E. Ovide
or even simpler :
http://download.oracle.com/javaee/6/tutorial/doc/bnayn.html


package helloservice.endpoint;

import javax.jws.WebService;
import javax.jws.webMethod;

@WebService
public class Hello {
private String message = new String("Hello, ");

public void Hello() {
}

@WebMethod
public String sayHello(String name) {
return message + name + ".";
}
}



On Mon, Jul 25, 2011 at 8:44 PM, Icon Web Solutions wrote:

>
> http://www.javaissues.com/2011/04/apache-axis-14-hello-world-example-jws.html
>
> follow the steps on the link above.
>
>
> On Mon, Jul 25, 2011 at 11:53 AM, Evgeniy Pol. wrote:
>
>> Hi Everyone!
>>
>> I want implement *java web service.* I'm new in this.
>> someone can give me some advise somethink for begin  with this
>> implementation?
>> which server is better? Which  protocol? SOAP or somethink else?
>>
>> Thanks!!
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Java EE (J2EE) Programming with Passion!" group.
>> To post to this group, send email to
>> java-ee-j2ee-programming-with-passion@googlegroups.com
>> To unsubscribe from this group, send email to
>> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
>> For more options, visit this group at
>>
>> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>
>
>
>
> --
> -
> Dinesh Chanchalani
> ~USA~ 718-408-4482
> ~India~ 99696-13412
>
> www.IconWebSolutions.info
> www.IconTraining.info
> www.JavaIssues.com
> www.DotnetIssues.com
>  www.RentProjector.in
>
>
> "The fundamental principle of economic activity is that no man you transact
> with will lose; then you shall not"
> - Chanakya in Arthashastra
>
> “Success seems to be connected with action. Successful people keep moving.
> They make mistakes, but they don’t quit” - Conrad Hilton
>
> कदम निरंतर बढ़ते जिनके, श्रम जिनका अविराम है,
> विजय सुनिश्चित होती उनकी, घोषित यह परिणाम है |
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>



-- 
Sebastian E. Ovide

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Re: [java ee programming] .class usage

2011-07-29 Thread stefan.brunig
Hi Hani,

you might get some useful information here:
http://download.oracle.com/javase/1,5.0/docs/api/java/lang/Class.html

This entry refers also to JLS 15.8.2 explaining the class literals (
http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#251530
):

"A class literal is an expression consisting of the name of a class,
interface, array, or primitive type followed by a `.' and the token class.
The type of a class literal is Class. It evaluates to the Class object for
the named type (or for void) as defined by the defining class loader of the
class of the current instance."

Hope that helps!


Cheers,
Stefan


On Thu, Jul 28, 2011 at 2:24 PM, Hani  wrote:

> Hi All,
>
> Can someone explain about the usage of ClassName.class?And I couldn't
> find any summary on .class(in Object class) in java api
>
> Thanks,
> Hani
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en