API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

ProductGroup_Create() method not working ....

0
Hi ,
i am trying to create a product group in e-conomic through my website(shop),it showing some kind of exceptions shown bellow

Economic.Api.Exceptions.SchemaException(E00500): The element 'accountForVatLiableDebtorInvoicesCurrentHandle' in namespace 'http://e-conomic.com' has incomplete content. List of possible elements expected: 'Number' in namespace 'http://e-conomic.com'. (id=)

 what is accountForVatLiableDebtorInvoicesCurrentHandle ??
how to fix in my method code,

quick reply is appreceated.

kind regards
sudheer ..
created Feb 26, 2013 by sudheerphp
22% Accept Rate
Q 14 A 10 C 0

2 Answers

0
Hi there,

The SchemaException means the XML you send is not valid, ie. it contains something our servers are not expecting.

Consider using a tool like fiddler to examine the XML http://www.fiddler2.com/ and compare it with the XML that we expect which you can read from https://api.e-conomic.com/secure/api1/E ... rvice.asmx by clicking the link for the given function.
answered Feb 26, 2013 by nkn
0
hi nkn,
for cration of product grop in e-conomic , i use php-soap environment and the code like this,

$client-ProductGroup_Create(array(
   'number' = xx,             
   'name' = 'xxx,
   'accountForVatLiableDebtorInvoicesCurrentHandle' = 4000)
     
   );

my first question is : what is  accountForVatLiableDebtorInvoicesCurrentHandle ??
second question : how to pass dynamically ??

quick reply is appreceated

kind regards
sudheer ..
answered Feb 26, 2013 by sudheerphp
'accountForVatLiableDebtorInvoicesCurrentHandle' = array('Number' => '4000'))

Still, this works, but theres a bug imo. I ahve to add the account manually through website, even though ProductGroup_GetAccountForVatLiableDebtorInvoicesCurrentResult shows it to be 3000, it is blank when looking at web.
Visma e-conomic A/S
...