Thanks, I looked at the BankClient Example. Even in my case it works fine for an Axis2Service - Axis2Client combination. When my client is WebSphere based Web service client, the Exception class that gets generated is different and I get a classCastException.
Thanks Siva -----Original Message----- From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 4:53 PM To: [email protected] Subject: Re: Query on WSDL:Faults Can you take the latest nightly and there should be an example on fault handling inside the sample folder of std release. (Thanks William for contributing this) -- Chinthaka Sivaramakrishnan Rajamani wrote: > > > > > Hi , > > > > My WSDL document has following faults declared: > > > > </ xs:element > > > < xs:element name = "getShreddingVisitProfileCount_fault" > > > < xs:complexType > > > < xs:sequence > > > < xs:element name = "getShreddingVisitProfileCount_fault" type = > "xs:string" > > > </ xs:element > > > </ xs:sequence > > > </ xs:complexType > > > </ xs:element > > > < xs:element name = "getShreddingVisitProfile_fault" > > > < xs:complexType > > > < xs:sequence > > > < xs:element name = "getShreddingVisitProfile_fault" type = "xs:string" > > > </ xs:element > > > </ xs:sequence > > > </ xs:complexType > > > </ xs:element > > > > > I am deploying my service as an Axis2 Archive on Tomcat server. My > Webservice client is a Web Sphere portal server. When I generate an > Exception and try getting the fault string on the client side, I get a > ClassCastException. I happen to see that the Exception class name as > well as the super classes differ on the server side and the client side > > This is how it is on the server side > > > > * public * * static * * class * GetShreddingVisitProfile_faultException > > * extends * java.rmi.RemoteException { > > * private * > com.ironmtn.awarews.service.shredding.GetShreddingVisitProfileFaultDocum ent > faultMessage ; > > > > * public * * void * setFaultMessage( > > > com.ironmtn.awarews.service.shredding.GetShreddingVisitProfileFaultDocum ent > msg) { > > faultMessage = msg; > > } > > > > * public * > com.ironmtn.awarews.service.shredding.GetShreddingVisitProfileFaultDocum ent > getFaultMessage() { > > * return * faultMessage ; > > } > > } > > > > Please let me know if I am missing something or is It advisable to use > javax.xml.soap.SOAPFaultException and how to use it in Axis2. > > > > Thanks > > Siva Rajamani > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
