Advertisement
Guest User

Untitled

a guest
Apr 15th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. WARN [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for
  2. {http://webService.algunDominio.app/}WSLicenciaServService#]
  3. {http://webService.algunDominio.app/}saludo has thrown exception, unwinding now:
  4. org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element
  5. (uri:"http://webService.algunDominio.app", local:"name"). Expected elements are (none)
  6. Caused by:[javax.xml.bind.UnmarshalException: unexpected element (uri:"http://webService.algunDominio.app", local:"name"). Expected elements are (none)]
  7.  
  8. package app.algunDominio.webService;
  9.  
  10. import javax.jws.WebMethod;
  11. import javax.jws.WebService;
  12. import javax.jws.soap.SOAPBinding;
  13.  
  14. import org.apache.commons.logging.Log;
  15. import org.apache.commons.logging.LogFactory;
  16.  
  17.  
  18.  
  19. @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
  20. use=SOAPBinding.Use.LITERAL,
  21. parameterStyle=SOAPBinding.ParameterStyle.BARE)
  22. @WebService()
  23.  
  24. public class WSLicenciaServ{
  25. private static Log LOG = LogFactory.getLog(WSLicenciaServ.class);
  26.  
  27.  
  28. @WebMethod(operationName="saludo")
  29. public static String saludo(String name) throws Exception{
  30. return "saludo "+name;
  31. }
  32.  
  33.  
  34. }
  35.  
  36. public class Principal {
  37.  
  38. public static void main(String[] args) {
  39. // TODO Auto-generated method stub
  40. try {
  41. String res= new WSLicenciaServProxy().saludo("ss");
  42. } catch (RemoteException e) {
  43. // TODO Auto-generated catch block
  44. e.printStackTrace();
  45. }
  46. }
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement