users@jax-ws.java.net

How to test a JAX-WS service with a object as input parameters in Netbean5.5

From: yuyin Song <yuyinsong_at_yahoo.com>
Date: Fri, 24 Nov 2006 13:14:00 -0800 (PST)

Hi All,

If the request type of a service is an object with one
or a few of attributes, how to test this service in
run time?

For JAX-WS 2.0, a service request type is an object,
or class, which has not any constructor. For example,
the following is a service request type, a class. How
to get its instances with a ncapId attribute, and test
it?

 

package localhost.smarttransducerservices;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TIMDiscoveryServiceRequestType",
propOrder = {"ncapId"})

public class TIMDiscoveryServiceRequestType {

    protected int ncapId;

    public int getNcapId() {
        return ncapId;
    }
 
    public void setNcapId(int value) {
        this.ncapId = value;
    }

}

Thanks,

yin


 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com