Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

XMLRPC Customer Creation
 
blawton
Jr. Member
 
Total Posts:  1
Joined:  2012-09-12
 

I’ve been scouring the forums for any help on this—I read the documentation on customer.create over on the wiki, and the wiki’s been a great help for the rest of my web API interactions (lists, info requests all work just fine, albeit with a little tweaking) but here I’m stuck. Here’s my request:

<methodCall>
        <
methodName>call</methodName>
          <
params>
            <
param>
                   <
value>
                     <
string>131681922ff52a486deb25fb7bae046f</string>
            </
value>
            </
param>
            <
param>
                 <
value>
                      <
string>customer.create</string>
            </
value>
            </
param>
            <
param>
                <
value>
                      <array>
                       <
data>
                          <
value><string>444</string></value>
                        <
value><string>email@dummy.dum</string></value>
                        <
value><string>Dummy Customer</string></value>
                        <
value><string>Dummy</string></value>
                        <
value><string></string></value>
                        <
value><string></string></value>
                        <
value><string></string></value>
                        <
value><string></string></value>
                    </
data>
                   </array>
               </
value>
           </
param>
       </
params>
    </
methodCall>

but every time it returns:

<br />
<
b>Fatal error</b>:  Cannot unset string offsets in <b>[install directory]app/code/core/Mage/Customer/Model/Customer/Api.php</bon line <b>52</b><br />

Like I said, I’ve scoured the forums on this and most XMLRPC threads have little-to-no discussion—someone even said that it flat-out doesn’t work, which would be nice to hear in the documentation! I wouldn’t use it but my dev environment is pretty limited so I want something very basic in format. Thanks for your help, all!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top