wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Statefull jax-ws services does not supported #605

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The package has the ability to call Soap methods using the following commands

1) loadWSDL ...
2) Service.callOperation ...

This is enought for the ordinary stateless web service calls but is not enought 
for the statefull jax-ws services.The only thing we need is the WSDL file.

In the wide known example/reference on the following link 
http://jax-ws.java.net/nonav/2.1.3/docs/statefulWebservice.html
there are two web services. The Bank which is the stateless web service and 
BankAccount which is the statefull web service.

The first one is the starting point in order to get the End-Point-Reference 
(W3CEndpointReference) of the other the stateless one using the 
login(accountId) method.Using this reference we get the specific statefull 
instance of BankAccount for this <accountId>.  

If we use loadWSDL of the statefull Web Service we have the ability to call the 
login(accountId) method and get the EndPointReference of BankAccount Web 
Service. But how we can use from SMARTGWT client side this End-Point-Reference 
(of the specific BankAccount the statefull one)?

If we use the WSDL file of BankAccount we will not use the specific statefull 
instance.

In a java client the statefull call could be the following

Bank bank = new BankService().getBankPort();
BankAccount service = new BankAccountService();

// obtain two book references
BankAccount bankAccount1 = service.getPort(bank.login(1,2),BankAccount.class);
BankAccount bankAccount2 = service.getPort(bank.login(3,4),BankAccount.class);

//you'll see that two proxies do represent two 
//different server objects
bankAccount1.deposit(25);
bankAccount2.deposit(35);

Is there the ability to do something similar using SmartGWT?
Is there the possibility to add the statefull functionality on smartgwt?

Original issue reported on code.google.com by jhnarb...@gmail.com on 13 Jul 2011 at 1:16

GoogleCodeExporter commented 9 years ago
Exactly the same problem as the last time you filed this issue:

http://code.google.com/p/smartgwt/issues/detail?id=601

If you think there's an operation that cannot be invoked via the WSDL system, 
show the target WSDL and describe the problem without talking about how the 
WSDL service is implemented.

Also, do not file issues here until you are reporting something that has been 
confirmed as a bug and where you have a runnable, minimal test case.  Anything 
else should be posted to the forums (forums.smartclient.com).

Marking Invalid (again) for now.

Original comment by smartgwt...@gmail.com on 13 Jul 2011 at 5:11