[jboss-user] [JBossWS] - Re: problem calling webservice from client

sashaxiv do-not-reply at jboss.com
Thu Jun 7 05:01:56 EDT 2007


i tried to not throw exceptions to see what happens and now i have the same
problem as when i used axis.
javax.xml.ws.WebServiceException: HTTP Status-Code 405: HTTP method POST is not supported by this URL
  | 


this is what i do in the client:


  | URL wsdlURL = null;
  | 			try {
  | 				wsdlURL = new URL("http://127.0.0.1:8080/SesionSessionBeanService/SesionSessionBean?wsdl");
  | 			} catch (MalformedURLException e1) {
  | 				// TODO Auto-generated catch block
  | 				e1.printStackTrace();
  | 			}
  | 			QName serviceName = new QName("http://localhost:8080/jbossws/services/Sesion", "LoginService");
  | 			Service service = Service.create(wsdlURL, serviceName);
  | 			SesionEndPointInterface 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, "http://localhost:8080/jbossws/services/Sesion/SesionSessionBean");
  | 			reqContext.put(BindingProvider.USERNAME_PROPERTY, "kermit");
  | 			reqContext.put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
  | 			
  | 			try{
  | //				System.out.println("Conectando con... " + DataConexion.getServer() + ": " + DataConexion.getServerPort());
  | 				FicheroLog.writeIncidencia("Conectando con... " + DataConexion.getServer() + ": " + DataConexion.getServerPort());
  | 		
  | 				loginVO = sesionSession.loginUsuario(idEmpresa, login, password, session);
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052009#4052009

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052009



More information about the jboss-user mailing list