Removing node in onPreSendSoapRequest
Hi!
I am struggeling with removing a node in onPreSendSoapRequest.
I want to do this beacuse the null-support doesn't work to 100%
But i just cant figure out on how to delete the node.
The node i want to delete is AttributeData, i have tried the example in the help, but no luck.
This is DataFlex 19.0
Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<Product_Save xmlns="WebServiceProvider">
<products>
<ProductSaveRequest>
<ArticleNumber>ABC1233</ArticleNumber>
<GtinEan />
<PublishDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<Localizations>
<Name>
<Localization>
<Culture>sv-SE</Culture>
<Value>Min produkt</Value>
</Localization>
</Name>
<Description>
<Localization>
<Culture>sv-SE</Culture>
<Value>Detta är min produktbeskrivning</Value>
</Localization>
</Description>
</Localizations>
<PriceLists>
<ProductPriceList>
<Id>e9cc65b3-8b77-4295-867a-8b2671f257e0</Id>
<MarketId>0</MarketId>
<Price>123.4</Price>
<DiscountedPrice>0</DiscountedPrice>
<PurchasePrice>0</PurchasePrice>
<VatRate>0</VatRate>
<UseDiscountDateSpan>false</UseDiscountDateSpan>
<DiscountStartDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<DiscountEndDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<HidePrice>false</HidePrice>
<HideProduct>false</HideProduct>
<DiscountPercentageFromMaster>0</DiscountPercentageFromMaster>
<DiscountPercentagePurchasePriceFromMaster>0</DiscountPercentagePurchasePriceFromMaster>
<DiscountedPriceIsMemberPrice>false</DiscountedPriceIsMemberPrice>
</ProductPriceList>
</PriceLists>
<DisplayDiscountInPercentage>false</DisplayDiscountInPercentage>
<StockStatus>
<Id>1</Id>
<CountDownStockAutomatically>false</CountDownStockAutomatically>
<IdWhenOutOfStock>0</IdWhenOutOfStock>
<UseInStockNotification>false</UseInStockNotification>
<Items1>0</Items1>
<Items2>0</Items2>
<DeliveryDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<OrderLimit>0</OrderLimit>
<StockCount>100</StockCount>
</StockStatus>
<AttributeData>
<ShowSelectionText>false</ShowSelectionText>
</AttributeData>
<SpecificationData>
<DeleteSpecifications>false</DeleteSpecifications>
</SpecificationData>
<Properties>
<QuantitySuffix />
<Weight>0</Weight>
<Volume>0</Volume>
<DistributionPackageSize>0</DistributionPackageSize>
<ExcludeFromSearchResult>false</ExcludeFromSearchResult>
</Properties>
<FreightClassId>0</FreightClassId>
<Manufacturer>
<Name />
<ArticleNumber />
<Model />
</Manufacturer>
<PriceComparisonSettings>
<ExportToPriceComparisonProviders>false</ExportToPriceComparisonProviders>
<PriceRunner>false</PriceRunner>
<PriceRunnerCategory />
<Kelkoo>false</Kelkoo>
<KelkooCategoryId>0</KelkooCategoryId>
<Prisjakt>false</Prisjakt>
<Generic>false</Generic>
</PriceComparisonSettings>
<TemplateId>0</TemplateId>
<CategoryData>
<CanonicalCategoryId>0</CanonicalCategoryId>
<CanonicalExternalCategoryId />
</CategoryData>
<ProductFamilyName />
<PreOrderSettings>
<FromDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ToDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
</PreOrderSettings>
</ProductSaveRequest>
</products>
</Product_Save>
</soap:Body>
</soap:Envelope>
Martin Arvidsson, Data Martin i Kungsbacka AB
I have six locks on my door all in a row. When I go out, I lock every other one. I figure no matter how long somebody stands there picking the locks, they are always locking three.