Re: [Axis2] Creating Axis2 SOAP Header

2007-05-14 Thread Daniel Herbison
Thank you! That has solved the runtime exception. Eran Chinthaka wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Do this. > > instead of serviceClient.addHeader(header) > > put serviceClient.addHeader(basicCredentials). > > The addHeader method can not accept an instance of

Re: [Axis2] Creating Axis2 SOAP Header

2007-05-11 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Do this. instead of serviceClient.addHeader(header) put serviceClient.addHeader(basicCredentials). The addHeader method can not accept an instance of Header class (arghh !! I better check this inside the code) If this doesn't solve your problem, I

Re: [Axis2] Creating Axis2 SOAP Header

2007-05-11 Thread Daniel Herbison
Thank you so far for your help! The code is getting to the call (invokeBlocking) but is failing with this exception: Exception in thread "main" org.apache.axiom.soap.SOAPProcessingException: Expecting an implementation of SOAP Envelope as the parent. But received some other implementation Could

Re: [Axis2] Creating Axis2 SOAP Header

2007-05-10 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, the first advice is *never* use impl classes inside Axiom. Always use the factories. The reason is we have multiple implementations of them. To correct your problem, the easiest way is to create an OMElement rather than a SOAPHeaderBlock and call