NetSuite Case: 630935
Below is a snippet of vb.net code which works using WSDL v2.5 but does NOT work with WSDL v2.6.
Dim tranSearch As TransactionSearch = New TransactionSearch() tranSearch.basic = New TransactionSearchBasic() Dim TranId As SearchStringField = New SearchStringField() TranId.operator = SearchStringFieldOperator.is TranId.operatorSpecified = True TranId.searchValue = "18086" 'Sales Order Number tranSearch.basic.tranId = TranId Dim tranSearchResult As SearchResult Dim prefs As New SearchPreferences() _nsService.searchPreferences = prefs _nsService.searchPreferences.bodyFieldsOnly = False _nsService.searchPreferences.pageSize = 1000 _nsService.searchPreferences.pageSizeSpecified = True Try tranSearchResult = _nsService.search(tranSearch) ' Call the search webservice Catch ex As Exception MsgBox(ex.Message & ex.StackTrace) Finally End Try If tranSearchResult Is Nothing _ Or _nsService.extResponseOK(tranSearchResult) = False _ Or tranSearchResult.recordList.Length <> 1 _ Then 'Error code here Else Dim tempTran As SalesOrder = DirectCast(tranSearchResult.recordList(0), SalesOrder) MsgBox("Next Step Fails with WSDL 2.6 but ok with WSDL 2.5") MsgBox("tempTranItemList.item.Length.ToString=" & tempTran.itemList.item.Length.ToString) End If The line:tempTran.itemList.item.Length.ToStringis the issue, vb.net says the object is not defined.I guess I shall use v2.5 for this one...