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
Related Tutorials
Java program to get location meta data from an image
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
Archived Comments
1. thanks .
it helps easy to connect..
View Tutorial By: bastin at 2011-12-09 19:49:34
2. Very good !!
View Tutorial By: SGK at 2009-04-26 23:53:44
3. gr8 work :)
View Tutorial By: ahmad at 2011-03-23 01:05:57
4. Another solution to those, who feel that the probl
View Tutorial By: Zoltán P. Ackermann at 2010-12-09 01:58:51
5. how to multiply 2.54*0.7071 using only bitwise ope
View Tutorial By: vindya at 2012-01-12 07:23:08
6. Hi,
As you shown here that we have
View Tutorial By: Keyur at 2011-04-05 03:30:12
7. Thanks a lot of!! at last I understood how use Arr
View Tutorial By: Juan Carlos Aviles at 2011-03-11 05:22:03
8. thanks for the help! your tutorials really help us
View Tutorial By: Mon Bernie Gucor at 2009-02-20 19:57:35
9. Hi professional,
I tried the above code but
View Tutorial By: Srinivas at 2008-05-05 23:32:13
10. i want the database connectivity for telephone bil
View Tutorial By: rohan at 2015-04-05 05:01:46