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,
Sekhar

 


Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to