Test SugarCRM 6.5 Community version of Soap Web Services with SOAPUI

Source: Internet
Author: User
Tags soap md5 php example web services xmlns soapui

SugarCRM 6.5.10 Community Edition is installed, SOAP WEB Services is available out of the box.


Note that the password needs to be MD5 encoded. Find an online MD5 encoder code.

SOAP Requests:

<soapenv:envelope xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd= "http://www.w3.org/2001/ XmlSchema "xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"xmlns:sug=" Http://www.sugarcrm.com/sugarcrm "xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/"> <soapenv:Header/> <soapenv:Body> & Lt;sug:login soapenv:encodingstyle= "http://schemas.xmlsoap.org/soap/encoding/" > <user_auth xsi:type= "Sug:us Er_auth "> <!--you may enter the following 2 items at any order--> <user_name xsi:type= "Xsd:string" >admin</user_name> <password xsi:type= "xsd:string" >21232f297a57a5a743894a0e4a801fc3 </password> </user_auth> <application_name xsi:type= "xsd:string" >test</application_ name> <name_value_list xsi:type= "sug:name_value_list" soapenc:arraytype= "sug:name_value[]"/> </ Sug:login> </soapenv:Body> </soaPenv:envelope> 

return Result:

<soap-env:envelope soap-env:encodingstyle= "http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-env= "http// schemas.xmlsoap.org/soap/envelope/"xmlns:xsd=" Http://www.w3.org/2001/XMLSchema "xmlns:xsi=" http://www.w3.org/ 2001/xmlschema-instance "xmlns:soap-enc=" http://schemas.xmlsoap.org/soap/encoding/"xmlns:tns="/HTTP/ Www.sugarcrm.com/sugarcrm "> <SOAP-ENV:Body> <ns1:loginresponse xmlns:ns1=" Http://www.sugarcrm.com/sug Arcrm "> <return xsi:type=" tns:entry_value "> <id xsi:type=" xsd:string ">hrt4jic1h53gog5m jd5jfvk043</id> <module_name xsi:type= "xsd:string" >Users</module_name> <name_ Value_list xsi:type= "Soap-enc:array" soap-enc:arraytype= "tns:name_value[13" "> <item xsi:type=" Tns:nam E_value "> <name xsi:type=" xsd:string ">user_id</name> <value Xsi:type
    = "Xsd:string" >1</value> </item>           <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" &GT;USER_NAME&LT;/NAME&G
                  T <value xsi:type= "xsd:string" >admin</value> </item> <item xsi:type= "TNS:  Name_value "> <name xsi:type=" xsd:string ">user_language</name> <value Xsi:type= "xsd:string" >en_us</value> </item> <item xsi:type= "Tns:name_valu E "> <name xsi:type=" xsd:string ">user_currency_id</name> <value xsi:t
                  Ype= "xsd:string"/> </item> <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" >user_is_admin</name> <value xsi:type= "xsd:string" >1</v alue> </item> <item xsi:type= "Tns:name_value" > <name xsi : TyPe= "xsd:string" >user_default_team_id</name> <value xsi:nil= "true" xsi:type= "xsd:string"/> </item> <item xsi:type= "Tns:name_value" > <name xsi:type= "x Sd:string ">user_default_dateformat</name> <value xsi:type=" xsd:string ">m/d/y</value&gt
               ; </item> <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" >us er_default_timeformat</name> <value xsi:type= "xsd:string" >H:i</value> & lt;/item> <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" >use r_number_seperator</name> <value xsi:type= "xsd:string" >,</value> </i tem> <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" >user_dec Imal_seperator</name> <value xsi:type= "xsd:string" >.</value> </item> <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" >mobile_max_list_ent
               Ries</name> <value xsi:nil= "true" xsi:type= "xsd:string"/> </item> <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" >mobile_max_subpanel_e
               Ntries</name> <value xsi:nil= "true" xsi:type= "xsd:string"/> </item> <item xsi:type= "Tns:name_value" > <name xsi:type= "xsd:string" >user_currency_name&
            lt;/name> <value xsi:type= "xsd:string" >us dollars</value> </item> </name_value_list> </return> </ns1:loginResponse> </SOAP-ENV:Body> &lt ;/soap-env:envelope>


Download: Sugarcrm-ce-6.5.10-windows-installer.exe
Installation Instructions:
The idea is that these parts will be installed automatically.
PHP 5.3.8
MySQL 5.5.16
phpMyAdmin 3.4.8

SugarCRM SOAP Interface Documentation-Webdevessential

How To:retrieve a User ID via SOAP in SugarCRM

A PHP example demonstrating how to log in and retrieve a session key using NUSOAP and the V4 SOAP API.
http://support.sugarcrm.com/04_Find_Answers/03_Developers/100Web_Services/100Soap_API/100Examples/100PHP/ logging_in_-_soap_and_php/

SugarCRM Soap Call
Http://dl.sugarforge.org/ws-testing/SOAPSonarforSugarCRM/GettingStarted/soapsonar_ Sugarcrm_getting_started.pdf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.