Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

EJB3.0 Web Service RMI problem

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Let's continue this discussion in your other thread here
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic