|
Hi, The
problem is related to binding / registering input parameters to proper XSD
types. I am trying to access a .NET Web Service from a java client using AXIS. I need to send int & Boolean values as input to the web
service. Below is the code for adding parameter to the call qName =
new QName("http://tempuri.org/GPIDWebService/Service1",
"Birthday");
call.addParameter(qName, XMLType.XSD_INT,
ParameterMode.IN); qName =
new QName("http://tempuri.org/GPIDWebService/Service1",
"ForceCreate");
call.addParameter(qName,
XMLType.XSD_BOOLEAN, ParameterMode.IN); In the invoke call I am passing primitive “int” &
“boolean” values. When I execute the program I am getting below error message Server
was unable to read request. --> There is an error in XML document (1, 796).
--> Input string was not in a correct format. In
GPIDDataMigrationManager-GPIDCreate Exception.. java.lang.NullPointerException When I modified same .NET Web service to take all the input
parameters as string & pass all strings from the java client, program is
executing properly & returning the expected object. Can any one help me in understanding what is it that I am
doing wrong / missed some code / should take care of. Any help in this regard is highly appreciated!!! Thanks for the help in advance! Regards,
|
