2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
39 $server->wsdl->addComplexType(
46 "id" => array('name'=>"id",'type'=>'xsd:string'),
47 "filename" => array('name'=>"filename",'type'=>'xsd:string'),
48 "file" => array('name'=>"file",'type'=>'xsd:string'),
52 $server->wsdl->addComplexType(
53 'new_note_attachment',
59 "id" => array('name'=>"id",'type'=>'xsd:string'),
60 "filename" => array('name'=>"filename",'type'=>'xsd:string'),
61 "file" => array('name'=>"file",'type'=>'xsd:string'),
62 "related_module_id" => array('name'=>"related_module_id",'type'=>'xsd:string'),
63 "related_module_name" => array('name'=>"related_module_name",'type'=>'xsd:string'),
67 $server->wsdl->addComplexType(
68 'new_return_note_attachment',
74 "note_attachment"=>array('name'=>'note_attachment', 'type'=>'tns:new_note_attachment'),
78 $server->wsdl->addComplexType(
79 'return_note_attachment',
85 "note_attachment"=>array('name'=>'note_attachment', 'type'=>'tns:note_attachment'),
86 "error"=> array('name'=>'error', 'type'=>'tns:error_value'),
90 $server->wsdl->addComplexType(
97 'user_name'=>array('name'=>'user_name', 'type'=>'xsd:string'),
98 'password' => array('name'=>'password', 'type'=>'xsd:string'),
99 'version'=>array('name'=>'version', 'type'=>'xsd:string'),
104 $server->wsdl->addComplexType(
111 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
112 'type'=>array('name'=>'type', 'type'=>'xsd:string'),
113 'label'=>array('name'=>'label', 'type'=>'xsd:string'),
114 'required'=>array('name'=>'required', 'type'=>'xsd:int'),
115 'options'=>array('name'=>'options', 'type'=>'tns:name_value_list'),
116 'default_value'=>array('name'=>'name', 'type'=>'xsd:string'),
120 $server->wsdl->addComplexType(
127 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
128 'type'=>array('name'=>'type', 'type'=>'xsd:string'),
129 'relationship'=>array('name'=>'relationship', 'type'=>'xsd:string'),
130 'module'=>array('name'=>'module', 'type'=>'xsd:string'),
131 'bean_name'=>array('name'=>'bean_name', 'type'=>'xsd:string'),
136 $server->wsdl->addComplexType(
144 array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:field[]')
149 $server->wsdl->addComplexType(
157 array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:link_field[]')
164 $server->wsdl->addComplexType(
171 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
172 'value'=>array('name'=>'value', 'type'=>'xsd:string'),
175 $server->wsdl->addComplexType(
183 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:name_value[]')
188 $server->wsdl->addComplexType(
196 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:name_value_list[]')
198 'tns:name_value_list'
202 //these are just a list of fields we want to get
203 $server->wsdl->addComplexType(
211 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'xsd:string[]')
218 //these are just a list of fields we want to get
219 $server->wsdl->addComplexType(
226 'module_name'=>array('name'=>'module_name', 'type'=>'xsd:string'),
227 'module_fields'=>array('name'=>'module_fields', 'type'=>'tns:field_list'),
228 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
232 //these are just a list of fields we want to get
233 $server->wsdl->addComplexType(
240 'module_name'=>array('name'=>'module_name', 'type'=>'xsd:string'),
241 'module_fields'=>array('name'=>'module_fields', 'type'=>'tns:field_list'),
242 'link_fields'=>array('name'=>'link_fields', 'type'=>'tns:link_field_list'),
246 // a listing of available modules
247 $server->wsdl->addComplexType(
254 'modules'=>array('name'=>'modules', 'type'=>'tns:select_fields'),
255 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
259 $server->wsdl->addComplexType(
266 'number'=>array('name'=>'number', 'type'=>'xsd:string'),
267 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
268 'description'=>array('name'=>'description', 'type'=>'xsd:string'),
274 $server->wsdl->addComplexType(
281 'id'=>array('name'=>'id', 'type'=>'xsd:string'),
282 'module_name'=>array('name'=>'module_name', 'type'=>'xsd:string'),
283 'name_value_list'=>array('name'=>'name_value_list', 'type'=>'tns:name_value_list'),
287 $server->wsdl->addComplexType(
295 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:entry_value[]')
301 $server->wsdl->addComplexType(
302 'get_mailmerge_document_result',
308 'html' => array('name'=>'html', 'type'=>'xsd:string'),
309 'name_value_list'=>array('name'=>'name_value_list', 'type'=>'tns:name_value_list'),
310 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
314 $server->wsdl->addComplexType(
315 'link_name_to_fields_array',
321 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
322 'value'=>array('name'=>'value', 'type'=>'tns:select_fields'),
326 $server->wsdl->addComplexType(
334 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:name_value_list[]')
339 $server->wsdl->addComplexType(
347 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:link_value[]')
352 $server->wsdl->addComplexType(
359 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
360 'records'=>array('name'=>'records', 'type'=>'tns:link_array_list'),
364 $server->wsdl->addComplexType(
372 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:link_name_value[]')
374 'tns:link_name_value'
377 $server->wsdl->addComplexType(
385 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:link_list[]')
390 $server->wsdl->addComplexType(
391 'get_entry_result_version2',
397 'entry_list' => array('name' =>'entry_list', 'type'=>'tns:entry_list'),
398 'relationship_list' => array('name' =>'relationship_list', 'type'=>'tns:link_lists'),
402 $server->wsdl->addComplexType(
403 'return_search_result',
409 'entry_list' => array('name' =>'entry_list', 'type'=>'tns:link_list'),
413 $server->wsdl->addComplexType(
414 'get_entry_list_result',
420 'result_count' => array('name'=>'result_count', 'type'=>'xsd:int'),
421 'next_offset' => array('name'=>'next_offset', 'type'=>'xsd:int'),
422 'field_list'=>array('name'=>'field_list', 'type'=>'tns:field_list'),
423 'entry_list' => array('name' =>'entry_list', 'type'=>'tns:entry_list'),
424 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
428 $server->wsdl->addComplexType(
429 'get_entry_list_result_version2',
435 'result_count' => array('name'=>'result_count', 'type'=>'xsd:int'),
436 'next_offset' => array('name'=>'next_offset', 'type'=>'xsd:int'),
437 'entry_list' => array('name' =>'entry_list', 'type'=>'tns:entry_list'),
438 'relationship_list' => array('name' =>'relationship_list', 'type'=>'tns:link_lists'),
442 $server->wsdl->addComplexType(
449 'field_list'=>array('name'=>'field_list', 'type'=>'tns:field_list'),
450 'entry_list' => array('name' =>'entry_list', 'type'=>'tns:entry_list'),
451 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
455 $server->wsdl->addComplexType(
456 'get_server_info_result',
462 'flavor' => array('name'=>'id', 'type'=>'xsd:string'),
463 'version' => array('name'=>'id', 'type'=>'xsd:string'),
464 'gmt_time' => array('name'=>'id', 'type'=>'xsd:string'),
469 $server->wsdl->addComplexType(
476 'id' => array('name'=>'id', 'type'=>'xsd:string'),
477 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
481 $server->wsdl->addComplexType(
482 'new_set_entry_result',
488 'id' => array('name'=>'id', 'type'=>'xsd:string'),
492 $server->wsdl->addComplexType(
493 'new_set_entries_result',
499 'ids' => array('name'=>'ids', 'type'=>'tns:select_fields'),
503 $server->wsdl->addComplexType(
504 'set_entries_result',
510 'ids' => array('name'=>'ids', 'type'=>'tns:select_fields'),
511 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
515 $server->wsdl->addComplexType(
522 'id' => array('name'=>'id', 'type'=>'xsd:string'),
523 'date_modified' => array('name' =>'date_modified', 'type'=>'xsd:string'),
524 'deleted' => array('name' =>'deleted', 'type'=>'xsd:int'),
528 //these are just a list of fields we want to get
529 $server->wsdl->addComplexType(
537 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:id_mod[]')
542 $server->wsdl->addComplexType(
543 'get_relationships_result',
549 'ids' => array('name'=>'ids', 'type'=>'tns:ids_mods'),
550 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
557 $server->wsdl->addComplexType(
558 'set_relationship_value',
564 'module1'=>array('name'=>'module1', 'type'=>'xsd:string'),
565 'module1_id'=>array('name'=>'module1_id', 'type'=>'xsd:string'),
566 'module2'=>array('name'=>'module2', 'type'=>'xsd:string'),
567 'module2_id'=>array('name'=>'module_2_id', 'type'=>'xsd:string'),
572 $server->wsdl->addComplexType(
573 'set_relationship_list',
580 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:set_relationship_value[]')
582 'tns:set_relationship_value'
585 $server->wsdl->addComplexType(
586 'new_set_relationhip_ids',
593 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:select_fields[]')
598 $server->wsdl->addComplexType(
599 'new_set_relationship_list_result',
605 'created' => array('name'=>'created', 'type'=>'xsd:int'),
606 'failed' => array('name'=>'failed', 'type'=>'xsd:int'),
610 $server->wsdl->addComplexType(
611 'set_relationship_list_result',
617 'created' => array('name'=>'created', 'type'=>'xsd:int'),
618 'failed' => array('name'=>'failed', 'type'=>'xsd:int'),
619 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
623 $server->wsdl->addComplexType(
630 "id" => array('name'=>"id",'type'=>'xsd:string'),
631 "document_name" => array('name'=>"document_name",'type'=>'xsd:string'),
632 "revision" => array('name' => "revision", 'type'=>'xsd:string'),
633 "filename" => array('name' => "filename", 'type'=>'xsd:string'),
634 "file" => array('name'=>"file",'type'=>'xsd:string'),
638 $server->wsdl->addComplexType(
639 'get_entry_list_result_encoded',
645 'result_count' => array('name'=>'result_count', 'type'=>'xsd:int'),
646 'next_offset' => array('name'=>'next_offset', 'type'=>'xsd:int'),
647 'total_count' => array('name'=>'total_count', 'type'=>'xsd:int'),
648 'field_list' => array('name'=>'field_list', 'type'=>'tns:select_fields'),
649 'entry_list' => array('name'=>'entry_list', 'type'=>'xsd:string'),
650 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
654 $server->wsdl->addComplexType(
655 'get_sync_result_encoded',
661 'result' => array('name'=>'result', 'type'=>'xsd:string'),
662 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
666 $server->wsdl->addComplexType(
667 'get_quick_sync_result_encoded',
673 'result' => array('name'=>'result', 'type'=>'xsd:string'),
674 'result_count' => array('name'=>'result_count', 'type'=>'xsd:int'),
675 'next_offset' => array('name'=>'next_offset', 'type'=>'xsd:int'),
676 'total_count' => array('name'=>'total_count', 'type'=>'xsd:int'),
677 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
681 $server->wsdl->addComplexType(
682 'return_document_revision',
688 "document_revision"=>array('name'=>'document_revision', 'type'=>'tns:document_revision'),
689 "error"=> array('name'=>'error', 'type'=>'tns:error_value'),
693 $server->wsdl->addComplexType(
694 'new_return_document_revision',
700 "document_revision"=>array('name'=>'document_revision', 'type'=>'tns:document_revision'),
704 $server->wsdl->addComplexType(
705 'name_value_operator',
711 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
712 'value'=>array('name'=>'value', 'type'=>'xsd:string'),
713 'operator'=>array('name'=>'operator', 'type'=>'xsd:string'),
714 'value_array'=>array('name'=>'value_array', 'type'=>'tns:select_fields')
718 $server->wsdl->addComplexType(
719 'name_value_operator_list',
726 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:name_value_operator[]')
728 'tns:name_value_operator'
730 $server->wsdl->addComplexType(
737 'name'=>array('name'=>'name', 'type'=>'xsd:string'),
738 'prospect_list_id'=>array('name'=>'prospect_list_id', 'type'=>'xsd:string'),
739 'campaign_id'=>array('name'=>'campaign_id', 'type'=>'xsd:string'),
740 'description'=>array('name'=>'description', 'type'=>'xsd:string'),
741 'frequency'=>array('name'=>'frequency', 'type'=>'xsd:string'),
745 $server->wsdl->addComplexType(
753 array('ref'=>'SOAP-ENC:arrayType', 'wsdl:arrayType'=>'tns:newsletter[]')
759 $server->wsdl->addComplexType(
760 'get_subscription_lists_result',
766 'unsubscribed' => array('name'=>'unsubscribed', 'type'=>'tns:newsletter_list'),
767 'subscribed' => array('name'=>'subscribed', 'type'=>'tns:newsletter_list'),
768 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
771 // generic type for an array of strings
772 $server->wsdl->addComplexType(
781 'ref' => 'SOAP-ENC:arrayType',
782 'wsdl:arrayType' => 'xsd:string[]'
788 $server->wsdl->addComplexType(
789 'name_value_lists_error',
795 'name_value_lists' => array(
797 'type' => 'tns:name_value_lists'
801 'type' => 'tns:error_value'
806 $server->wsdl->addComplexType(
807 'get_entries_count_result',
813 'result_count'=>array('name'=>'result_count', 'type'=>'xsd:int'),
814 'error' => array('name' =>'error', 'type'=>'tns:error_value'),
818 $server->wsdl->addComplexType(
819 'set_entries_detail_result',
825 'name_value_lists' => array('name'=>'name_value_lists', 'type'=>'tns:name_value_lists'),
826 'error' => array('name' =>'error', 'type'=>'tns:error_value'),