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

Thread: Add Customer Address is not working

  1. #1
    sduffy77 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Lancaster, PA
    Posts
    142

    Default Add Customer Address is not working

    We're using v9.0.1.3 32bit w/ source.

    I'm trying to use WSI to add customers. The customer record is being added however the address records are not. Could someone look at the request that I'm making and see if there's something I'm doing wrong:

    C#/VB.NET Code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:asp="http://www.aspdotnetstorefront.com/">

       <
    soapenv:Header/>

       <
    soapenv:Body>

          <
    asp:DoIt>

             <!--
    Optional:-->

             <
    asp:AuthenticationEMail>someone@gmail.com</asp:AuthenticationEMail>

             <!--
    Optional:-->

             <
    asp:AuthenticationPassword>myPW</asp:AuthenticationPassword>

             <!--
    Optional:-->

             <
    asp:XmlInputRequestString>

    <![
    CDATA[
          <
    AspDotNetStorefrontImport Verbose="false">
    <
    Customer Action="Add">

          <
    CustomerID>0</CustomerID>

          <
    CustomerGUID>CC933196-5C78-4500-98D0-68F3FC565E07</CustomerGUID>

          <
    CustomerLevelID>0</CustomerLevelID>

          <
    RegisterDate></RegisterDate>

          <
    EMail>someone@gmail.com</EMail>

          <
    Password>temp123</Password>

          <
    FirstName>Joe</FirstName>

          <
    LastName>Smoe</LastName>

          <
    SkinID>1</SkinID>

          <
    Phone>717-555-5555</Phone>

          <
    OkToEMail>1</OkToEMail>

          <
    IsAdmin>3</IsAdmin>

          <
    BillingEqualsShipping>1</BillingEqualsShipping>

          <
    LastIPAddress />

          <
    LocaleSetting>en-US</LocaleSetting>

          <
    MicroPayBalance>0.0000</MicroPayBalance>

          <
    RecurringShippingMethodID>1</RecurringShippingMethodID>

          <
    BillingAddressID>0</BillingAddressID>

          <
    ShippingAddressID>0</ShippingAddressID>

          <
    GiftRegistryGUID>F2F10B9B-A7C4-4CE5-B61D-476E21E07BA5</GiftRegistryGUID>

          <
    GiftRegistryIsAnonymous>1</GiftRegistryIsAnonymous>

          <
    GiftRegistryAllowSearchByOthers>1</GiftRegistryAllowSearchByOthers>

          <
    GiftRegistryHideShippingAddresses>1</GiftRegistryHideShippingAddresses>

          <
    CODCompanyCheckAllowed>0</CODCompanyCheckAllowed>

          <
    CODNet30Allowed>0</CODNet30Allowed>

          <
    Deleted>0</Deleted>

          <
    CreatedOn></CreatedOn>

          <
    Over13Checked>1</Over13Checked>

          <
    StoreCCInDB>1</StoreCCInDB>

          <
    IsRegistered>1</IsRegistered>

          <
    LockedUntil>2007-03-03T19:16:36</LockedUntil>

          <
    AdminCanViewCC>1</AdminCanViewCC>

          <
    PwdChanged>2013-11-08</PwdChanged>

          <
    BadLoginCount>0</BadLoginCount>

          <
    Active>1</Active>

          <
    PwdChangeRequired>0</PwdChangeRequired>

          <
    SaltKey>-1</SaltKey>

          <
    VATSetting>1</VATSetting>

          <
    VATRegistrationID />

          <
    Address>

            <
    AddressID>0</AddressID>

            <
    AddressGUID>5B86AD2E-7B06-4A07-8222-35A698ADD44C</AddressGUID>

            <
    CustomerID>0</CustomerID>

            <
    NickName />

            <
    FirstName>Joe</FirstName>

            <
    LastName>Smoe</LastName>

            <
    Company />

            <
    Address1>700 Indian Springs Drive</Address1>

            <
    Address2></Address2>

            <
    Suite />

            <
    City>Lancaster</City>

            <
    State>PA</State>

            <
    Zip>17601</Zip>

            <
    Country>United States</Country>

            <
    ResidenceType>1</ResidenceType>

            <
    Phone>717-555-5555</Phone>

            <
    Email>someone@gmail.com</Email>

            <
    PaymentMethodLastUsed />

            <
    CardType />

            <
    CardName></CardName>

            <
    CardExpirationMonth />

            <
    CardExpirationYear />

            <
    eCheckBankABACode />

            <
    eCheckBankAccountNumber />

            <
    eCheckBankAccountType />

            <
    eCheckBankName />

            <
    eCheckBankAccountName></eCheckBankAccountName>

            <
    PONumber />

            <
    Deleted>0</Deleted>

            <
    CreatedOn></CreatedOn>

            <
    CardStartDate />

            <
    CardIssueNumber />

            <
    Crypt>1</Crypt>

          </
    Address>

        </
    Customer>
              </
    AspDotNetStorefrontImport>
    ]]>
            </
    asp:XmlInputRequestString>

          </
    asp:DoIt>

       </
    soapenv:Body>

    </
    soapenv:Envelope

  2. #2
    sduffy77 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Lancaster, PA
    Posts
    142

    Default

    Nevermind we figured it out.

    You have to add an <Addresses> node around the Address Nodes and have an Action="Add" attribute on the Address Node.