• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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.
 
Run away! Run away! Here, take this tiny ad with you:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!