I was able to successfully create the SalesOrder base information record with the following:<br><br><span style="font-family: courier new,monospace;">---- START ----</span><br><span style="font-family: courier new,monospace;">&lt;?php</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">require_once(&#39;vtwsclib/Vtiger/WSClient.php&#39;);</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$vtwsclib = new Vtiger_WSClient(&#39;<a href="http://vtiger.server.url">http://vtiger.server.url</a>&#39;);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$login= $vtwsclib-&gt;doLogin(&#39;admin&#39;, &#39;accessKey&#39;);</span><br style="font-family: courier new,monospace;"><br><span style="font-family: courier new,monospace;">$data = array(</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    &#39;subject&#39; =&gt; &#39;Test SalesOrder&#39;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &#39;sostatus&#39; =&gt; &#39;Created&#39;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    &#39;invoicestatus&#39;=&gt;&#39;AutoCreated&#39;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &#39;account_id&#39;=&gt; &#39;3x2&#39;, // Existing account id</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &#39;bill_street&#39; =&gt; &#39;Bill Street&#39;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &#39;ship_street&#39; =&gt; &#39;Ship Street&#39;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$result = $vtwsclib-&gt;doCreate(&#39;SalesOrder&#39;, $data);</span><span><br>
<br><span style="font-family: courier new,monospace;">var_dump($</span></span><span style="font-family: courier new,monospace;">vtwsclib-&gt;</span><span><span style="font-family: courier new,monospace;">lastError());</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">var_dump($result);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">---- END ----</span><br><br>Hope this helps.<br>
<br>Regards,<br>Prasad<br>vtiger Team<br></span><span style="font-family: courier new,monospace;"></span><br><div><span class="gmail_quote">On 11/2/09, <b class="gmail_sendername">Fusioncore</b> &lt;<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is the script.<br> I don&#39;t find the info about the product and service add syntax. but it&#39;s<br> plan on a second time<br> <br>    $client = new Vtiger_WSClient($crm_url);<br> <br>    $login = $client-&gt;doLogin($crm_username, $crm_accesskey);<br>
    if(!$login)<br>        echo &#39;Login Failed&#39;;<br>    else<br>        {<br>        echo &quot;Login Successful&lt;br /&gt;&quot;;<br>        $module = &#39;SalesOrder&#39;;<br> <br>        $record = $client-&gt;doCreate($module,<br>
            array(<br>                &#39;subject&#39;=&gt;&quot;$pack_number&quot;,<br>                &#39;duedate&#39;=&gt;&quot;$_t&quot;,<br>                &#39;description&#39;=&gt;&quot;$comment_t&quot;,<br>                &#39;recurring_frequency&#39;=&gt;&quot;$bill_reccuring_t&quot;,<br>
                &#39;cf_548&#39;=&gt;&quot;$pay_method&quot;,<br>                &#39;cf_547&#39;=&gt;&quot;$ip&quot;,<br>                &#39;cf_546&#39;=&gt;&quot;$date&quot;,<br>                &#39;cf_540&#39;=&gt;&quot;$pack_number&quot;,<br>
                &#39;accountid&#39;=&gt;&quot;$account_number&quot;,<br>                &#39;sostatus&#39;=&gt;&quot;$sostatus&quot;,<br>                &#39;total&#39;=&gt;&quot;$total&quot;,<br>                &#39;subtotal&#39;=&gt;&quot;$subtotal&quot;,<br>
                &#39;taxtype&#39;=&gt;&quot;$taxtype&quot;,<br>                &#39;contactid&#39;=&gt;&quot;$fact_contactid&quot;,<br>            )<br>        );<br>        $error = $client-&gt;lasterror();<br>        if($error) {echo $error[&#39;code&#39;] . &#39; : &#39; . $error[&#39;message&#39;];<br>
        }<br> <br>        if($record) {<br>            $salesorderid = $client-&gt;getRecordId($record[&#39;id&#39;]);<br>            }<br>        echo &quot;&lt;br /&gt;new SaleOrder id : $salesorderid &lt;br /&gt;&quot;;<br>
        }<br> <br> When my website will be open, I think I clean my code and enhance the<br> css and translation to publish it on the extension vtiger site. It&#39;s a<br> complete commerce solution totaly integrate with vtiger.<br>
 <br> Thanks for your help,<br> <br><br> Bruno<br> French-vtiger Manager<br> <br> <br> Prasad a écrit :<br> &gt; Hi Bruno,<br> &gt;<br> <br>&gt; Can you share the script?<br> &gt;<br> <br>&gt; On 11/2/09, *Fusioncore* &lt;<a href="mailto:ml@arceva.fr">ml@arceva.fr</a> &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt;&gt; wrote:<br>
 &gt;<br> &gt;     Hi Prasad,<br> &gt;<br> &gt;     The encode problem was solve by the update with the last release<br> &gt;     of the<br> &gt;     vtwsclib.<br> &gt;     But I have a new problem. When I use DoCreate action to create a<br>
 &gt;     salesorder, I have this error : ACCESS_DENIED : Permission to perform<br> &gt;     the operation is denied<br> &gt;<br> &gt;     The vtwslib user have all write permission on the crm. Do you have<br> &gt;     an idea ?<br>
 &gt;<br> &gt;<br> &gt;     Thanks,<br> &gt;<br> &gt;     Bruno<br> &gt;     French-vtiger manager<br> &gt;<br> &gt;<br> &gt;<br> &gt;     Prasad a écrit :<br> &gt;     &gt; Hi Bruno,<br> &gt;     &gt;<br> &gt;<br> &gt;     &gt; php curl is required by vtwsclib and recommended to be present for<br>
 &gt;     &gt; vtiger CRM as well.<br> &gt;     &gt;<br> &gt;     &gt; I was pointing to<br> &gt;     &gt; <a href="http://in2.php.net/manual/en/function.urlencode.php#92424">http://in2.php.net/manual/en/function.urlencode.php#92424</a>, for<br>
 &gt;     &gt; urlencode API<br> &gt;     &gt;<br> &gt;     &gt; Its used in:<br> &gt;     &gt;<br> &gt;     &gt;     * function doGet (Vtiger_HTTP_Client) and<br> &gt;     &gt;     * function send_post_data (Curl_HTTP_Client, file:<br>
 &gt;     &gt;       vtwsclib/third-party/curl_http_client.php)<br> &gt;     &gt;<br> &gt;     &gt; Regards,<br> &gt;     &gt; Prasad<br> &gt;     &gt; vtiger Team<br> &gt;     &gt;<br> &gt;<br> &gt;     &gt; On 10/7/09, *Fusioncore* &lt;<a href="mailto:ml@arceva.fr">ml@arceva.fr</a> &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt;<br>
 <br>&gt;     &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a> &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt;&gt;&gt; wrote:<br> &gt;     &gt;<br> &gt;     &gt;     php curl must be install on both server ?<br>
 &gt;     &gt;     My class was on the website server and vtiger was on an<br> &gt;     other server.<br> &gt;     &gt;     Actually curl was present only on the website server<br> &gt;     &gt;     I don&#39;t understand your other hint urlencode API, where she<br>
 &gt;     is use ?<br> &gt;     &gt;     I search on the HTTP_Client.php and I return my feedback soon<br> &gt;     &gt;<br> &gt;     &gt;<br> &gt;     &gt;     Thanks,<br> &gt;     &gt;<br> &gt;     &gt;     Bruno<br> &gt;     &gt;     French-vtiger manager<br>
 &gt;     &gt;<br> &gt;     &gt;<br> &gt;     &gt;     Prasad a écrit :<br> &gt;     &gt;<br> &gt;     &gt;     &gt; Hi Bruno,<br> &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt; PHP CURL API&#39;s are used to handle the communication.<br>
 &gt;     &gt;     &gt; You might need to tune the UTF-8 support in function<br> &gt;     __construct of<br> &gt;     &gt;     &gt; class Vtiger_HTTP_Client (file:<br> &gt;     vtwsclib/Vtiger/Net/HTTP_Client.php)<br> &gt;     &gt;     &gt;<br>
 &gt;     &gt;     &gt; I found the following article to be related:<br> &gt;     &gt;     &gt; <a href="http://markmail.org/message/m27ctd3qzzg7ts3i">http://markmail.org/message/m27ctd3qzzg7ts3i</a><br> &gt;     &gt;     &gt; Please update if you find any information.<br>
 &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt; Another hint: urlencode API is being used which could be<br> &gt;     causing<br> &gt;     &gt;     issue<br> &gt;     &gt;     &gt; with UTF-8, please watch out during your analysis.<br>
 &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt; Regards,<br> &gt;     &gt;     &gt; Prasad<br> &gt;     &gt;     &gt; vtiger Team<br> &gt;     &gt;     &gt;<br> &gt;     &gt;<br> &gt;     &gt;     &gt; On 10/7/09, *Fusioncore* &lt;<a href="mailto:ml@arceva.fr">ml@arceva.fr</a><br>
 &gt;     &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt; &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a> &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt;&gt;<br> &gt;<br> &gt;     &gt;     &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a> &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt;<br>
 &gt;     &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a> &lt;mailto:<a href="mailto:ml@arceva.fr">ml@arceva.fr</a>&gt;&gt;&gt;&gt; wrote:<br> &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt;     Hi,<br> &gt;     &gt;     &gt;     I have create a bridge who sent my website user on the<br>
 &gt;     account<br> &gt;     &gt;     &gt;     table on<br> &gt;     &gt;     &gt;     vtiger.<br> &gt;     &gt;     &gt;     This bridge extract data from the website database<br> &gt;     (utf8_general<br> &gt;     &gt;     &gt;     encode)<br>
 &gt;     &gt;     &gt;     and send it to vtiger with vtwsclib. (vtiger database was<br> &gt;     &gt;     full utf8)<br> &gt;     &gt;     &gt;     I have a problem with the accent on some string. For<br> &gt;     example, I<br>
 &gt;     &gt;     &gt;     have an<br> &gt;     &gt;     &gt;     address &quot;Avenue Jean Sébastien BACH&quot; on my website and<br> &gt;     when<br> &gt;     &gt;     I sync<br> &gt;     &gt;     &gt;     with<br> &gt;     &gt;     &gt;     crm, the address save on the crm was &quot;Avenue Jean S&quot;<br>
 &gt;     &gt;     &gt;     Does vtwsclib support accent ?<br> &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt;     Thanks,<br> &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt;     Bruno<br> &gt;     &gt;     &gt;     French-vtiger manager<br>
 &gt;     &gt;     &gt;     _______________________________________________<br> &gt;     &gt;     &gt;     Reach hundreds of potential candidates -<br> &gt;     <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>
 &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt;<br> &gt;     &gt;<br> &gt;     &gt;     &gt;<br> &gt;     &gt;<br> &gt;     ------------------------------------------------------------------------<br> &gt;     &gt;<br>
 &gt;     &gt;     &gt;<br> &gt;     &gt;     &gt; _______________________________________________<br> &gt;     &gt;     &gt; Reach hundreds of potential candidates -<br> &gt;     <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>
 &gt;     &gt;     _______________________________________________<br> &gt;     &gt;     Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br> &gt;     &gt;<br> &gt;     &gt;<br>
 &gt;<br> &gt;     &gt;<br> &gt;     ------------------------------------------------------------------------<br> &gt;<br> &gt;     &gt;<br> &gt;     &gt; _______________________________________________<br> &gt;     &gt; Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>
 &gt;     _______________________________________________<br> &gt;     Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br> &gt;<br> &gt;<br> <br>&gt; ------------------------------------------------------------------------<br>
 <br>&gt;<br> &gt; _______________________________________________<br> &gt; Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br> _______________________________________________<br>
 Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br> </blockquote></div><br>