Last active
August 29, 2015 13:57
-
-
Save amusarra/9836853 to your computer and use it in GitHub Desktop.
SugarCRM => SOAP Flow for Insert a cases (See http://stackoverflow.com/questions/22683350/sugar-crm-api-showing-blank-page-without-any-error/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<sug:set_entry soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<session xsi:type="xsd:string">bd9m099g9rn8j7p2mqnh29lj22</session> | |
<module_name xsi:type="xsd:string">Cases</module_name> | |
<name_value_list xsi:type="sug:name_value_list" soapenc:arrayType="sug:name_value[6]"> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">priority</name> | |
<value xsi:type="xsd:string">P1</value> | |
</item> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">status</name> | |
<value xsi:type="xsd:string">Assigned</value> | |
</item> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">type</name> | |
<value xsi:type="xsd:string">Product</value> | |
</item> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">name</name> | |
<value xsi:type="xsd:string">System not responding</value> | |
</item> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">description</name> | |
<value xsi:type="xsd:string">System not responding</value> | |
</item> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">resolution</name> | |
<value xsi:type="xsd:string">System not responding</value> | |
</item> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">account_id</name> | |
<value xsi:type="xsd:string">42422251-3d50-7803-355a-52d7fc08c605</value> | |
</item> | |
</name_value_list> | |
</sug:set_entry> | |
</soapenv:Body> | |
</soapenv:Envelope> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<sug:login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<user_auth xsi:type="sug:user_auth"> | |
<!--You may enter the following 2 items in 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"></application_name> | |
<name_value_list xsi:type="sug:name_value_list" soapenc:arrayType="sug:name_value[]"/> | |
</sug:login> | |
</soapenv:Body> | |
</soapenv:Envelope> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<sug:search_by_module soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<session xsi:type="xsd:string">qi5gekk3oivbkk1b1tq1nmd6f1</session> | |
<search_string xsi:type="xsd:string">[email protected]</search_string> | |
<modules xsi:type="sug:select_fields" soapenc:arrayType="xsd:string[1]"> | |
<select_fields xsi:type="string">Accounts</select_fields> | |
</modules> | |
<offset xsi:type="xsd:int">0</offset> | |
<max_results xsi:type="xsd:int">10</max_results> | |
<assigned_user_id xsi:type="xsd:string"></assigned_user_id> | |
<select_fields xsi:type="sug:select_fields" soapenc:arrayType="xsd:string[]"/> | |
<unified_search_only xsi:type="xsd:boolean">false</unified_search_only> | |
<favorites xsi:type="xsd:boolean">false</favorites> | |
</sug:search_by_module> | |
</soapenv:Body> | |
</soapenv:Envelope> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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:set_entryResponse xmlns:ns1="http://www.sugarcrm.com/sugarcrm"> | |
<return xsi:type="tns:new_set_entry_result"> | |
<id xsi:type="xsd:string">4818a44d-7396-1a0f-b63b-5335a0973796</id> | |
</return> | |
</ns1:set_entryResponse> | |
</SOAP-ENV:Body> | |
</SOAP-ENV:Envelope> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/sugarcrm"> | |
<return xsi:type="tns:entry_value"> | |
<id xsi:type="xsd:string">bd9m099g9rn8j7p2mqnh29lj22</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:name_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">user_name</name> | |
<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_value"> | |
<name xsi:type="xsd:string">user_currency_id</name> | |
<value xsi:type="xsd:string"/> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">user_is_admin</name> | |
<value xsi:type="xsd:string">1</value> | |
</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="xsd:string">user_default_dateformat</name> | |
<value xsi:type="xsd:string">m/d/Y</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">user_default_timeformat</name> | |
<value xsi:type="xsd:string">H:i</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">user_number_seperator</name> | |
<value xsi:type="xsd:string">,</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">user_decimal_seperator</name> | |
<value xsi:type="xsd:string">.</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">mobile_max_list_entries</name> | |
<value xsi:nil="true" xsi:type="xsd:string"/> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">mobile_max_subpanel_entries</name> | |
<value xsi:nil="true" xsi:type="xsd:string"/> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">user_currency_name</name> | |
<value xsi:type="xsd:string">US Dollars</value> | |
</item> | |
</name_value_list> | |
</return> | |
</ns1:loginResponse> | |
</SOAP-ENV:Body> | |
</SOAP-ENV:Envelope> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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:search_by_moduleResponse xmlns:ns1="http://www.sugarcrm.com/sugarcrm"> | |
<return xsi:type="tns:return_search_result"> | |
<entry_list xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:search_link_name_value[1]"> | |
<item xsi:type="tns:search_link_name_value"> | |
<name xsi:type="xsd:string">Accounts</name> | |
<records xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:link_value[1]"> | |
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:name_value[7]"> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">name</name> | |
<value xsi:type="xsd:string">Antonio Musarra</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">billing_address_city</name> | |
<value xsi:type="xsd:string">Los Angeles</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">billing_address_country</name> | |
<value xsi:type="xsd:string">USA</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">phone_office</name> | |
<value xsi:type="xsd:string">(028) 889-3489</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">assigned_user_name</name> | |
<value xsi:type="xsd:string">Chris Olliver</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">date_entered</name> | |
<value xsi:type="xsd:string">2014-01-16 15:38:39</value> | |
</item> | |
<item xsi:type="tns:name_value"> | |
<name xsi:type="xsd:string">id</name> | |
<value xsi:type="xsd:string">42422251-3d50-7803-355a-52d7fc08c605</value> | |
</item> | |
</item> | |
</records> | |
</item> | |
</entry_list> | |
</return> | |
</ns1:search_by_moduleResponse> | |
</SOAP-ENV:Body> | |
</SOAP-ENV:Envelope> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment