Author Topic: Error when inserting product with SOAP  (Read 1548 times)

David

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Error when inserting product with SOAP
« on: October 05, 2007, 02:43:52 AM »
Hi again,

I'm adding new products to KonaKart throw the WebService API, but I get this error when I try to upload something:

java.rmi.RemoteException: The String parameter called name must be given a value. It cannot be set to null or be left empty

This is part of my code, as you see I insert the parameter called name. I don't know if there is another name I must include:

articulo.setName("Unbelievable");
...
...
...
port.insertProduct(sesion, articulo); ->Error

Thank you in advance

David

paolo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 119
    • View Profile
Re: Error when inserting product with SOAP
« Reply #1 on: October 05, 2007, 03:00:18 AM »
Hi David,

Setting a product name and description is slightly more complicated than it may first appear because KonaKart is multilingual and so accepts names, descriptions and product urls for different languages.

What I suggest is for you to follow the steps in the source code we provide as an example. You can download this from http://www.konakart.com/apiexamplesfaq.php . You will see that there is a java source code file called InsertProduct.java.

Good luck,

Paolo

David

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: Error when inserting product with SOAP
« Reply #2 on: October 05, 2007, 03:11:38 AM »
Hi,

finally I put a name for the description and It seems to work, now I don't have that error and the product is in the DB of KonaKart. Anywhere I'll read that examples, they look fine

Thanks paolo