#1  
Old 6th December 2011, 12:58
jasiustasiu jasiustasiu is offline
Junior Member
 
Join Date: Dec 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default API params in Java

Hi,
I'm writing a web service client in Java and trying to add e.g. function:
mail_domain_add(...)
What should be a type of params? When I use mail_domain_get I get HashMap as return and everything is fine. When I try to use HashMap or LinkedHashMap as type of params everything looks fine as well. I get the mail_domain_id but all params (server_id, domain, active) are not set. As a result I add new mail domain but params values are empty.
Reply With Quote
Sponsored Links
  #2  
Old 6th December 2011, 15:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

I dont use java, so I'am not able to tell you which parameter type must be used in that programming language. I guess a hashmap should work, in php its a associative array.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th December 2011, 12:12
jasiustasiu jasiustasiu is offline
Junior Member
 
Join Date: Dec 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

OK, I know already what was wrong but I still don't know exactly why. If any of you use web service generation in Eclipse with Axis, one should make changes in class <webservice_name>SOAPStub.java in constructor. Your QName should be different to QName used as a param and you should add lines:
java.lang.Class mapsf = org.apache.axis.encoding.ser.MapSerializerFactory. class;
java.lang.Class mapdf = org.apache.axis.encoding.ser.MapDeserializerFactor y.class;
with no need to use is further. If any of you can explain me what exactly happens then, I would be pleased
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 + API + BoxBilling class450dude Installation/Configuration 3 22nd August 2011 23:32
ISPConfig Monitor Java germinator Programming/Scripts 0 20th January 2011 21:36
PHP - Java Compile ToysunStory Installation/Configuration 9 4th January 2008 19:47
java runtime enviroment gabrix Suggest HOWTO 0 21st January 2007 03:51


All times are GMT +2. The time now is 22:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.