All:
I am beating my head against this and need an assist... we are trying to
ass some authentication information in our headers and can not seem to get
past creating the client the following code is excerpted from our test
client. This code dies at line 2 but it lets you see what we are trying to
do. Can anyone either help me determine why it dies there OR another
approach we could take?? If we spin our wheels much longer I am likely to
burst into flame.
SOAPMessageContext ctx = call.getMessageContext();
//dies here as ctv.getMessage() returns null pointer
SOAPMessage msg = ctx.getMessage();
SOAPPart sp = msg.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
Name name = se.createName("AuthenticationCredentials");
SOAPHeaderElement he =new SOAPHeaderElement(name);
he.setActor("AuthenticationHandler");
SOAPElement soapElement =
he.addChildElement(se.createName("ID"));
soapElement.addTextNode("ShouldbeID");
soapElement = he.addChildElement(se.createName("Password"));
soapElement.addTextNode("ShouldbePWD");
call.addHeader(he);
Craig Fisher
InterWEST Technology Group, Inc.
http://www.itg-ak.com/
[EMAIL PROTECTED]
907-301-1010