This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Calling .aspx page from J2ME application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Calling .aspx page from J2ME application" Watch "Calling .aspx page from J2ME application" New topic

Calling .aspx page from J2ME application

Vijesh Vijayanath

Joined: May 13, 2006
Posts: 26

Is it possible to call a .aspx page from a J2ME application.
Actually am trying to call one .aspx page from J2ME application through this

in the .aspx page i wrote
Response.Write("from aspx page");
but am not geing the response back in the j2me emulator.
http error 401 is coming.

but when i tried from browser, am getting the response message

what can i do for this problem.
Please help me...
[ October 31, 2007: Message edited by: Vijesh V Nath ]

Vijesh Vijayanath,
Solution Architect - Mobile applications
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961

There is no problem calling ASPX. You are getting this code as part of the HTTP security protocol.

When you attempt to access a secured site, the server will send back a 401 as an indicator that you need to send user ID and password. It will continue to do so until you either exhaust its patience or you provide valid credentials.

FOr more information:

Customer surveys are for companies who didn't pay proper attention to begin with.
It is sorta covered in the JavaRanch Style Guide.
subject: Calling .aspx page from J2ME application
Similar Threads
How do I call aspx from a servlet?
Aspose.Newsletter: Delete blank Rows and Columns in a Worksheet
A simple J2me Httpconnection not working - try for yourself
Getting exception in small JDBC Servlet Program.
problem when add data through procedure using callableStatement