Subject: lotus.domino.websvc.client “extends to” lotus.domino.axis.message ?
Hi Craig, I have the same issue – it seems there is no way to get at this Stub class:
// Method descriptor #133 (Llotus/domino/axis/message/SOAPHeaderElement;)V
// Stack: 2, Locals: 2
void setHeader(lotus.domino.axis.message.SOAPHeaderElement arg0);
it is found in the Outline of the Eclipse Java perspective if you search it down (Shift-Ctrl-T).
This is like a typical block from my Web Service Consumer Import :
import lotus.domino.axis.message.*;
public java.lang.String myFavoriteImportedWSDLFunction(java.lang.String someString) throws java.rmi.RemoteException {
lotus.domino.websvc.client.Call _call = createCall("myFavoriteImportedWSDLFunction");
java.lang.Object _resp = _call.invoke(new java.lang.Object[] { someString});
return (java.lang.String) _call.convert(_resp, java.lang.String.class);
}
All is well as long as I don’t care about headers.
So we came up with the idea of inserting the header change while it is available:
public java.lang.String myFavoriteImportedWSDLFunction (java.lang.String someString) throws java.rmi.RemoteException {
lotus.domino.websvc.client.Call _call = createCall("myFavoriteImportedWSDLFunction ");
try {
SOAPHeaderElement pElement;
pElement= new SOAPHeaderElement("urn","someParentHeaderField");
SOAPHeaderElement cElement;
cElement= new SOAPHeaderElement("urn","someChildHeaderField ");
cElement.setValue(TheStringValueToBePlacedInHeader);
pElement.addChild(cElement);
_call.addHeader(pElement);
}catch(Exception e){
System.out.println("dumpTest");
}
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {userName});
return (java.lang.String) _call.convert(_resp, java.lang.String.class);
}
It seems there is no compatible class for modification of the header fields.
I hope I am just missing something and can get this figured out - there seems to be a lot of concern by others in this area.