Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WARN [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for
- {http://webService.algunDominio.app/}WSLicenciaServService#]
- {http://webService.algunDominio.app/}saludo has thrown exception, unwinding now:
- org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element
- (uri:"http://webService.algunDominio.app", local:"name"). Expected elements are (none)
- Caused by:[javax.xml.bind.UnmarshalException: unexpected element (uri:"http://webService.algunDominio.app", local:"name"). Expected elements are (none)]
- package app.algunDominio.webService;
- import javax.jws.WebMethod;
- import javax.jws.WebService;
- import javax.jws.soap.SOAPBinding;
- import org.apache.commons.logging.Log;
- import org.apache.commons.logging.LogFactory;
- @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
- use=SOAPBinding.Use.LITERAL,
- parameterStyle=SOAPBinding.ParameterStyle.BARE)
- @WebService()
- public class WSLicenciaServ{
- private static Log LOG = LogFactory.getLog(WSLicenciaServ.class);
- @WebMethod(operationName="saludo")
- public static String saludo(String name) throws Exception{
- return "saludo "+name;
- }
- }
- public class Principal {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- try {
- String res= new WSLicenciaServProxy().saludo("ss");
- } catch (RemoteException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement