All the required jar files for the server code (webservice) to work properly
-----Original Message----- From: shrabank [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 7:16 PM To: [email protected] Subject: Re: Getting Invocation exception while calling my service Hi , I have all the jar files set in my classpath as well as server side. I am building it through eclipse and client and service are in the same machine.That means they are taking the same jar files and classpath. Can you specify what jar files are u talking about when u say that. Srinath K wrote: > Check whether you have all the required jar files in the classpath at > the server end > > -----Original Message----- > From: shrabank [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 29, 2006 6:56 PM > To: [email protected] > Subject: Getting Invocation exception while calling my service > > > Hi , > > I am trying to access my web service from the servlet and the > servlet > > is acting as my client. But while i am trying to call my service > through > > that servlet its throwing me java lang Invocation exception. > > I am sending my snippet of code on how i am accessing my web > > service from the servlet as client. > > String uri="http://com.trilliant.service"; > String servicename="SearchService"; > try{ > ServiceFactory serviceFactory=(ServiceFactory) > > ServiceFactory.newInstance(); > Service service=(Service) serviceFactory.createService(new > > QName(uri,servicename)); > TypeMappingRegistry regiMapping=(TypeMappingRegistry) > > service.getTypeMappingRegistry(); > TypeMapping map=(TypeMapping) > > regiMapping.getDefaultTypeMapping(); > QName deviceQName= new > > QName("http://com.trilliant.service","Device"); > map.register(Device.class, deviceQName, new > > BeanSerializerFactory(Device.class, deviceQName), new > > BeanDeserializerFactory(Device.class, deviceQName)); > Call call = (Call) service.createCall(); > call.setTargetEndpointAddress(new > > URL("http://localhost:8080/axis/services/search")); > call.setProperty(Call.SESSION_MAINTAIN_PROPERTY, > Boolean.TRUE); > call.setProperty(Call.SOAPACTION_USE_PROPERTY, > Boolean.TRUE); > call.setProperty(Call.SOAPACTION_URI_PROPERTY, > > "http://com.trilliant.service"); > call.setOperationName( new QName(uri, "searchDeviceById") ); > dev = (com.trilliant.clientcode.Device) call.invoke(new > > Object[]{ deviceId }); > > Please help me in resolving this problem or tell me if i have made any > > mistake in the code. > Looking out for help from somebody so that i can proceed. Thanks in > advance. Regards > > > > > This e-mail and any files transmitted with it are for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If you are not the intended recipient or received it in > error, please contact the sender by reply e-mail and destroy all > copies of the original message. Please do not copy it for any purpose > or disclose its contents. > > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights > Reserved > > > The information contained in, or attached to, this e-mail, contains > confidential information and is intended solely for the use of the > individual or entity to whom they are addressed and is subject to > legal privilege. If you have received this e-mail in error you should > notify the sender immediately by reply e-mail, delete the message from > your system and notify your system manager. Please do not copy it for > any purpose, or disclose its contents to any other person. The views > or opinions presented in this e-mail are solely those of the author > and do not necessarily represent those of the company. The recipient > should check this e-mail and any attachments for the presence of > viruses. The company accepts no liability for any damage caused, > directly or indirectly, by any virus transmitted in this email. > > www.aztecsoft.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents. Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email. www.aztecsoft.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
