EMUN1 ASP.NET

<back to all web services

CreateProductTemplate

Requires Authentication
CreateProductTemplate Parameters:
NameParameterData TypeRequiredDescription
TagsqueryDictionary<string, HashSet<String>>No
ProductTemplate Parameters:
NameParameterData TypeRequiredDescription
SkuformstringNo
UpcformstringNo
CostformdecimalNo
MinimumOrderQtyformdoubleNo
PurchaseIncrementformdoubleNo
VendorIdformstringNo
WholesalePriceformdecimalNo
RetailPriceformdecimalNo
RatioformstringNo
HeightformdoubleNo
WidthformdoubleNo
DepthformdoubleNo
WeightformdoubleNo
ImagesformList<MediaReference>No
DocumentsformList<MediaReference>No
AreasformList<DesignArea>No
TaggedEntity Parameters:
NameParameterData TypeRequiredDescription
TagsformDictionary<string, HashSet<String>>No
EntityXL Parameters:
NameParameterData TypeRequiredDescription
RefIdformstringNo
RatingformdoubleNo
RestrictedformboolNo
EntityLG Parameters:
NameParameterData TypeRequiredDescription
DescriptionformstringNo
EntityMD Parameters:
NameParameterData TypeRequiredDescription
LabelformstringNo
NameformstringNo
TitleformstringNo
ActiveformboolNo
EntitySM Parameters:
NameParameterData TypeRequiredDescription
EuidformGuidNo
EntityXS Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
EntityXS<T> Parameters:
NameParameterData TypeRequiredDescription
IdformTNo
CreatedByformstringNo
CreatedOnformDateTimeNo
LastModifiedOnformDateTimeNo
LastModifiedByformstringNo
PositionformintNo
MediaReference Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
EuidformGuid?No
LabelformstringNo
DescriptionformstringNo
RealmformstringNo
UrlformstringNo
ContentTypeformstringNo
Heightformdouble?No
Widthformdouble?No
RefIdformstringNo
DesignArea Parameters:
NameParameterData TypeRequiredDescription
CopyFromformGuid?No
SupplierCodeformstringNo
RatioformstringNo
HeightformdoubleNo
WidthformdoubleNo
BleedLineformdouble?No
SafeLineformdouble?No
BackgroundColorformstringNo
DesignformMediaReferenceNo
OverlaysformList<DesignAreaOverlay>No
UnderlaysformList<DesignAreaUnderlay>No
ValueObject Parameters:
NameParameterData TypeRequiredDescription
EuidformGuidNo
LabelformstringNo
DescriptionformstringNo
DesignAreaOverlay Parameters:
NameParameterData TypeRequiredDescription
MediaformMediaReferenceNo
HeightformdoubleNo
WidthformdoubleNo
XformdoubleNo
YformdoubleNo
IsProductImageformboolNo
IsPrintImageformboolNo
CanDesignformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .soap12 suffix or ?format=soap12

