Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Outbound SSO issue with Axis2
Hi,
We are migrating from Axis1 to Axis2.
In Axis1, We were getting the Authorization header from the Netsuite SSO Verification URL and then setting the same header in the message context and that worked perfectly for use.
However now we are migrating to Axis2, and we don't have access to message Context object in Axis2. setting the http header property in the option object doesn't authenticate the user. Below is the code snippet:
stub._getServiceClient().getOptions().setProperty(HTTPConstants.REQUEST_HEADERS, httpheaders);
httpheaders object is retrived from the Netsuite SSO verification url after successfully establishing the connection.
Even if the authentication header is set properly in the options object, we still get invalidSessionFault exceptoin.