Samb1985
13-05-2010, 10:12
Su Eclipse ho creato un Web Service (TestWs) standard di prova con un metodo pubblico greet(string), ho fatto il deploy del WS sul AS in locale JBoss.
Ora vorrei creare un client java che "consumi" il Ws invocando il metodo greet.
Utilizzando il wizard di Eclipse (fornendo la wsdl), ha generato in automatico le seguenti classi:
- TestWs.java (interface TestWs extends java.rmi.Remote)
- TestWsBindingStub.java ( TestWsBindingStub extends org.apache.axis.client.Stub implements TestWs)
- TestWsProxy.java (TestWsProxy implements TestWs)
- TestWsService.java (interface TestWsService extends javax.xml.rpc.Service)
- TestWsServiceLocator.java (TestWsServiceLocator extends org.apache.axis.client.Service implements TestWsService)
Cosa deve contenere il main per testare il funzionamento del WS utilizzando un client java ?
Ora vorrei creare un client java che "consumi" il Ws invocando il metodo greet.
Utilizzando il wizard di Eclipse (fornendo la wsdl), ha generato in automatico le seguenti classi:
- TestWs.java (interface TestWs extends java.rmi.Remote)
- TestWsBindingStub.java ( TestWsBindingStub extends org.apache.axis.client.Stub implements TestWs)
- TestWsProxy.java (TestWsProxy implements TestWs)
- TestWsService.java (interface TestWsService extends javax.xml.rpc.Service)
- TestWsServiceLocator.java (TestWsServiceLocator extends org.apache.axis.client.Service implements TestWsService)
Cosa deve contenere il main per testare il funzionamento del WS utilizzando un client java ?