HTTP + SOAP12

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap12 HTTP/1.1 
Host: www.bernhardthospitality.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<CreateProductTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
  <CreatedBy>String</CreatedBy>
  <CreatedOn>0001-01-01T00:00:00</CreatedOn>
  <Id>0</Id>
  <LastModifiedBy>String</LastModifiedBy>
  <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
  <Position>0</Position>
  <Euid>00000000-0000-0000-0000-000000000000</Euid>
  <Active>false</Active>
  <Label>String</Label>
  <Name i:nil="true" />
  <Title i:nil="true" />
  <Description>String</Description>
  <Rating>0</Rating>
  <RefId>String</RefId>
  <Restricted>false</Restricted>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>String</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
  </Tags>
  <Areas>
    <DesignArea>
      <Description>String</Description>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Label>String</Label>
      <BackgroundColor>String</BackgroundColor>
      <BleedLine>0</BleedLine>
      <CopyFrom>00000000-0000-0000-0000-000000000000</CopyFrom>
      <Design>
        <ContentType>String</ContentType>
        <Description>String</Description>
        <Euid>00000000-0000-0000-0000-000000000000</Euid>
        <Height>0</Height>
        <Id>0</Id>
        <Label>String</Label>
        <Realm>String</Realm>
        <RefId>String</RefId>
        <Url>String</Url>
        <Width>0</Width>
      </Design>
      <Height>0</Height>
      <Overlays>
        <DesignAreaOverlay>
          <Description>String</Description>
          <Euid>00000000-0000-0000-0000-000000000000</Euid>
          <Label>String</Label>
          <CanDesign>false</CanDesign>
          <Height>0</Height>
          <IsPrintImage>false</IsPrintImage>
          <IsProductImage>false</IsProductImage>
          <Media>
            <ContentType>String</ContentType>
            <Description>String</Description>
            <Euid>00000000-0000-0000-0000-000000000000</Euid>
            <Height>0</Height>
            <Id>0</Id>
            <Label>String</Label>
            <Realm>String</Realm>
            <RefId>String</RefId>
            <Url>String</Url>
            <Width>0</Width>
          </Media>
          <Width>0</Width>
          <X>0</X>
          <Y>0</Y>
        </DesignAreaOverlay>
      </Overlays>
      <Ratio>8:1</Ratio>
      <SafeLine>0</SafeLine>
      <SupplierCode>String</SupplierCode>
      <Underlays>
        <DesignAreaUnderlay>
          <Description>String</Description>
          <Euid>00000000-0000-0000-0000-000000000000</Euid>
          <Label>String</Label>
          <CanDesign>false</CanDesign>
          <Height>0</Height>
          <IsPrintImage>false</IsPrintImage>
          <IsProductImage>false</IsProductImage>
          <Media>
            <ContentType>String</ContentType>
            <Description>String</Description>
            <Euid>00000000-0000-0000-0000-000000000000</Euid>
            <Height>0</Height>
            <Id>0</Id>
            <Label>String</Label>
            <Realm>String</Realm>
            <RefId>String</RefId>
            <Url>String</Url>
            <Width>0</Width>
          </Media>
          <Width>0</Width>
          <X>0</X>
          <Y>0</Y>
        </DesignAreaUnderlay>
      </Underlays>
      <Width>0</Width>
    </DesignArea>
  </Areas>
  <Cost>0</Cost>
  <Depth>0</Depth>
  <Documents>
    <MediaReference>
      <ContentType>String</ContentType>
      <Description>String</Description>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Height>0</Height>
      <Id>0</Id>
      <Label>String</Label>
      <Realm>String</Realm>
      <RefId>String</RefId>
      <Url>String</Url>
      <Width>0</Width>
    </MediaReference>
  </Documents>
  <Height>0</Height>
  <Images>
    <MediaReference>
      <ContentType>String</ContentType>
      <Description>String</Description>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Height>0</Height>
      <Id>0</Id>
      <Label>String</Label>
      <Realm>String</Realm>
      <RefId>String</RefId>
      <Url>String</Url>
      <Width>0</Width>
    </MediaReference>
  </Images>
  <MinimumOrderQty>0</MinimumOrderQty>
  <PurchaseIncrement>0</PurchaseIncrement>
  <Ratio>8:1</Ratio>
  <RetailPrice>0</RetailPrice>
  <Sku>String</Sku>
  <Upc>String</Upc>
  <VendorId>String</VendorId>
  <Weight>0</Weight>
  <WholesalePrice>0</WholesalePrice>
  <Width>0</Width>
