users@glassfish.java.net

Re: RE: Invalid wsdl request

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 May 2010 06:06:12 PDT

Hello Martin,
The following is my code.

-H

[u]EchoBean.java
[/u]
package model;

import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import services.Echo;

@WebService(serviceName="EchoService")
@Stateless()
public class EchoBean implements Echo {
public EchoBean(){}
@WebMethod(operationName="printEcho")
public String printEcho(){
return "WebServices Echo ";
}
@WebMethod(operationName = "printEchoStr")
public String printEcho(String str){
return ("In PrintEcho( String " + str +" )" );
}
}
[u]
Echo.java[/u]

package services;

import java.rmi.Remote;
import javax.jws.WebService;

@WebService
public interface Echo extends Remote{
public String printEcho();
public String printEcho(String str);
}
[Message sent by forum member 'h_p']

http://forums.java.net/jive/thread.jspa?messageID=469201