private void GetWwwData(string url, WwwDataType wwwDataType) { // offline handling, fakes population of _epmData* values and raises events if (_isOffline) { // and raise events switch (wwwDataType) { case WwwDataType.EpmChartGroup: ChartEventArgs cea = null; if (_epmDataChartTypeRequested == EpmDataTypeChart.ProductCategory) { // Product Category _epmDataChart = @"{""entries"":[{""name"":""apples"",""value"":1776298.12},{""name"":""pears"",""value"":8486375.52},{""name"":""strawbs"",""value"":1200005.32},{""name"":""bananas"",""value"":9522913.72},{""name"":""grapes"",""value"":1888444.52}]}"; cea = new ChartEventArgs(){ChartType = EpmDataTypeChart.ProductCategory}; } else { // Partner City _epmDataChart = @"{""entries"":[{""name"":""Rom"",""value"":9522913.12},{""name"":""Sapporo"",""value"":8486375.52},{""name"":""MÂnchen"",""value"":1888444.32},{""name"":""Tokyo"",""value"":1776298.72},{""name"":""Madrid"",""value"":1200005.52}]}"; cea = new ChartEventArgs(){ChartType = EpmDataTypeChart.PartnerCity}; } OnChartDataChanged(null, cea); break; case WwwDataType.EpmSinglePOwithItems: float f = UnityEngine.Random.Range(-2f, 2f); if (f > 0) { _epmDataSinglePOwithItems = @"{d: {results: [{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000010')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000010"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-2000"",ProductTypeCode: ""PR"",ProductCategory: ""Electronics"",ProductName: ""7 Widescreen Portable DVD Player w MP3"",ProductDesc: ""7 LCD Screen. storage battery holds up to 6 hours!"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""3"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000020')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000020"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1010"",ProductTypeCode: ""PR"",ProductCategory: ""Notebooks"",ProductName: ""Notebook Professional 15"",ProductDesc: ""Notebook Professional 15 with 2.3GHz - 15 XGA - 2048MB DDR2 SDRAM - 40GB Hard Disc - DVD-Writer (DVD-R/+R/-RW/-RAM)"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""1"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000030')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000030"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1103"",ProductTypeCode: ""PR"",ProductCategory: ""Software"",ProductName: ""Smart Multimedia"",ProductDesc: ""Complete package. 1 User. different Multimedia applications. playing music. watching dvds. only with this Smart package"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000040')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000040"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-2000"",ProductTypeCode: ""PR"",ProductCategory: ""Electronics"",ProductName: ""7 Widescreen Portable DVD Player w MP3"",ProductDesc: ""7 LCD Screen. storage battery holds up to 6 hours!"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000050')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000050"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1010"",ProductTypeCode: ""PR"",ProductCategory: ""Notebooks"",ProductName: ""Notebook Professional 15"",ProductDesc: ""Notebook Professional 15 with 2.3GHz - 15 XGA - 2048MB DDR2 SDRAM - 40GB Hard Disc - DVD-Writer (DVD-R/+R/-RW/-RAM)"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""1"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000060')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000060"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1103"",ProductTypeCode: ""PR"",ProductCategory: ""Software"",ProductName: ""Smart Multimedia"",ProductDesc: ""Complete package. 1 User. different Multimedia applications. playing music. watching dvds. only with this Smart package"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000070')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000070"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-2000"",ProductTypeCode: ""PR"",ProductCategory: ""Electronics"",ProductName: ""7 Widescreen Portable DVD Player w MP3"",ProductDesc: ""7 LCD Screen. storage battery holds up to 6 hours!"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""1"",QuantityUnit: ""EA""},{__metadata: " + @"{uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000080')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000080"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1010"",ProductTypeCode: ""PR"",ProductCategory: ""Notebooks"",ProductName: ""Notebook Professional 15"",ProductDesc: ""Notebook Professional 15 with 2.3GHz - 15 XGA - 2048MB DDR2 SDRAM - 40GB Hard Disc - DVD-Writer (DVD-R/+R/-RW/-RAM)"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""}]}}"; } else { _epmDataSinglePOwithItems = @"{d: {results: [{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000003',PurchaseOrderItem='0000000010')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000003"",PurchaseOrderItem: ""0000000010"",PartnerId: ""0100000006"",CompanyName: ""SAP"",GrossAmount: ""31666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1010"",ProductTypeCode: ""PR"",ProductCategory: ""Notebooks"",ProductName: ""7 Widescreen Portable DVD Player w MP3"",ProductDesc: ""7 LCD Screen. storage battery holds up to 6 hours!"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""3"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000020')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000020"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1010"",ProductTypeCode: ""PR"",ProductCategory: ""Notebooks"",ProductName: ""Notebook Professional 15"",ProductDesc: ""Notebook Professional 15 with 2.3GHz - 15 XGA - 2048MB DDR2 SDRAM - 40GB Hard Disc - DVD-Writer (DVD-R/+R/-RW/-RAM)"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""1"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000030')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000030"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1103"",ProductTypeCode: ""PR"",ProductCategory: ""Software"",ProductName: ""Smart Multimedia"",ProductDesc: ""Complete package. 1 User. different Multimedia applications. playing music. watching dvds. only with this Smart package"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000040')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000040"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-2000"",ProductTypeCode: ""PR"",ProductCategory: ""Electronics"",ProductName: ""7 Widescreen Portable DVD Player w MP3"",ProductDesc: ""7 LCD Screen. storage battery holds up to 6 hours!"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000050')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000050"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1010"",ProductTypeCode: ""PR"",ProductCategory: ""Notebooks"",ProductName: ""Notebook Professional 15"",ProductDesc: ""Notebook Professional 15 with 2.3GHz - 15 XGA - 2048MB DDR2 SDRAM - 40GB Hard Disc - DVD-Writer (DVD-R/+R/-RW/-RAM)"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""1"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000060')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000060"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1103"",ProductTypeCode: ""PR"",ProductCategory: ""Software"",ProductName: ""Smart Multimedia"",ProductDesc: ""Complete package. 1 User. different Multimedia applications. playing music. watching dvds. only with this Smart package"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""},{__metadata: {uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000070')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000070"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-2000"",ProductTypeCode: ""PR"",ProductCategory: ""Electronics"",ProductName: ""7 Widescreen Portable DVD Player w MP3"",ProductDesc: ""7 LCD Screen. storage battery holds up to 6 hours!"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""1"",QuantityUnit: ""EA""},{__metadata: " + @"{uri: ""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000002',PurchaseOrderItem='0000000080')"",type: ""sap.hana.democontent.epm.PO_WORKLISTType""},PurchaseOrderId: ""0300000002"",PurchaseOrderItem: ""0000000080"",PartnerId: ""0100000005"",CompanyName: ""TECUM"",GrossAmount: ""11666.69"",Currency: ""EUR"",LifecycleDesc: ""Closed"",ApprovalDesc: ""Approved"",ConfirmationDesc: ""Sent"",OrderingDesc: ""Initial"",ProductId: ""HT-1010"",ProductTypeCode: ""PR"",ProductCategory: ""Notebooks"",ProductName: ""Notebook Professional 15"",ProductDesc: ""Notebook Professional 15 with 2.3GHz - 15 XGA - 2048MB DDR2 SDRAM - 40GB Hard Disc - DVD-Writer (DVD-R/+R/-RW/-RAM)"",PartnerCity: ""Muenster"",PartnerPostalCode: ""48155"",Quantity: ""2"",QuantityUnit: ""EA""}]}}"; } OnSinglePODataWithItemsChanged(null, EventArgs.Empty); break; case WwwDataType.EpmMassListPO: _epmDataMassListPO = @"{""d"":{""results"":[{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000040')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000040""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000050')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000050""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000060')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000060""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000070')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000070""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000080')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000080""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000090')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000090""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000000',PurchaseOrderItem='0000000100')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000000"",""PurchaseOrderItem"":""0000000100""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000040')"",""type"":""sap.hana.democontent." + @"epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000040""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000050')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000050""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000060')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000060""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000070')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000070""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000080')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000080""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000090')"",""type"":""sap.hana.democontent." + @"epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000090""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000001',PurchaseOrderItem='0000000100')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000001"",""PurchaseOrderItem"":""0000000100""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000010',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000010"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000010',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000010"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000010',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000010"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000010',PurchaseOrderItem='0000000040')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000010"",""PurchaseOrderItem"":""0000000040""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000010',PurchaseOrderItem='0000000050')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000010"",""PurchaseOrderItem"":""0000000050""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000010',PurchaseOrderItem='0000000060')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000010"",""PurchaseOrderItem"":""0000000060""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000010',PurchaseOrderItem='0000000070')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000010"",""PurchaseOrderItem"":""0000000070""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000016',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000016"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000016',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000016"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000016',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent." + @"epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000016"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000040')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000040""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000050')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000050""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000060')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000060""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000070')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000070""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000080')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000080""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000090')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000090""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000026',PurchaseOrderItem='0000000100')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000026"",""PurchaseOrderItem"":""0000000100""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000028',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000028"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000028',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000028"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000028',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000028"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000028',PurchaseOrderItem='0000000040')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000028"",""PurchaseOrderItem"":""0000000040""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000028',PurchaseOrderItem='0000000050')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000028"",""PurchaseOrderItem"":""0000000050""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000031',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000031"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000031',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000031"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000031',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent." + @"epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000031"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000038',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000038"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000038',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000038"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000038',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000038"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000038',PurchaseOrderItem='0000000040')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000038"",""PurchaseOrderItem"":""0000000040""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000038',PurchaseOrderItem='0000000050')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000038"",""PurchaseOrderItem"":""0000000050""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000038',PurchaseOrderItem='0000000060')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000038"",""PurchaseOrderItem"":""0000000060""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000038',PurchaseOrderItem='0000000070')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000038"",""PurchaseOrderItem"":""0000000070""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000044',PurchaseOrderItem='0000000010')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000044"",""PurchaseOrderItem"":""0000000010""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000044',PurchaseOrderItem='0000000020')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000044"",""PurchaseOrderItem"":""0000000020""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000044',PurchaseOrderItem='0000000030')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000044"",""PurchaseOrderItem"":""0000000030""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000044',PurchaseOrderItem='0000000040')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000044"",""PurchaseOrderItem"":""0000000040""},{""__metadata"": {""uri"":""http://uvo1lhvt5s58vittd8f.vm.cld.sr:8000/sap/hana/democontent/epm/services/poWorklist.xsodata/PO_WORKLIST(PurchaseOrderId='0300000044',PurchaseOrderItem='0000000050')"",""type"":""sap.hana.democontent.epm.PO_WORKLISTType""},""PurchaseOrderId"":""0300000044"",""PurchaseOrderItem"":""0000000050""}],""__count"":""2354""}}"; OnMassListPOChanged(null, EventArgs.Empty); break; case WwwDataType.EpmApprovePO: _epmDataApprovedPOResponse = "Success"; PoApprovedEventArgs poea = new PoApprovedEventArgs(){PurchaseOrderId = _epmDataApprovePORequested}; OnSinglePOApproved(null, poea); break; case WwwDataType.EpmRejectPO: _epmDataRejectedPOResponse = "Success"; PoApprovedEventArgs poear = new PoApprovedEventArgs(){PurchaseOrderId = _epmDataRejectPORequested}; OnSinglePORejected(null, poear); break; case WwwDataType.ConnNetCheck: _connDataNetCheckResponse.WwwText = "some google text"; _connDataNetCheckResponse.WwwError = null; OnConnNetCheckReturned(this, null); break; case WwwDataType.ConnServerUp: _connDataServerUpResponse.WwwText = "some server text"; _connDataServerUpResponse.WwwError = null; OnServerUpReturned(this, null); break; case WwwDataType.ConnLoginCred: _connDataLoginCredResponse.WwwText = "some login cred text"; _connDataLoginCredResponse.WwwError = null; OnLoginCredReturned(this, null); break; case WwwDataType.ConnVerDet_60: _connDataVerDet60Response.WwwText = "ver det 60 ok"; _connDataVerDet60Response.WwwError = null; VerDetEventArgs vdea60 = new VerDetEventArgs(){HanaVer = HanaVersion.v1_00_60}; OnVerDetReturned(this, vdea60); break; case WwwDataType.ConnVerDet_70: _connDataVerDet70Response.WwwText = "ver det 70 failed"; _connDataVerDet70Response.WwwError = "ver det 70 failed"; VerDetEventArgs vdea70 = new VerDetEventArgs(){HanaVer = HanaVersion.v1_00_70}; OnVerDetReturned(this, vdea70); break; case WwwDataType.ConnVerDet_72: _connDataVerDet72Response.WwwText = "ver det 72 failed"; _connDataVerDet72Response.WwwError = "ver det 72 failed"; VerDetEventArgs vdea72 = new VerDetEventArgs(){HanaVer = HanaVersion.v1_00_72}; OnVerDetReturned(this, vdea72); break; default: break; } return; } // normal online use try { WWW www = null; System.Collections.Generic.Dictionary<string, string> d = null; if (wwwDataType == WwwDataType.ConnNetCheck || wwwDataType == WwwDataType.ConnServerUp) { //--------------------------------------------------------- // Without login //--------------------------------------------------------- print("WWW ------------ calling now: " + url); www = new WWW(url, null, d); } else { //--------------------------------------------------------- // With login //--------------------------------------------------------- // prep headers //Hashtable headers = new Hashtable(); //headers["Accept-Language"] = "en-US,en;q=0.8"; // prevents a 500 error saying "Multiple resources found. Inconsistency between data model and service description found" //string userAndPasswordCombo = _username + ":" + _password; //byte[] bytesToEncode = Encoding.UTF8.GetBytes(userAndPasswordCombo); //string encodedText = Convert.ToBase64String(bytesToEncode); //headers["Authorization"] = "Basic " + encodedText; //print("WWW ------------ calling now: " + url); //www = new WWW(url, null, headers); d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("Accept-Language", "en-US,en;q=0.8"); // prevents a 500 error saying "Multiple resources found. Inconsistency between data model and service description found" string userAndPasswordCombo = _username + ":" + _password; byte[] bytesToEncode = Encoding.UTF8.GetBytes(userAndPasswordCombo); string encodedText = Convert.ToBase64String(bytesToEncode); d.Add("Authorization", "Basic " + encodedText); print("WWW ------------ calling now: " + url); www = new WWW(url, null, d); } StartCoroutine(WaitForRequest(www, wwwDataType)); } catch (Exception ex) { print("An error occurred starting url: " + ex.Message); } }
/// <summary> /// Waits for request, then stores raw string result in _epmData* and raises event /// No parsing of results happens here, the results are parsed on demand when the /// EpmChartData GetEpmResponse* methods are called. /// </summary> IEnumerator WaitForRequest(WWW www, WwwDataType wwwDataType) { yield return www; print("WWW ------------ returned"); string wwwResult = ""; bool isWwwAdditionalError = false; string wwwAdditionalError = ""; bool isWwwOk = false; //------------------------------------------------------------------------- // Insert our own errors //------------------------------------------------------------------------- // check for failed login, it is a www ok request, but body contains a login page // the login page is acceptable for the server ping check if (wwwDataType != WwwDataType.ConnServerUp && www.text.Contains(@"<title>HANA Login</title>")) { isWwwAdditionalError = true; wwwAdditionalError = "EPM Login Failed - User or Pwd wrong"; } // Error check if (www.error == null && !isWwwAdditionalError) { // all is ok string s = TruncateWwwAsRequired(www.text, wwwDataType); print("WWW Ok: " + s); wwwResult = www.text; isWwwOk = true; } else if (!isWwwAdditionalError) { // standard error (eg field name is wrong case) print("WWW Error: " + www.error); wwwResult = www.error; isWwwOk = false; } else { // own additional error (eg login failed) print("WWW Additional Error: " + wwwAdditionalError); wwwResult = wwwAdditionalError; isWwwOk = false; } //------------------------------------------------------------------------- // use dataType to decide where to put data //------------------------------------------------------------------------- switch (wwwDataType) { case WwwDataType.EpmChartGroup: _epmDataChart = wwwResult; if (isWwwOk) { ChartEventArgs cea = new ChartEventArgs(){ChartType = _epmDataChartTypeRequested}; OnChartDataChanged(null, cea); } break; case WwwDataType.EpmSinglePOwithItems: _epmDataSinglePOwithItems = wwwResult; if (isWwwOk) { OnSinglePODataWithItemsChanged(null, EventArgs.Empty); } break; case WwwDataType.EpmMassListPO: _epmDataMassListPO = wwwResult; if (isWwwOk) { OnMassListPOChanged(null, EventArgs.Empty); } break; case WwwDataType.EpmApprovePO: _epmDataApprovedPOResponse = wwwResult; if (isWwwOk && wwwResult == "Success") { PoApprovedEventArgs poea = new PoApprovedEventArgs(){PurchaseOrderId = _epmDataApprovePORequested}; OnSinglePOApproved(null, poea); } break; case WwwDataType.EpmRejectPO: _epmDataRejectedPOResponse = wwwResult; if (isWwwOk && wwwResult == "Success") { PoApprovedEventArgs poear = new PoApprovedEventArgs(){PurchaseOrderId = _epmDataRejectPORequested}; OnSinglePORejected(null, poear); } break; case WwwDataType.ConnNetCheck: _connDataNetCheckResponse.WwwText = wwwResult; _connDataNetCheckResponse.WwwError = www.error; OnConnNetCheckReturned(this, null); break; case WwwDataType.ConnServerUp: _connDataServerUpResponse.WwwText = wwwResult; _connDataServerUpResponse.WwwError = www.error; OnServerUpReturned(this, null); break; case WwwDataType.ConnLoginCred: _connDataLoginCredResponse.WwwText = wwwResult; _connDataLoginCredResponse.WwwError = www.error; if (isWwwAdditionalError) { _connDataLoginCredResponse.WwwError = wwwResult; } OnLoginCredReturned(this, null); break; case WwwDataType.ConnVerDet_60: _connDataVerDet60Response.WwwText = wwwResult; _connDataVerDet60Response.WwwError = www.error; VerDetEventArgs vdea60 = new VerDetEventArgs(){HanaVer = HanaVersion.v1_00_60}; OnVerDetReturned(this, vdea60); break; case WwwDataType.ConnVerDet_70: _connDataVerDet70Response.WwwText = wwwResult; _connDataVerDet70Response.WwwError = www.error; VerDetEventArgs vdea70 = new VerDetEventArgs(){HanaVer = HanaVersion.v1_00_70}; OnVerDetReturned(this, vdea70); break; case WwwDataType.ConnVerDet_72: _connDataVerDet72Response.WwwText = wwwResult; _connDataVerDet72Response.WwwError = www.error; VerDetEventArgs vdea72 = new VerDetEventArgs(){HanaVer = HanaVersion.v1_00_72}; OnVerDetReturned(this, vdea72); break; default: break; } }
private void OnVerDetReturned(object sender, VerDetEventArgs vdea) { HanaVersion hv = vdea.HanaVer; WwwResponse r = GameManager.Instance.GetConnResponse_VerDet(hv); if (String.IsNullOrEmpty(r.WwwError)) { // Version determination was ok _hanaVersion = hv; ConnLog("Version " + hv.ToString() + " is supported"); // Checks are now complete _connCheckState = ConnCheckState.CheckPassed; ConnLog("Checks complete, please press Start button!"); _isItOkToPressPlayButton = true; } else { // Check failed, either start a new version check or if we have exhausted // supported versions then report failure switch (hv) { case HanaVersion.v1_00_60: ConnLog("HANA version is not supported"); _connCheckState = ConnCheckState.CheckFailed; break; case HanaVersion.v1_00_70: // Trigger the next version check ConnLog("Check for version " + HanaVersion.v1_00_60.ToString()); GameManager.Instance.GetConnData_VerDet(HanaVersion.v1_00_60, _epmHostToEdit, _epmInstanceToEdit); break; case HanaVersion.v1_00_72: // Trigger the next version check ConnLog("Check for version " + HanaVersion.v1_00_70.ToString()); GameManager.Instance.GetConnData_VerDet(HanaVersion.v1_00_70, _epmHostToEdit, _epmInstanceToEdit); break; default: break; } } }