You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the following code in your ksoap envelope:- soapEnvelope.headerOut = new Element[1]; soapEnvelope.headerOut[0] = buildAuthHeader();
Add this function that will create header elements
private Element buildAuthHeader() {
Element h = new Element().createElement(NAMESPACE, "AuthHeader");
Element username = new Element().createElement(NAMESPACE, "user");
username.addChild(Node.TEXT, USERNAME);
h.addChild(Node.ELEMENT, username);
Element pass = new Element().createElement(NAMESPACE, "pass");
pass.addChild(Node.TEXT, PASSWORD);
h.addChild(Node.ELEMENT, pass);
Hello,
I want to set WS-Addressing in header how I set it?
The text was updated successfully, but these errors were encountered: