Hi All,
I have a Username, Password and a ID ( A test account created with these details for webservice test in a website)
I need a example Python code how i can call the billder ID. with provided username password and ID number.
I tryed the below:bUT GIVING AUTHENTICATION ERROR.. but the provided username password is correct.. there is some error in code.. which not pulling the webservices. Can someone please correct it.. Tryed lot of googling to alter code.. went into vein.:confused: :((
from ZSI import client
from ZSI import wstools
from ZSI.auth import AUTH
from DownloadInvoice_client import *
import sys
#from UploadInvoice_client import *
from pprint import pprint
authCred = (AUTH.zsibasic, 'username', 'password' )
locator = DownloadInvoiceLocator()
binding = locator.getDownloadInvoiceSoap(auth=authCred)
request = GetInvoiceListWithIDsSoapIn()
request._ArchiveData = True
request._eBillAccountID = 4875218457455365411
result = binding.GetInvoiceListWithIDs(request)
request = GetInvoiceByIDSoapIn()
request._eBillAccountID = 4875218457455365411
request._ArchiveData = False
result = binding.GetInvoiceByID(request)
for p in result._GetInvoiceByIDResult._InvoiceReportWithID:
print p._BillerID