Hi i am working on some soap request from android using ksoap2
following is my request xml <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:ns="http://dk.logica.ws/ehb/2010/01"> <soapenv:Header/> <soapenv:Body> <ns:saveData> <data> <personId>3</personId> <creatorId>3</creatorId> <created>2011-09-26T11:09:43.501</created> <type>VITAL_SIGNS</type> <status>DRAFT</status> <fromDate>2011-09-06T11:09:43.501</fromDate> <toDate>2011-09-26T11:09:43.501</toDate> <dataItems> <item> <type>unit</type> <value>mg</value> </item> <item> <type>type</type> <value>09</value> </item> <item> <type>reading_interval</type> <value>2</value> </item> <item> <type>test_start_time</type> <value>2011-09-26T11:09:43.501</value> </item> <item> <type>test_end_time</type> <value>2011-09-26T11:10:30.501</value> </item> <item> <type>glucose</type> <value>110</value> </item> <item> <type>pulserate</type> <value>75:78:75:80:85</value> </item> </dataItems> </data> </ns:saveData> </soapenv:Body> </soapenv:Envelope> and my wsdl file is just to show variable type is <definitions name="EhbService" targetNamespace="http://dk.logica.ws/ ehb/2010/01"><types><xs:schema targetNamespace="http://dk.logica.ws/ ehb/2010/01" version="1.0"><xs:complexType name="data"><xs:sequence><xs:element minOccurs="0" name="id" type="xs:long"/><xs:element minOccurs="0" name="personId" type="xs:long"/><xs:element minOccurs="0" name="creatorId" type="xs:long"/><xs:element minOccurs="0" name="created" type="xs:dateTime"/><xs:element minOccurs="0" name="type" type="xs:string"/><xs:element minOccurs="0" name="status" type="xs:string"/><xs:element minOccurs="0" name="fromDate" type="xs:dateTime"/><xs:element minOccurs="0" name="toDate" type="xs:dateTime"/><xs:element minOccurs="0" name="dataItems"><xs:complexType> and i am sending my request like this PropertyInfo pi = new PropertyInfo(); pi.setName("data"); PropertyInfo dataitem = new PropertyInfo(); dataitem.setName("dataitems"); PropertyInfo item = new PropertyInfo(); item.setName("item"); item.setValue(new SoapObject(NAMESPACE, METHOD_NAME) .addProperty("type", typetype) .addProperty("value", typeValue)); // PropertyInfo item1 = new PropertyInfo(); // item.setName("item"); // item.setValue(new SoapObject(NAMESPACE, METHOD_NAME) // .addProperty("type", unittype) // .addProperty("value", unitvalue)); dataitem.setValue(new SoapObject(NAMESPACE, METHOD_NAME) .addProperty(item) ); pi.setValue(new SoapObject(NAMESPACE,METHOD_NAME) .addProperty("personId",personid) .addProperty("creatorId",creatorId) .addProperty("created",created) .addProperty("type", type) .addProperty("status", draft) .addProperty("fromDate", fromDate) .addProperty("toDate", toDate) .addProperty(dataitem) ); i am getting exception null pointer What should i do can one help me out -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en