Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
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
 
author
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
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.
 
There's a city wid manhunt for this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic