JAX-WS Client

M

Mize-ze

Hello,
I have a webservice up and running on a JBoss 4.2 AS .

I am trying to build a simple client to invoke a method on the
webservice,

//get the generated service implementation (My implementing class is
called InComing)
// iInComingService is a generated class (used wsimport)

service = new InComingService();

// retrieving the port of the webservice - causes "InComing is not an
interface!!"
inComing port = (InComing)service.getInComingPort();

//Calling the method
System.out.print(port.loadTransactions(""));



When trying to get the port I recieve the following exception:

Exception in thread "main" java.lang.IllegalArgumentException:
com.retalix.insync.storepi.test.InComing is not an interface
at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.buildEndpointIFProxy(Unknown
Source)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(Unknown
Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown
Source)
at javax.xml.ws.Service.getPort(Unknown Source)
at
com.retalix.insync.storepi.test.InComingService.getInComingPort(InComingService.java:
50)
at
com.retalix.insync.storepi.client2.SimpleClient.run(SimpleClient.java:
22)
at
com.retalix.insync.storepi.client2.SimpleClient.main(SimpleClient.java:
15)

any clues? as far as I understood I don't have to retrieve an interface
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top