This discussion is archived
0 Replies Latest reply: Feb 14, 2013 4:59 AM by 991099 RSS

Help need in Java Web Service method receiving object values as null

991099 Newbie
Currently Being Moderated
Below is my web method and Package is the object received from dotnet client as a consumer. I have also defined the Package object structure. Now when I receive the data from dotnet I get only identifier value, but I get ownerid and price as null, even both values are sent by Dotnet client. I want to know whether only primitive datatype in java web service works or I need to do some configuration changes in order to have build in Wrapper class datatypes? It would be a great help if somebody explains.

@WebMethod
@WebResult(name = "PackageId")
public long createNewPackage(@WebParam(name = "Package") com.db.radar.wl.data.Package data1,@WebParam(name = "PackageDetail") PackageDetail data2,@WebParam(name = "PackageTrade") PackageTrade data3);


public class Package {
Long ownerid;
Double price;
long identifier;


}

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points