Bonjour,
j'essaie de deployer un webservice, alors que tout a l'air bien parti, une page index.jsp est la pour tester rapidement les fonctionnalites du web service. Et c'est a ce moment que rien ne va plus:
J'ai une exception a l'appel de personCurrentLocationQuery. Donc here is the code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 try { LocationQuery service = new LocationQuery(); PortTypeLocationQuery port = service.getILocationQuery(); // TODO initialize WS operation arguments here PersonCurrentLocationQueryRequest request_1 = new PersonCurrentLocationQueryRequest(); out.println(request_1); // TODO process result here PersonCurrentLocationQueryResponse result = port.personCurrentLocationQuery(request_1); out.println("Result = "+result); } catch (Exception ex) { // TODO handle custom exceptions here ex.printStackTrace(); }
Donc c'est ici (service.getAuthorizationWServicePort()
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 @WebServiceRef(wsdlLocation = "WEB-INF/wsdl/Authorization.wsdl") private AuthorizationWService service; public eu.mpower.framework.sensor.locationquery.PersonCurrentLocationQueryResponse personCurrentLocationQuery(eu.mpower.framework.sensor.locationquery.PersonCurrentLocationQueryRequest request) { PersonCurrentLocationQueryResponse response = new locationquery.PersonCurrentLocationQueryResponse(); Status status = new Status(); try { // Call Web Service Operation PortTypeAuthorizationWService port = service.getAuthorizationWServicePort();que survient le probleme...J'ai une exception pointer service = null. Donc ce qui veut dire que mon @WebServiceRef(wsdlLocation = "WEB-INF/wsdl/Authorization.wsdl") ne marche pas, j'ai aussi essayé @WebServiceRef(wsdlLocation = http://localhost:8080/MPOWER-Securit...nWService?wsdl)
Bon voila j'ai passe ma journee entiere a trouver le probleme, j'ai trouver ca au mieux mais la personne ne dis pas vraiment ou est le probleme:http://www.coderanch.com/t/491830/We...interException...
Merci de m'apporter votre soutien.
Cordialement,
Babas007
Partager