• Dudas con WebService

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #12832  by saulhidalgo
 
Buenos dias.

Estoy haciendo un WebServices con Netbeans y Tomcat. Deseo enviar una lista de objectos que yo cree y tengo en el cliente al servidor.
Lo que hice fue lo siguiente:
Cree un metodo que recibe una lista de objetos tipo "Object". Desde el cliente, los objectos personalizados los convierto a "Object" antes de enviarlos.
Copie las clases del cliente en el servidor webservice.
Utilice el wsimport para tener la libreria que viene del webservice.
Cuanto invoco desde el cliente al servicio me devuelve la siguiente exception, "jaxbexception nor any of its super class is known to this context". Intente agregar el @XmlSeeAlso(MyClass.class) a la clase del webservice (En el servidor) pero no funciono.
Que recomiendan que debo hacer? O cual tutorial de WebServices me recomiendas para poder hacer esto?

Tambien intente con RMI. Funciona perfecto en red local, pero no a traves de Internet. Lei que era porque tomaba un puerto al azar cada vez que se conecta, pero reescribi ese metodo y siguio dando el mismo error. Conection refused in 127.0.0.1 . Siendo la ip lo que coloco en el Name.rebind, en el servidor.

Agradeceria toda la ayuda que me pueda dar en eso.

Saludos.
Saul
 #12935  by pavila
 
Esta pregunta está relacionada con OpenKM?

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.