Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!