• Welcome to KonaKart Community Forum. Please login or sign up.
 
December 22, 2024, 01:23:04 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - CyrilTempleux

1
Well, I tried to use the java_api_examples, and while I was importing all the required libraries, I realised that it solved problems of my first attempt. So I guess there was just more libraries required.

But I had to download different .jar than konakart jars in /lib, such as an older version of wss4j (1.5.1, instead of 1.6).

Anyway this works fine. Thank you very much.
2
Merry christmas to all.

I tried using KKWSAdmin by just replacing KKWSEng, and doing everything like your exemple. Here's what I tried :


KKWSAdminIfServiceLocator kkwsaisl = new KKWSAdminIfServiceLocator();
kkwsaisl.setKKWSAdminEndpointAddress("http://XX.XX.XX.XX:XXXX/konakartadmin/services/KKWSAdmin");
kkwsaisl.setEndpointAddress("KKWSAdmin", "http://XX.XX.XX.XX:XXXX/konakartadmin/services/KKWSAdmin");

KKWSAdminIf kkWSAdmin = kkwsaisl.getKKWSAdmin();

String session_id = kkWSAdmin.login(DEFAULT_USERNAME, DEFAULT_PASSWORD);


But then I got this :


Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: Failure trying to get the Call object; nested exception is:
java.lang.NoClassDefFoundError: com/workingdogs/village/DataSetException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:FR-LIL-D00009

Failure trying to get the Call object; nested exception is:
java.lang.NoClassDefFoundError: com/workingdogs/village/DataSetException
at com.konakartadmin.ws.KKWSAdminSoapBindingStub.createCall(KKWSAdminSoapBindingStub.java:7654)
at com.konakartadmin.ws.KKWSAdminSoapBindingStub.login(KKWSAdminSoapBindingStub.java:11922)
at batch.files.ImportClients.main(ImportClients.java:44)
Caused by: java.lang.NoClassDefFoundError: com/workingdogs/village/DataSetException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.getMethods(Unknown Source)
at org.apache.axis.utils.JavaUtils.isEnumClassSub(JavaUtils.java:1073)
at org.apache.axis.utils.JavaUtils.isEnumClass(JavaUtils.java:1063)
at org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerializerFactory.java:49)
at org.apache.axis.encoding.ser.BeanSerializerFactory.<init>(BeanSerializerFactory.java:42)
at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:235)
at org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)
at com.konakartadmin.ws.KKWSAdminSoapBindingStub.createCall(KKWSAdminSoapBindingStub.java:7639)
... 2 more
Caused by: java.lang.ClassNotFoundException: com.workingdogs.village.DataSetException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more


What's workingdogs ? Is that a local error or is there something I should do on the distant server ?

Thanks
3
Programming of KonaKart / Get back customers using soap
December 22, 2011, 09:51:27 am
Hi there, I want to list all the customers from my website. I used java_soap_exemples to make a simple program that uses KKWSEng to get informations from a distant server (which contains the kk app & db, ofc), using soap. This works well, I can retrieve almost everything I want from this distant server, except a simple list of registred customers.

I don't see a getAllCustomers() function or something similar, is that normal ? What is the reason of that ? How can I do this ?

Thanks
4
Programming of KonaKart / Re: Facet programming
December 08, 2011, 03:50:19 pm
I'm sorry but what you mean by calling the API ? Doing my own product manager ?
5
Programming of KonaKart / Facet programming
December 08, 2011, 02:50:56 pm
Hello everyone, I searched on this forum but I didn't find an answer to my question : how do you mix tag+manufacturer filtering with price range filtering within the same form ?

I used kkAppEng.getProductMgr().filterCurrentProdsByTags(int tagId) and kkAppEng.getProductMgr().filterCurrentProdsByManufacturer(int manufacturerId) for tag and manufacturer. I managed to use them both in the same form, quite easy. I also managed to use ProductSearch with setPriceFrom and setPriceTo to filter product within a price range. But when I want to use everything at the same time, it doesn't seem to work, the currentProd array resets when I don't want to.

If I put the kkAppEng().searchForProducts(ProductSearch ps) first (with defined price range) then filterCurrentProdsByTags (for exemple), the currentProd array only contains the products with correct tags no matter of price. If I switch them, no matter what tag or manufacturer I choose, it's all about prices regardless of anything else (still the right category though). I don't know what to do to make them everything work.

Thanks in advance