[jboss-user] [JBossWS] - Re: problem calling webservice from client
sashaxiv
do-not-reply at jboss.com
Thu Jun 7 03:32:27 EDT 2007
Sorry Thomas. Finally i talked to the client developers and now i can use jbossws in the client side.
The new SessionFacadeWSImpl() would be something like this?
| System.out.println(" -0000001 SFWSI - Kike --->Creando Servicio");
| URL wsdlURL = new URL("http://127.0.0.1:8080/SesionSessionBeanService/SesionSessionBean?wsdl");
| QName serviceName = new QName("http://localhost:8080/jbossws/services/Sesion", "LoginService");
| Service service = Service.create(wsdlURL, serviceName);
| sesionSession = (SesionEndPointInterface)service.getPort(SesionEndPointInterface.class);
| System.out.println("0000002 SFWSI Kike --->Creado Servicio , sessionSession ->" + sesionSession.toString() );
| System.out.println("0000002 SFWSI Kike --->Creado Servicio , service ->" + service.toString() );
|
| BindingProvider bindingProvider = (BindingProvider)sesionSession;
| Map<String, Object> reqContext = bindingProvider.getRequestContext();
| reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, TARGET_ENDPOINT_ADDRESS);
| reqContext.put(BindingProvider.USERNAME_PROPERTY, "kermit");
| reqContext.put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
|
after it , cain i call the login service from sessionSesion?
which class hava i to copy in the client? Only the endpointInterface?
Thanks Thomas
Regards kike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051987#4051987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051987
More information about the jboss-user
mailing list