Problema Invocation Unit

11 Dec '12, 09:52 AM
15,903 Views
No Forum Badges

Ciao volevo chiedervi un aiuto, ho un problema con WR, ho un invocation unit che richiama un servizio e un metodo che mi ritorna dei valori che popolano un menù a tendina, però ho questo errore:
ERROR [http-60477-1] (com.ab.ah.scad.units.custom.serviceinvocationunit.ServiceInvocationUnit_$$_javassist_93:201) - [3E0896180EFAF9D5BB2C3D0E0E66B096][miu2p][opm27o][siu46o]Cannot execute ServiceInvocationUnit because the the operation [listAllWarehouses] ([Ljava.lang.Class;@69c31df1)on the service [warehousePresentationMaintenanceService] doesn't exist or is not accessible java.lang.Exception: Cannot execute ServiceInvocationUnit because the the operation [listAllWarehouses] ([Ljava.lang.Class;@69c31df1)on the service [warehousePresentationMaintenanceService] doesn't exist or is not accessible at com.ab.ah.scad.units.custom.serviceinvocationunit.ServiceInvocationUnit.getMethodForOperation(ServiceInvocationUnit.java:374) Insieme ad un mio collega, le abbiamo provate tutte ma veramente non riusciamo a risolvere il problema, vi assicuro già da prima che abbiamo controllato più volte il servizio ed il nome del metodo e tutto è scritto bene, abbiamo anche provato a simulare una richiesta con soapUI ed il servizio funziona correttamente, da WebRatio però no, prego HELP ME!!! Chi genera da WR la richiesta Soap? Non sappiamo più cosa fareeeeee!!!

 
x 0
Follow
Answer Answer at this question and get points!
No Forum Badges

Ciao,

l'eccezione fa riferimento alla classe ""ServiceInvocationUnit"" (linea 374) della custom unit. Potresti riportare il codice del metodo che restituisce l'errore ? Si potrebbe inoltre provare a debuggare il codice della unit, seguendo le indicazioni di questo articolo sul WebRatio Wiki.

C'è un esigenza particolare riferita all'utilizzo di una custom unit per invocare un Web Service ? Con WebRatio si può invocare un Web Service utilizzando la Request Response Unit, oppure la One Way Unit:

  • La Request Response Unit consente di invocare un Web Service e di gestire il messaggio di risposta.
  • La One Way Unit viene invece utilizzata quando si invoca un Web Service e non occorre considerare il messaggio di risposta.

Per maggiori riferimenti/esempi sui Web Service:

  • Getting started with Web Services
  • Invoking a Web Service
  • Using a Web Service Provider

Hello,

the exception refers to the ""ServiceInvocationUnit"" class (line 374) of the custom unit. Could you paste the code of the method which generates the error ? You can also try to debug the code of the custom unit, by following this Wiki article.

Is there a specific reason why you are using a custom unit for invoking a Web Service ? With WebRatio, you can invoke a Web Service through the Request Response Unit, or the One Way Unit.

  • The Request Response Unit is used to invoke a Web service and to manage the corresponding response message.
  • The One Way Unit is used to invoke a Web service, ignoring any response message.

For more details/examples about the Web Service:

  • Getting started with Web Services
  • Invoking a Web Service
  • Using a Web Service Provider

   
x 0
Answer at this question and get points!

Related questions

Ayuda Simple List Component Layout personalizado Button to go on another page Criptare dati sensibili nel database CSV Component with utf8 encoding Custom components Custom descriptors Custom Plug-in Custom Time Unit Custom Unit and AJAX / SOAP Custom Unit: Difficult example in Guide ... any suggestions? Data flow from a page which is not visible anymore Dynamic link labelling for Custom Unit Encoding Confirm Dialog file analysis then update MySQL database Google Map Unit Guardar Saltos de LINEA How can I add a credit card payment gateway or integrate paypal in my web app logic? how can i open a pdf file using download dialog How complex can Custom Unit output be? How to run the example from Custom Unit Guide? Is there any custom unit store or repository? Do you create/sell custom units? java.lang.NullPointerException More Custom Unit questions: example of Content and Operation Unit? Need help with Landmark Overlays for Google Map Unit. Personalizzazione del login component Problems with Custom components: Can't get values from output parameters on ok flow. "Run Now" on a job scheduled to run later Selezione sul giorno "Events Planning" Status ProcessInstance and activityInstance in spanish Stored procedure component Twitter Unit - Get Geo location of twitt Usage of the Gantt Unit ¿Visor de imágenes y reproductor de video para la versión 7.2? Image viewer and video player for version 7.2? Web project without initial login form - how to create custom logins? Webratio Add-ons no permite login Webratio don't recognize JSON library WebRatio Platform 7.2 Community Cloud Edition