|
|
|
@@ -7,8 +7,9 @@
|
|
|
|
|
from sugarsoap_services_types import *
|
|
|
|
|
from osv import osv
|
|
|
|
|
from tools.translate import _
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import socket
|
|
|
|
|
|
|
|
|
|
IP = socket.gethostbyname(socket.gethostname())
|
|
|
|
|
try:
|
|
|
|
|
import ZSI
|
|
|
|
|
from ZSI.TCcompound import Struct
|
|
|
|
@@ -21,7 +22,7 @@ except ImportError:
|
|
|
|
|
|
|
|
|
|
# Locator
|
|
|
|
|
class sugarsoapLocator:
|
|
|
|
|
sugarsoapPortType_address = "http://localhost/sugarcrm/soap.php"
|
|
|
|
|
sugarsoapPortType_address = "http://"+ IP + "/sugarcrm/soap.php"
|
|
|
|
|
def getsugarsoapPortTypeAddress(self):
|
|
|
|
|
return sugarsoapLocator.sugarsoapPortType_address
|
|
|
|
|
def getsugarsoapPortType(self, url=None, **kw):
|
|
|
|
@@ -42,7 +43,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/create_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP + "/sugarcrm/soap.php/create_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=create_sessionResponse.typecode.ofwhat, pyclass=create_sessionResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -54,7 +55,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/end_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://" + IP + "/sugarcrm/soap.php/end_session", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=end_sessionResponse.typecode.ofwhat, pyclass=end_sessionResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -66,7 +67,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/contact_by_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://" + IP + "/sugarcrm/soap.php/contact_by_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=contact_by_emailResponse.typecode.ofwhat, pyclass=contact_by_emailResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -78,7 +79,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/user_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://" + IP + "/sugarcrm/soap.php/user_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=user_listResponse.typecode.ofwhat, pyclass=user_listResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -90,7 +91,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/search", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/search", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=searchResponse.typecode.ofwhat, pyclass=searchResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -102,7 +103,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/track_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/track_email", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=track_emailResponse.typecode.ofwhat, pyclass=track_emailResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -114,7 +115,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/create_contact", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_contact", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=create_contactResponse.typecode.ofwhat, pyclass=create_contactResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -126,7 +127,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/create_lead", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_lead", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=create_leadResponse.typecode.ofwhat, pyclass=create_leadResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -138,7 +139,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/create_account", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_account", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=create_accountResponse.typecode.ofwhat, pyclass=create_accountResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -150,7 +151,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/create_opportunity", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_opportunity", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=create_opportunityResponse.typecode.ofwhat, pyclass=create_opportunityResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -162,7 +163,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/create_case", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/create_case", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=create_caseResponse.typecode.ofwhat, pyclass=create_caseResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -174,7 +175,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=loginResponse.typecode.ofwhat, pyclass=loginResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -186,7 +187,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/is_loopback", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/is_loopback", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=is_loopbackResponse.typecode.ofwhat, pyclass=is_loopbackResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -198,7 +199,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/seamless_login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/seamless_login", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=seamless_loginResponse.typecode.ofwhat, pyclass=seamless_loginResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -210,7 +211,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_entry_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_entry_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_entry_listResponse.typecode.ofwhat, pyclass=get_entry_listResponse.typecode.pyclass)
|
|
|
|
|
try:
|
|
|
|
@@ -225,7 +226,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_entryResponse.typecode.ofwhat, pyclass=get_entryResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -237,7 +238,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_entriesResponse.typecode.ofwhat, pyclass=get_entriesResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -249,7 +250,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/set_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_entry", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=set_entryResponse.typecode.ofwhat, pyclass=set_entryResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -261,7 +262,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/set_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=set_entriesResponse.typecode.ofwhat, pyclass=set_entriesResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -273,7 +274,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/set_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=set_note_attachmentResponse.typecode.ofwhat, pyclass=set_note_attachmentResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -285,7 +286,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_note_attachment", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_note_attachmentResponse.typecode.ofwhat, pyclass=get_note_attachmentResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -297,7 +298,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/relate_note_to_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/relate_note_to_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=relate_note_to_moduleResponse.typecode.ofwhat, pyclass=relate_note_to_moduleResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -309,7 +310,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_related_notes", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_related_notes", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_related_notesResponse.typecode.ofwhat, pyclass=get_related_notesResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -321,7 +322,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/logout", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/logout", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=logoutResponse.typecode.ofwhat, pyclass=logoutResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -333,7 +334,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_module_fields", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_module_fields", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_module_fieldsResponse.typecode.ofwhat, pyclass=get_module_fieldsResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -345,7 +346,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_available_modules", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_available_modules", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_available_modulesResponse.typecode.ofwhat, pyclass=get_available_modulesResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -357,7 +358,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/update_portal_user", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/update_portal_user", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=update_portal_userResponse.typecode.ofwhat, pyclass=update_portal_userResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -369,7 +370,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/test", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/test", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=testResponse.typecode.ofwhat, pyclass=testResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -381,7 +382,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_user_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_user_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_user_idResponse.typecode.ofwhat, pyclass=get_user_idResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -393,7 +394,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_user_team_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_user_team_id", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_user_team_idResponse.typecode.ofwhat, pyclass=get_user_team_idResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -405,7 +406,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_server_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_server_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_server_timeResponse.typecode.ofwhat, pyclass=get_server_timeResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -417,7 +418,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_gmt_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_gmt_time", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_gmt_timeResponse.typecode.ofwhat, pyclass=get_gmt_timeResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -429,7 +430,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_sugar_flavor", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_sugar_flavor", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_sugar_flavorResponse.typecode.ofwhat, pyclass=get_sugar_flavorResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -441,7 +442,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_server_version", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_server_version", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_server_versionResponse.typecode.ofwhat, pyclass=get_server_versionResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -453,7 +454,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_relationshipsResponse.typecode.ofwhat, pyclass=get_relationshipsResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -465,7 +466,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/set_relationship", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_relationship", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=set_relationshipResponse.typecode.ofwhat, pyclass=set_relationshipResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -477,7 +478,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/set_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=set_relationshipsResponse.typecode.ofwhat, pyclass=set_relationshipsResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -489,7 +490,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/set_document_revision", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/set_document_revision", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=set_document_revisionResponse.typecode.ofwhat, pyclass=set_document_revisionResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -501,7 +502,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/search_by_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/search_by_module", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=search_by_moduleResponse.typecode.ofwhat, pyclass=search_by_moduleResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -513,7 +514,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/sync_get_modified_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/sync_get_modified_relationships", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=sync_get_modified_relationshipsResponse.typecode.ofwhat, pyclass=sync_get_modified_relationshipsResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -525,7 +526,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_modified_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_modified_entries", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_modified_entriesResponse.typecode.ofwhat, pyclass=get_modified_entriesResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
@@ -537,7 +538,7 @@ class sugarsoapBindingSOAP:
|
|
|
|
|
raise TypeError, "%s incorrect request type" % (request.__class__)
|
|
|
|
|
kw = {}
|
|
|
|
|
# no input wsaction
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://localhost/sugarcrm/soap.php/get_attendee_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
self.binding.Send(None, None, request, soapaction="http://"+ IP +"/sugarcrm/soap.php/get_attendee_list", encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", **kw)
|
|
|
|
|
# no output wsaction
|
|
|
|
|
typecode = Struct(pname=None, ofwhat=get_attendee_listResponse.typecode.ofwhat, pyclass=get_attendee_listResponse.typecode.pyclass)
|
|
|
|
|
response = self.binding.Receive(typecode)
|
|
|
|
|