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 5 of 5

Thread: syntax for distributor and manufacturer

  1. #1
    pervino is offline Member
    Join Date
    Jun 2009
    Posts
    45

    Default syntax for distributor and manufacturer

    does anyone know the xml syntax for a product "add" for distributor and for manufacturer?
    product type is:
    <ProductType Name="PC Board"/>
    and that works fine. but similar approaches for distributor and for manufacturer don't work.

    i've tried:
    <Distributor Name="Saratoga"/>
    and i've tried:
    <Distributor>Saratoga</Distributor>

    but neither has any affect

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Through WSI? These are entities, and need to be added through the Mappings node. The correct syntax would be
    Code:
    <Product Action="Add">
    	...
    	...
    	...
    	<Mappings>
    		<Entity EntityType="Manufacturer" Name="string" XPath="string" ID="integer"/>
    		<Entity EntityType="Manufacturer" Name="string" XPath="string" ID="integer"/>
    		<Entity EntityType="Manufacturer" Name="string" XPath="string" ID="integer"/>
    		<Entity EntityType="Distributor" Name="string" XPath="string" ID="integer"/>
    		<Entity EntityType="Distributor" Name="string" XPath="string" ID="integer"/>
    		<Entity EntityType="Distributor" Name="string" XPath="string" ID="integer"/>
    	</Mappings>
    </Product>
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    pervino is offline Member
    Join Date
    Jun 2009
    Posts
    45

    Default

    how come you have three of each?
    what am i supposed to put for xpath and id?
    all i know is the name of the distributor

  4. #4
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    how come you have three of each?
    To show you how you would do it if you had multiple entities to map.

    what am i supposed to put for xpath and id?
    all i know is the name of the distributor
    Then just use the name...those are other options you can use if you know them...eg.
    Code:
    <Product Action="Add">
    	...
    	...
    	...
    	<Mappings>
    		<Entity EntityType="Distributor" Name="Saratoga"/>
    	</Mappings>
    </Product>
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  5. #5
    pervino is offline Member
    Join Date
    Jun 2009
    Posts
    45

    Default

    that worked!

    thanks man - you solved it
    Last edited by pervino; 01-14-2010 at 10:47 AM.