Comment on Tutorial - Web services basics By Saravanan D. Rao
Comment Added by : Anup
Comment Added at : 2013-01-02 05:11:51
Comment on Tutorial : Web services basics By Saravanan D. Rao
Getting Invalid IPv4 format J2me Midp 2.0, Asp.net version 4.0, Ksoap2-j2me-core2.1.2 . I’m using CLDC 1.1 MIDP2.0 and IIS7 Asp.net version 4.0 . My code is as follows…
public String loginVerification(String userId, String pwd){
String Method_Name = “mLoginâ€;
//String Method_Name = “LoginCheckâ€;
try{
SoapObject request = new SoapObject(Constants.NAMESPACE_URL, Method_Name);
request.addProperty(“useridâ€, userId);
request.addProperty(“passwordâ€, pwd);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransport ht = new HttpTransport(Constants.LOGIN_URL);
ht.debug = true;
ht.call(Constants.NAMESPACE_URL+Method_Name, envelope); // getting error here
SoapPrimitive result = (SoapPrimitive) envelope.getResponse();
return result.toString();
}catch(IOException e){
return e.getMessage().toString();
}catch(XmlPullParserException e){
return e.getMessage().toString();
}
}
web service is as follows…
[WebMethod]
public string mLogin(string userid, string password)
{
string message = string.Empty;
CommonDataEntity cd = new CommonDataEntity();
sqlfilter filter = new sqlfilter();
int retVal=cd.Select_CustomerLogin(filter.SqFilter(userid), filter.SqFilter(password), out message);
if (retVal > 0 && message == “Userâ€)
{
return “true#â€+cd.mLogin(userid);
}
else
{
return “false#â€+userid;
}
}
I’m not able to figure out where and what is the prob…. Need help!!
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. Hi every body.. I accomplished the task of sending
View Tutorial By: Ashray P Shetty at 2010-11-18 06:25:54
2. good
View Tutorial By: rajesh sharma at 2011-07-18 05:20:56
3. i need some simple java programs
View Tutorial By: ramya at 2009-11-24 04:25:07
4. Yes, you can use the newer one as follows
View Tutorial By: John at 2012-08-11 01:40:46
5. Plz show me how to use main method reccurssively p
View Tutorial By: Jyoti Bankar at 2011-07-14 10:31:53
6. it very useful to under stand
View Tutorial By: gurav gupta at 2009-09-24 00:20:15
7. I am using my samsung s5233 via usb connection, ru
View Tutorial By: Puneet at 2010-04-23 06:14:28
8. why we use the java in networking and What are the
View Tutorial By: ali mohammed at 2015-10-11 22:34:36
9. wats the output ?
View Tutorial By: siri at 2011-10-25 08:20:10
10. I'm sorry but your closing statement...
View Tutorial By: Al Scherer at 2009-09-15 09:33:24