Bookmark Topic Watch Topic
  • New Topic

EJB3.0 Web Service RMI problem

 
Praveena Chordia
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am implementing EJB3 web service .
IDE is eclipse
Application Server is JBoss

Server side is doing properly ,when I am running my following client

public class Client {
public static void main(String[] args) throws Exception {
System.out.println("Starting Test Client");
URL url = new URL(
"http://localhost:8080/imaging/ImagingServiceBean?wsdl");
QName qname = new QName("http://ejb.iba.by/jaws",
"ImagingServiceService");

System.out.println("Creating a service Using: \n\t" + url + " \n\tand "
+ qname);
ServiceFactory factory = ServiceFactory.newInstance();
Service remote = factory.createService(url, qname);

System.out.println("Obtaining reference to a proxy object");
ImagingService proxy = (ImagingService) remote
.getPort(ImagingService.class);
System.out.println("Accessed local proxy: " + proxy);

String string = "John";
System.out.println("Sending: " + string);

System.out.println("Receiving: " + proxy.echo("John"));
}
}

in the statement
ImagingService proxy = (ImagingService) remote.getPort(ImagingService.class);

I am getting follwing exception.........
Starting Test Client
Creating a service Using:
http://localhost:8080/imaging/ImagingServiceBean?wsdl
and {http://ejb.iba.by/jaws}ImagingServiceService
Obtaining reference to a proxy object
Exception in thread "main" java.lang.UnsupportedOperationException: Cannot find operation: toString - none defined
at org.apache.axis.client.Call.setOperation(Call.java:1252)
at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:187)
at $Proxy0.toString(Unknown Source)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at by.iba.client.Client.main(Client.java:27)

please help me in this
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's continue this discussion in your other thread here
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!