My SOAP call returns null or empty response. I followed all steps from PTC white paper.
Here is my code for calling external SOAP service. I included first getXML snippet then createInfoTableFromDataShape then createInfoTableEntryFromDataShape then addRow()
var params = {
proxyScheme: undefined /* STRING */,
headers: undefined /* JSON */,
ignoreSSLErrors: undefined /* BOOLEAN */,
useNTLM: undefined /* BOOLEAN */,
workstation: undefined /* STRING */,
useProxy: undefined /* BOOLEAN */,
withCookies: undefined /* BOOLEAN */,
proxyHost: undefined /* STRING */,
url: "http://www.webservicex.net/uszip.asmx/GetInfoByAreaCode?USAreaCode=209" /* STRING */,
timeout: undefined /* NUMBER */,
proxyPort: undefined /* INTEGER */,
password: undefined /* STRING */,
domain: undefined /* STRING */,
username: undefined /* STRING */
};
// result: XML
var xmlPage = Resources["ContentLoaderFunctions"].GetXML(params);
var params2 = {
infoTableName : "InfoTable",
dataShapeName : "AreaCode_SOAP"
};
// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(AreaCode_SOAP)
var result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params2);
for each(var item in xmlPage.channel.item){
// AreaCode_SOAP entry object
var newEntry = new Object();
newEntry.TIME_ZONE = item.TIME_ZONE; // STRING
newEntry.CITY = item.CITY; // STRING
newEntry.STATE = item.STATE; // STRING
newEntry.AREA_CODE = item.AREA_CODE; // STRING
result.AddRow(yourRowObjectHere);
}
My result is emty infotable. Can you please help me on this issue.

