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
-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
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
-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