I'm dipping my toe into async web services calls and have run into a snag. I'm performing a search with the following call:
<soap:Envelope xsl:version="1.0" xmlns:tranBank="urn:bank_2008_1.transactions.webservices.netsuite.com" xmlns:generalComm="urn:communication_2008_1.general.webservices.netsuite.com" xmlns:platformFaultTyp="urn:types.faults_2008_1.platform.webservices.netsuite.com" xmlns:actSched="urn:scheduling_2008_1.activities.webservices.netsuite.com" xmlns:setupCustomTyp="urn:types.customization_2008_1.setup.webservices.netsuite.com" xmlns:listAcctTyp="urn:types.accounting_2008_1.lists.webservices.netsuite.com" xmlns:tranSales="urn:sales_2008_1.transactions.webservices.netsuite.com" xmlns:tranPurch="urn:purchases_2008_1.transactions.webservices.netsuite.com" xmlns:listMkt="urn:marketing_2008_1.lists.webservices.netsuite.com" xmlns:listSiteTyp="urn:types.website_2008_1.lists.webservices.netsuite.com" xmlns:listEmpTyp="urn:types.employees_2008_1.lists.webservices.netsuite.com" xmlns:generalCommTyp="urn:types.communication_2008_1.general.webservices.netsuite.com" xmlns:listRel="urn:relationships_2008_1.lists.webservices.netsuite.com" xmlns:actSchedTyp="urn:types.scheduling_2008_1.activities.webservices.netsuite.com" xmlns:tranBankTyp="urn:types.bank_2008_1.transactions.webservices.netsuite.com" xmlns:platformCore="urn:core_2008_1.platform.webservices.netsuite.com" xmlns:listSupport="urn:support_2008_1.lists.webservices.netsuite.com" xmlns:tranGeneral="urn:general_2008_1.transactions.webservices.netsuite.com" xmlns:tranCustTyp="urn:types.customers_2008_1.transactions.webservices.netsuite.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:platformCommon="urn:common_2008_1.platform.webservices.netsuite.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:platformMsgs="urn:messages_2008_1.platform.webservices.netsuite.com" xmlns:tranInvt="urn:inventory_2008_1.transactions.webservices.netsuite.com" xmlns:listRelTyp="urn:types.relationships_2008_1.lists.webservices.netsuite.com" xmlns:tranEmp="urn:employees_2008_1.transactions.webservices.netsuite.com" xmlns:listSite="urn:website_2008_1.lists.webservices.netsuite.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tranSalesTyp="urn:types.sales_2008_1.transactions.webservices.netsuite.com" xmlns:platformCommonTyp="urn:types.common_2008_1.platform.webservices.netsuite.com" xmlns:NetSuiteService="urn:platform_2008_1.webservices.netsuite.com" xmlns:listSupportTyp="urn:types.support_2008_1.lists.webservices.netsuite.com" xmlns:platformCoreTyp="urn:types.core_2008_1.platform.webservices.netsuite.com" xmlns:docFileCabTyp="urn:types.filecabinet_2008_1.documents.webservices.netsuite.com" xmlns:listMktTyp="urn:types.marketing_2008_1.lists.webservices.netsuite.com" xmlns:listAcct="urn:accounting_2008_1.lists.webservices.netsuite.com" xmlns:platformFaults="urn:faults_2008_1.platform.webservices.netsuite.com" xmlns:tranInvtTyp="urn:types.inventory_2008_1.transactions.webservices.netsuite.com" xmlns:tranCust="urn:customers_2008_1.transactions.webservices.netsuite.com" xmlns:setupCustom="urn:customization_2008_1.setup.webservices.netsuite.com" xmlns:listEmp="urn:employees_2008_1.lists.webservices.netsuite.com" xmlns:docFileCab="urn:filecabinet_2008_1.documents.webservices.netsuite.com" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tranPurchTyp="urn:types.purchases_2008_1.transactions.webservices.netsuite.com"> <soap:Header> </soap:Header> <soap:Body> <platformMsgs:asyncSearch xsi:type="platformMsgs:AsyncSearchRequest"> <searchRecord xsi:type="platformCommon:CustomerSearchBasic"> <country operator="anyOf" xsi:type="platformCore:SearchEnumMultiSelectField"> <searchValue>_unitedStates</searchValue> </country> <dateCreated operator="within" xsi:type="platformCore:SearchDateField"> <searchValue>2006-01-01T12:00:00-07:00</searchValue> <searchValue2>2006-06-30T13:00:00-07:00</searchValue2> </dateCreated> <customFieldList xsi:type="platformCore:SearchCustomFieldList"> <customField operator="anyOf" internalId="custentity_cust_fsm" xsi:type="platformCore:SearchMultiSelectCustomField"> <searchValue typeId="employee" internalId="@NONE@" xsi:type="platformCore:ListOrRecordRef"> </searchValue> </customField> </customFieldList> </searchRecord> </platformMsgs:asyncSearch> </soap:Body> </soap:Envelope>
and get a job id of ASYNCWEBSERVICES_579197_092320081876629869267371356_f96741f6I wait until the status of this job reads "finished"; which happens with no problems after about 5 minutes.When I go to view the response I send the following request:<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:NetSuiteService="urn:platform_2008_1.webservices.netsuite.com" xmlns:platformCore="urn:core_2008_1.platform.webservices.netsuite.com" xmlns:platformCoreTyp="urn:types.core_2008_1.platform.webservices.netsuite.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:platformFaultTyp="urn:types.faults_2008_1.platform.webservices.netsuite.com" xmlns:platformFaults="urn:faults_2008_1.platform.webservices.netsuite.com" xmlns:platformMsgs="urn:messages_2008_1.platform.webservices.netsuite.com" xmlns:platformCommon="urn:common_2008_1.platform.webservices.netsuite.com" xmlns:platformCommonTyp="urn:types.common_2008_1.platform.webservices.netsuite.com" xmlns:actSched="urn:scheduling_2008_1.activities.webservices.netsuite.com" xmlns:actSchedTyp="urn:types.scheduling_2008_1.activities.webservices.netsuite.com" xmlns:generalComm="urn:communication_2008_1.general.webservices.netsuite.com" xmlns:generalCommTyp="urn:types.communication_2008_1.general.webservices.netsuite.com" xmlns:docFileCab="urn:filecabinet_2008_1.documents.webservices.netsuite.com" xmlns:docFileCabTyp="urn:types.filecabinet_2008_1.documents.webservices.netsuite.com" xmlns:listRel="urn:relationships_2008_1.lists.webservices.netsuite.com" xmlns:listRelTyp="urn:types.relationships_2008_1.lists.webservices.netsuite.com" xmlns:listSupport="urn:support_2008_1.lists.webservices.netsuite.com" xmlns:listSupportTyp="urn:types.support_2008_1.lists.webservices.netsuite.com" xmlns:listAcct="urn:accounting_2008_1.lists.webservices.netsuite.com" xmlns:listAcctTyp="urn:types.accounting_2008_1.lists.webservices.netsuite.com" xmlns:tranSales="urn:sales_2008_1.transactions.webservices.netsuite.com" xmlns:tranSalesTyp="urn:types.sales_2008_1.transactions.webservices.netsuite.com" xmlns:tranPurch="urn:purchases_2008_1.transactions.webservices.netsuite.com" xmlns:tranPurchTyp="urn:types.purchases_2008_1.transactions.webservices.netsuite.com" xmlns:tranCust="urn:customers_2008_1.transactions.webservices.netsuite.com" xmlns:tranCustTyp="urn:types.customers_2008_1.transactions.webservices.netsuite.com" xmlns:tranBank="urn:bank_2008_1.transactions.webservices.netsuite.com" xmlns:tranBankTyp="urn:types.bank_2008_1.transactions.webservices.netsuite.com" xmlns:tranInvt="urn:inventory_2008_1.transactions.webservices.netsuite.com" xmlns:tranInvtTyp="urn:types.inventory_2008_1.transactions.webservices.netsuite.com" xmlns:tranGeneral="urn:general_2008_1.transactions.webservices.netsuite.com" xmlns:setupCustom="urn:customization_2008_1.setup.webservices.netsuite.com" xmlns:setupCustomTyp="urn:types.customization_2008_1.setup.webservices.netsuite.com" xmlns:listEmp="urn:employees_2008_1.lists.webservices.netsuite.com" xmlns:listEmpTyp="urn:types.employees_2008_1.lists.webservices.netsuite.com" xmlns:listSite="urn:website_2008_1.lists.webservices.netsuite.com" xmlns:listSiteTyp="urn:types.website_2008_1.lists.webservices.netsuite.com" xmlns:tranEmp="urn:employees_2008_1.transactions.webservices.netsuite.com" xmlns:listMkt="urn:marketing_2008_1.lists.webservices.netsuite.com" xmlns:listMktTyp="urn:types.marketing_2008_1.lists.webservices.netsuite.com" > <soap:Header> </soap:Header><soap:Body> <platformMsgs:getAsyncResult xsi:type="platformMsgs:GetAsyncResultRequest"> <jobId>ASYNCWEBSERVICES_579197_092320081876629869267371356_f96741f6</jobId> <pageIndex>1</pageIndex> </platformMsgs:getAsyncResult> </soap:Body> </soap:Envelope>