Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Axis 1.4 - how to get InternalID of customer from login response
As per documentation with Axis 1.1 we get InternalId of customer in login response in following way:
String userid = getHeader(port, "sessionInfo"); public static String getHeader(NetSuitePortType port, String headerName) { com.netsuite.webservices.platform.NetSuiteBindingStub stub = (com.netsuite.webservices.platform.NetSuiteBindingStub) port; SOAPHeaderElement [] headers = stub.getResponseHeaders(); for (int i=0; i< headers.length; i++) { SOAPHeaderElement header = headers[i]; if (header.getName().equals(headerName)) { Iterator childElements = header.getChildElements(); while (childElements.hasNext()) { SOAPElement el = (SOAPElement) childElements.next(); return el.getValue(); } } } return null; } Any idea that how we can get that with Axis 1.4.