title: Error in custom soap api call in magento
body: <p>I am developing a custom api using soap call in magento to login customer from mobile app to magento and then redirect back to mobile app.I have created the customer using the default soap calls in magento but there is no soap function for login the customers.i have created the custome api similar to the default customer creation method but am getting the below error. </p>
  
  <blockquote>
    <p>[faultstring] => Function ("customerCustomerUserlogin") is not a
    valid method for this service
    [faultcode] => Client
    [faultcodens] => <a href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow">http://schemas.xmlsoap.org/soap/envelope/</a></p>
  </blockquote>
  
  <p>The code below is am using </p>
  
  <pre><code>$soapclient = new SoapClient('http://localhost/magento/api/v2_soap/?wsdl');
              //$soapclient = new SoapClient('http://localhost/magento/api/soap/?wsdl',$opt);
  
              $session = $soapclient-&gt;login('soapapi','devmage123');
  
              $customerId = $soapclient-&gt;customerCustomerUserlogin($session, $loginDetails);
  </code></pre>
  
  <p>Here is the code i have used :</p>
  
  <p>in customer/etc/api.xml</p>
  
  <pre><code>&lt;config&gt;
      &lt;api&gt;
          &lt;resources&gt;
              &lt;customer translate="title" module="customer"&gt;
                  &lt;model&gt;customer/customer_api&lt;/model&gt;
                  &lt;title&gt;Customer API&lt;/title&gt;
                  &lt;acl&gt;customer&lt;/acl&gt;
                  &lt;methods&gt;
                      &lt;userlogin translate="title" module="customer"&gt;
                          &lt;title&gt;Userlogin customer&lt;/title&gt;
                          &lt;acl&gt;customer/userlogin&lt;/acl&gt;
                      &lt;/userlogin&gt;
                  &lt;/methods&gt;
                  &lt;faults module="customer"&gt;
                      &lt;login_invalid&gt;
                          &lt;code&gt;110&lt;/code&gt;
                          &lt;message&gt;Invalid Username and Password.&lt;/message&gt;
                      &lt;/login_invalid&gt;
                  &lt;/faults&gt;
              &lt;/customer&gt;
            &lt;/resources&gt;
          &lt;acl&gt;
          &lt;resources&gt;
              &lt;customer translate="title" module="customer"&gt;
                 &lt;userlogin translate="title" module="customer"&gt;
                      &lt;title&gt;Userlogin&lt;/title&gt;
                 &lt;/userlogin&gt;
              &lt;/customer&gt;
           &lt;/resources&gt;
         &lt;/acl&gt;
      &lt;/api&gt;
   &lt;/config&gt;
  </code></pre>
  
  <p>in customer/etc/wsdl.xml</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;definitions xmlns:typens="urn:{{var wsdl.name}}" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
      name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}"&gt;
      &lt;types&gt;
          &lt;schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento"&gt;
              &lt;import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" /&gt;               
  
          &lt;/schema&gt;
      &lt;/types&gt;
  
      &lt;message name="customerCustomerUserloginRequest"&gt;
          &lt;part name="sessionId" type="xsd:string" /&gt;
          &lt;part name="loginDetails" type="typens:ArrayOfString" /&gt;
      &lt;/message&gt;
      &lt;message name="customerCustomerUserloginResponse"&gt;
          &lt;part name="result" type="xsd:int"/&gt;
      &lt;/message&gt;
  
      &lt;portType name="{{var wsdl.handler}}PortType"&gt;
          &lt;operation name="customerCustomerUserlogin"&gt;
              &lt;documentation&gt;Retrieve customer data&lt;/documentation&gt;
              &lt;input message="typens:customerCustomerUserloginRequest" /&gt;
              &lt;output message="typens:customerCustomerUserloginResponse" /&gt;
          &lt;/operation&gt;            
      &lt;/portType&gt;
      &lt;binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType"&gt;
          &lt;soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /&gt;
  
          &lt;operation name="customerCustomerUserlogin"&gt;
              &lt;soap:operation soapAction="urn:{{var wsdl.handler}}Action" /&gt;
              &lt;input&gt;
                  &lt;soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /&gt;
              &lt;/input&gt;
              &lt;output&gt;
                  &lt;soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /&gt;
              &lt;/output&gt;
          &lt;/operation&gt;         
  
      &lt;/binding&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p>I Have added code above...could any one help me?</p>