Hi,
I am trying to add/update an item using WSI. When I try the import from the WSI web interface then the import works just fine and the image for the item is copied to the icon folder. The AspDotNet support team has validated the XML being used as well. But, when I try to do the import the same xml from a java program I get the following error: Could not write file: C:\inetpub\wwwroot\AspDotNetStorefront\images\Prod uct\icon\222.gif I have checked that the Network Service user has read/write/execute permissions for the images folder in AspDotNetStorefront.
I am using the Demo version and the operating system is Windows Vista. Did anyone else see this error as well? Any idea on how to resolve this issue?
Thanks,
Ankush
The xml:
<Product Action="Update" ID="222">
<SKU>celigo-aspdotnet-testitem</SKU>
<Published>true</Published>
<Mappings AutoCleanup="false">
<Entity EntityType="Manufacturer" Name="Barbour"/>
</Mappings>
<Images UseAppConfigs="true" UseResize="true">
<Icon Extension="gif" Params="crop:false">R0lGODlhyAApAPcAAI2Qk83O0CAcHc TGyP7+/vz8/FR2hsbIyjMwMd3d3j88PLvCxTClymzN6/r6+gGTyou7zouNkby8vJSWmUWVtDuWt318fXRyc7m5ulKEmQW0 59DR0srMzmxpahgUFZCSlQCq19TV1sXExSgkJcnKzK6wssLDxR YSE0laZFZTVLGytMjJy6ytsOrq6i0qK7W0tcDBwqmqrCudw/P7/vLy8ktnddjZ2k9LTOz2+rm6vK6trqCipJ2cnfT09Jianezs7cz Nz6Smqe/w8Rw5Rr2+wPb29x0ZGhRXccHCxJaYm52eoVRqdVOKovDw8GVjZ F7L6ouKip6go+Pi4t7f4KC5xElgbDxDSCUiI7S2uOfm5kajxNX W1+Xk5AZ9qUFMU+jo6fn9/7Gwse3v8X3D21RwfuDh4qmoqaKkp6epq7K0tqfAyubn6IOBguD g4e3t7ev5/vby8s7Q0bq8voOGikRVXhO67tLS0wGZ0uPk5eLj5I2bojAsLUV DRMzJyeXm5x8bHOfo6JCPkJaUlV1bXLe4uhimz9PU1uTl5gCv4 pqcntrb3Dg0NaOhou/y8+nq69vc3dbX2aqrru3u7pGTlk+Npuvs7err6xsXGDIuMEhFR mBdXsPFx1N9kJORkjc7QOHi48bDw4eJjQsGB0y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VKZeFZXEViAC75gCU2ABEGgjv8wBarnBj4AiWdwi FBoegQBBBOQB2vgB4fgSDIZfl5YETDJim5gD2npcSWABo7gBwm ABqV3EjTgB2uQCwRoKDkAAJOQmwV5e/9glQIRD0rwllx5Bh8wCR/wAUEAQwQQBMWZm643gTuQAP/wC3ByAAmJBpNXWWfAAhA5EHYwCTf5D3FBEAG6OQHRdxJEgJvOu ZUj2Zgl+Q9CIBCT+YRRaBLjmZuTEAEhkIVbKBADEJoEAZOZh58 RAC//kAbqCQBKIJ3/EBAAOw==</Icon>
</Images>
<Variants>
<Variant Action="Update" ID="268">
<IsTaxable>true</IsTaxable>
<Price>0.0</Price>
</Variant>
</Variants>
<Description>An AspDotNet Test Item.....</Description>
<Name>AspDN Item</Name>
<Summary>An AspDotNet Test Item.....</Summary>
</Product>
Response when this posted on the ipx.asmx web interface:
<Verbose Message="Processing Product, Name=AspDN Item, Action=Update, ID=222, GUID=" />
<Verbose Message="Executing SQL: update Product set Name=N'AspDN Item',Summary=N'An AspDotNet Test Item.....',Description=N'An AspDotNet Test Item.....',SKU=N'celigo-aspdotnet-testitem',SEName=N'aspdn-item',Published=1 where ProductId=222" />
<Verbose Message="Executing SQL: delete from ProductManufacturer where ManufacturerID=21 and ProductID=222" />
<Verbose Message="Executing SQL: insert ProductManufacturer(ManufacturerID,ProductID) values(21,222)" />
<Verbose Message="Product OK" />
<Item NodeType="Product" Name="AspDN Item" GUID="" ID="222" ActionTaken="Update" Status="OK" Message="" />
<Verbose Message="Processing Variant, Name=, Action=Update, ID=268, GUID=" />
<Verbose Message="Executing SQL: update ProductVariant set Price=0.0,IsTaxable=1 where VariantId=268" />
<Verbose Message="Variant OK" />
<Item NodeType="Variant" Name="" GUID="" ID="268" ActionTaken="Update" Status="OK" Message="" />
<Verbose Message="Executing SQL: update ProductVariant set IsDefault=0 where Deleted&lt;&gt;0 or Published=0 and ProductID=222" />
Response when this is posted through java using http post method:
<Verbose Message="Processing Product, Name=AspDN Item, Action=Update, ID=222, GUID="/>
<Verbose Message="Executing SQL: update Product set Name=N'AspDN Item',Summary=N'An AspDotNet Test Item.....',Description=N'An AspDotNet Test Item.....',SKU=N'celigo-aspdotnet-testitem',SEName=N'aspdn-item',Published=1 where ProductId=222"/>
<Verbose Message="Executing SQL: delete from ProductManufacturer where ManufacturerID=21 and ProductID=222"/>
<Verbose Message="Executing SQL: insert ProductManufacturer(ManufacturerID,ProductID) values(21,222)"/>
<Error Message="Could not write file: C:\inetpub\wwwroot\AspDotNetStorefront\images\Prod uct\icon\222.gif"/>
<Verbose Message="Product OK"/>
<Item ActionTaken="Update" GUID="" ID="222" Message="" Name="AspDN Item" NodeType="Product" Status="OK"/>
<Verbose Message="Processing Variant, Name=, Action=Update, ID=268, GUID="/>
<Verbose Message="Executing SQL: update ProductVariant set Price=0.0,IsTaxable=1 where VariantId=268"/>
<Verbose Message="Variant OK"/>
<Item ActionTaken="Update" GUID="" ID="268" Message="" Name="" NodeType="Variant" Status="OK"/>
<Verbose Message="Executing SQL: update ProductVariant set IsDefault=0 where Deleted&lt;&gt;0 or Published=0 and ProductID=222"/>