</CreateProductTemplate>

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<ProductTemplateCreated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
  <CreatedBy>String</CreatedBy>
  <CreatedOn>0001-01-01T00:00:00</CreatedOn>
  <Id>0</Id>
  <LastModifiedBy>String</LastModifiedBy>
  <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
  <Position>0</Position>
  <Euid>00000000-0000-0000-0000-000000000000</Euid>
  <Active>false</Active>
  <Label>String</Label>
  <Name i:nil="true" />
  <Title i:nil="true" />
  <Description>String</Description>
  <Rating>0</Rating>
  <RefId>String</RefId>
  <Restricted>false</Restricted>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>String</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
  </Tags>
  <Areas>
    <DesignArea>
      <Description>String</Description>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Label>String</Label>
      <BackgroundColor>String</BackgroundColor>
      <BleedLine>0</BleedLine>
      <CopyFrom>00000000-0000-0000-0000-000000000000</CopyFrom>
      <Design>
        <ContentType>String</ContentType>
        <Description>String</Description>
        <Euid>00000000-0000-0000-0000-000000000000</Euid>
        <Height>0</Height>
        <Id>0</Id>
        <Label>String</Label>
        <Realm>String</Realm>
        <RefId>String</RefId>
        <Url>String</Url>
        <Width>0</Width>
      </Design>
      <Height>0</Height>
      <Overlays>
        <DesignAreaOverlay>
          <Description>String</Description>
          <Euid>00000000-0000-0000-0000-000000000000</Euid>
          <Label>String</Label>
          <CanDesign>false</CanDesign>
          <Height>0</Height>
          <IsPrintImage>false</IsPrintImage>
          <IsProductImage>false</IsProductImage>
          <Media>
            <ContentType>String</ContentType>
            <Description>String</Description>
            <Euid>00000000-0000-0000-0000-000000000000</Euid>
            <Height>0</Height>
            <Id>0</Id>
            <Label>String</Label>
            <Realm>String</Realm>
            <RefId>String</RefId>
            <Url>String</Url>
            <Width>0</Width>
          </Media>
          <Width>0</Width>
          <X>0</X>
          <Y>0</Y>
        </DesignAreaOverlay>
      </Overlays>
      <Ratio>8:1</Ratio>
      <SafeLine>0</SafeLine>
      <SupplierCode>String</SupplierCode>
      <Underlays>
        <DesignAreaUnderlay>
          <Description>String</Description>
          <Euid>00000000-0000-0000-0000-000000000000</Euid>
          <Label>String</Label>
          <CanDesign>false</CanDesign>
          <Height>0</Height>
          <IsPrintImage>false</IsPrintImage>
          <IsProductImage>false</IsProductImage>
          <Media>
            <ContentType>String</ContentType>
            <Description>String</Description>
            <Euid>00000000-0000-0000-0000-000000000000</Euid>
            <Height>0</Height>
            <Id>0</Id>
            <Label>String</Label>
            <Realm>String</Realm>
            <RefId>String</RefId>
            <Url>String</Url>
            <Width>0</Width>
          </Media>
          <Width>0</Width>
          <X>0</X>
          <Y>0</Y>
        </DesignAreaUnderlay>
      </Underlays>
      <Width>0</Width>
    </DesignArea>
  </Areas>
  <Cost>0</Cost>
  <Depth>0</Depth>
  <Documents>
    <MediaReference>
      <ContentType>String</ContentType>
      <Description>String</Description>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Height>0</Height>
      <Id>0</Id>
      <Label>String</Label>
      <Realm>String</Realm>
      <RefId>String</RefId>
      <Url>String</Url>
      <Width>0</Width>
    </MediaReference>
  </Documents>
  <Height>0</Height>
  <Images>
    <MediaReference>
      <ContentType>String</ContentType>
      <Description>String</Description>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Height>0</Height>
      <Id>0</Id>
      <Label>String</Label>
      <Realm>String</Realm>
      <RefId>String</RefId>
      <Url>String</Url>
      <Width>0</Width>
    </MediaReference>
  </Images>
  <MinimumOrderQty>0</MinimumOrderQty>
  <PurchaseIncrement>0</PurchaseIncrement>
  <Ratio>8:1</Ratio>
  <RetailPrice>0</RetailPrice>
  <Sku>String</Sku>
  <Upc>String</Upc>
  <VendorId>String</VendorId>
  <Weight>0</Weight>
  <WholesalePrice>0</WholesalePrice>
  <Width>0</Width>
</ProductTemplateCreated>

    </soap12:Body>
</soap12:Envelope>