• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to access the methods in interface(parameters user defined) using wsdd.

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,
I have deployed my web services using WSDD.I have 2 classes class1 & class2.
Here is the sample of classes.
package pck1;
public class Class1 {
private int no; private int val;
public Class1(){
}
public void setno(int no){
this.no=no;}
public int getno(){
return no;}
public void setval(int val){
this.val=val;}
public int getval(){
return val;}
}
package pck1;
public class Class2 {
private int no; private int val;
public Class2(){
}
public void setno(int no){
this.no=no;}
public int getno(){
return no;}
public void setval(int val){
this.val=val;}
public int getval(){
return val;}
}
and I have an interface
package pck1;
import java.util.List;
public interface Interface1 {
public List getValues();
public Class2 synchronizeAccounts(Class1 c1); }

After deployment of web services & generated the stubs.But the client is not able to access the methods specified in the interface.But the client culd access the methods in class1 & class2.
So culd u pl.. help me out in this regard,to that I shuld be able to access the mtds in the interface which doesn't have java data types as parameters.
Excepting ur replies,
Regards,
Sonara.
Class1Class2
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe you need to write a custom serializer/deserializer for java.lang.Class.
 
Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Lasse Koskela,
Thx for ur reply.Could u please explain it how it culd be done with some samples.
Expecting ur reply,
Sonara.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Axis distribution's "samples" directory should contain sample code. Other than that, I'll have to refer you to the Axis User's Guide because I haven't used custom serializers myself.
 
There's a city wid manhunt for this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic