| | |
| | | restNameValue := bodyNameValue.Child( restHandle ); |
| | | restPayloadNameValue := restNameValue.Child( restPayloadHandle ); |
| | | |
| | | releaseDateHandle := requestnvt.GetHandle( "releaseDate" ); |
| | | businessTypeHandle := requestnvt.GetHandle( "businessType" ); |
| | | scenarioNameHandle := requestnvt.GetHandle( "scenarioName" ); |
| | | |
| | | releaseDateNameValue := restPayloadNameValue.Child( releaseDateHandle ); |
| | | businessTypeNameValue := restPayloadNameValue.Child( businessTypeHandle ); |
| | | scenarioNameNameValue := restPayloadNameValue.Child( scenarioNameHandle ); |
| | | |
| | | info( "å叿¶é´ï¼", releaseDateNameValue.GetValueAsString(), " äºä¸é¨ï¼", businessTypeNameValue.GetValueAsString(), " çæ¬å·ï¼", scenarioNameNameValue.GetValueAsString() ); |
| | | |
| | | panelMaterialsHandle := requestnvt.GetHandle( "panelMaterials" ); |
| | | panelMaterialsNameValue := restPayloadNameValue.Child( panelMaterialsHandle ); |
| | | childPanelMaterialsNameValue := panelMaterialsNameValue.Children(); |
| | | productIDHandle := requestnvt.GetHandle( "productID" ); |
| | | productDescriptionHandle := requestnvt.GetHandle( "productDescription" ); |
| | | startDateHandle := requestnvt.GetHandle( "startDate" ); |
| | | quantityHandle := requestnvt.GetHandle( "quantity" ); |
| | | traverse ( childPanelMaterialsNameValue, Elements, cpmnv ) { |
| | | info( "产åï¼", cpmnv.Child( productIDHandle ).GetValueAsString() ); |
| | | info( "产åæè¿°ï¼", cpmnv.Child( productDescriptionHandle ).GetValueAsString() ); |
| | | info( "å¼å§æ¶é´ï¼", cpmnv.Child( startDateHandle ).GetValueAsString() ); |
| | | info( "æ°éï¼", cpmnv.Child( quantityHandle ).GetValueAsString() ); |
| | | if ( businessTypeNameValue.GetValueAsString() = "车载" ) { |
| | | PanelMaterialVehicle::ReceiveDataGeneration( this, requestnvt ); |
| | | } |
| | | |
| | | |
| | | info( "---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" ); |
| | | |
| | |
| | | categoryNamedValue := petNamedValue.AddChild( categoryHandle ); |
| | | categoryIDHandle := replynvt.GetHandle( "Id" ); |
| | | categoryIDNamedValue := categoryNamedValue.AddChild( categoryIDHandle ); |
| | | categoryIDNamedValue.SetValue( "TestID" ); |
| | | categoryIDNamedValue.SetValue( 3 ); |
| | | categoryNameHandle := replynvt.GetHandle( "Name" ); |
| | | categoryNameNamedValue := categoryNamedValue.AddChild( categoryNameHandle ); |
| | | categoryNameNamedValue.SetValue( "TestName" ); |
| | | categoryNameNamedValue.SetValue( "Cat" ); |
| | | petNameHandle := replynvt.GetHandle( "Name" ); |
| | | petNameValue := petNamedValue.AddChild( petNameHandle ); |
| | | petNameValue.SetValue( "Pet1" ); |
| | | petIdHandle := replynvt.GetHandle( "PetId" ); |
| | | petIdNameValue := petNamedValue.AddChild( petIdHandle ); |
| | | petIdNameValue.SetValue( "Pet1" ); |
| | | petIdNameValue.SetValue( 1 ); |
| | | |
| | | photoUrlHandle := replynvt.GetHandle( "PhotoUrl" ); |
| | | photoUrlNameValue := petNamedValue.AddChild( photoUrlHandle ); |
| | | urlHandle := replynvt.GetHandle( "Url" ); |
| | | photoUrlNameValue.AddChild( urlHandle, "å°å1" ); |
| | | photoUrlNameValue.AddChild( urlHandle, "url1" ); |
| | | |
| | | statusHandle := replynvt.GetHandle( "Status" ); |
| | | statusNameValue := petNamedValue.AddChild( statusHandle ); |
| | | statusNameValue.SetValue( "å¯ç¨" ); |
| | | statusNameValue.SetValue( "available" ); |
| | | |
| | | tagHandle := replynvt.GetHandle( "Tag" ); |
| | | tagNameValue := petNamedValue.AddChild( tagHandle ); |
| | | tagIdHandle := replynvt.GetHandle( "Id" ); |
| | | tagNameValue.AddChild( tagIdHandle, "aaa" ); |
| | | tagNameValue.AddChild( tagIdHandle, 123 ); |
| | | tagNameHandle := replynvt.GetHandle( "Name" ); |
| | | tagNameValue.AddChild( tagNameHandle, "vvvvvv" ); |
| | | tagNameValue.AddChild( tagNameHandle, "tag1" ); |
| | | |
| | | |
| | | info( rootNamedValue.ToString() ); |
| | | info( replynvt.ToString() ); |
| | | |
| | | |
| | | return emit( replynvt ); |