Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Add new category with WSI

  1. #1
    r_bachar is offline Junior Member
    Join Date
    Nov 2009
    Posts
    23

    Default Add new category with WSI

    hi

    i am trying to run this xml in the tester
    <Entity EntityType="Category" Action="Update" ID="1" >
    <Name>Book</Name>
    </Entity>

    this is the result:

    <?xml version="1.0" encoding="utf-8"?>
    <AspDotNetStorefrontImportResult Version="" DateTime="2/21/2010 2:57:40 PM">
    <Error Message="Missing AspDotNetStorefrontImport Root Element!!" />
    </AspDotNetStorefrontImportResult>

    how can i declare a root element?

  2. #2
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    The root element of WSI would look like this:

    <AspDotNetStorefrontImport Verbose="false">

    </AspDotNetStorefrontImport>
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

  3. #3
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    Yes, you must add the <AspDotNetStorefrontImport Verbose="false"> before your xml request and close it with </AspDotNetStorefrontImport> at the bottom.

    e.g.
    <AspDotNetStorefrontImport Verbose="false">
    <Entity EntityType="Category" Action="Update" ID="1" >
    <Name>Book</Name>
    </Entity>
    </AspDotNetStorefrontImport>