|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Discussion: PHP Interacting with J2ME
If you have any questions or comments about this article then please post them here!
|
|
#2
|
|||
|
|||
|
Hi, i read this article and have found it very interesting, but i am having a problem with the writing the code for the phone. Which file do i use to store the code?
__________________
regards, Fulton Last edited by DDDooGGG : June 16th, 2003 at 12:55 AM. |
|
#3
|
|||
|
|||
|
More Detail Please
Hi DDDooGGG
Please give me more detail? What do you mean which file? If like I can send you the source. Email me your email at jasonlam_ at hotmail dot com Regards, Jason |
|
#4
|
|||
|
|||
|
i downloaded the J2ME development kit and instaled no problem. Am i able to use IIS 5.1 instead of Apache?
Where does the following J2ME Source Code go: PHP Code:
How do i call this file in the mobile? |
|
#5
|
|||
|
|||
|
Learn J2ME
I assume you know Java, just follow the user guide
If you installed it on your c: drive you will find it under c:\WTK20\docs\UserGuide.doc The guide goes through a simple build and compile. Once you've done that then use the code in the article. Regards, Jason |
|
#6
|
|||
|
|||
|
Hey Jason,
Nice article! oh man i just thought JSP could link with J2ME and was dying for a better solution. PHP saved the day ![]() ok i got 3650 just for J2ME programming. I've done alot on the emulator so far. and i also got the USB bluetooth belkin adapter and tested it with my laptop and detecting the phone. works fine but now how do i move my application .jar or .jad file to the phone? any idea? and which directory does WTK store the .jar and .jad file? lookin forward to hear from you. I even emailed you once a few weeks back .. take care saeed
__________________
Hungry for Code Programming works best with a team over one single person
|
|
#7
|
|||
|
|||
|
Hi AmericanD
Sorry I must have deleted your email by mistake! If you installed it on your c: drive you will find it under c:\WTK20\apps\[name_of_project]\bin\[name_of_project].jar c:\WTK20\apps\[name_of_project]\bin\[name_of_project].jad Do you have the 'Nokia PC Suite' software from Nokia, this will allow you to upload via infrared, bluetooth or USB. Try this url URL If it doesn't work just go to URL select 'Phones' form main menu and select your phone from drop down ----> 3650 <---- and then near the bottom there should be a link about software download... then just follow a few more links and the download should start. Yes it is FREE. fyi, any language/script can link to J2ME as long as you use the same protocol, SOAP, sockets, HTTP,... etc Anymore questions or problems email me, if you don't hear from me within a few days try again ![]() I hope I've been helpful! Regards, Jason |
|
#8
|
|||
|
|||
|
Hi, I found this article very very helpful
but if could someone help me with this problem.. I have a php page and I want a MIDlet to interact with it. I want the user to enter their username and password and then the information should go to the page using POST. Could someone please help me? |
|
#9
|
|||
|
|||
|
This is an well written article, I have a problem though when I try to run the 'simple web services' example:
org.kxml.io.ParseException: unexpected: StartTag <br> line: -1 attr: null @-1:-1 Does anybody know why this is happening? Thanks in advance. |
|
#10
|
|||
|
|||
|
conoroleary,
Can you post the code you're using? Did you copy directly from the article, or did you retype it yourself? |
|
#11
|
|||
|
|||
|
Thank you for your interest FrankieShakes.
I've recognised the problem now: on the server I used the wrong 'include' path to my SOAP classes. This raises a new question for me: how do I debug SOAP servers(I had no idea from the client output what the problem was)? |
|
#12
|
|||
|
|||
|
conoroleary,
That's a good question... What SOAP package were you using on the server side? Were you using any client-side (J2ME-enabled) SOAP clients? |
|
#13
|
|||
|
|||
|
I was using NUSOAP on the server side,
Ksoap on the J2ME client. It's the servers responcibility in this instance to throw an appropriate error message, maybe $php_errormsg could be returned to the client? http://www.php.net/manual/en/reserv...s.phperror msg |
|
#14
|
|||
|
|||
|
I haven't yet played with NuSOAP... That's actually something I plan on doing early this week. Was hoping to get to it today, but things have been pretty busy for me.
As for the $php_errormsg, that seems like a good way of doing it. You could definitely build that functionality into your service. I'm working on a J2ME app that will return currency exchange information using XML-RPC... I may also look into using SOAP, as there are many SOAP services that offer currency information. I wasn't able to find any XML-RPC services, so I was developing my own. OT: Were you able to get the kSOAP examples working at all? I keep getting an exception whenever I try to run the examples through the WTK emulator. |
|
#15
|
|||
|
|||
|
What type of exception errors were you getting?
I've left this project for the moment, so I haven't tried to get KSoap to work yet. How will you keep the currency rates updated? I will be developing a similar project later in the year, and I imagine I will probably be using http://www.xe.com/ucc/ (or similar) to get the currency converision rates for 'my' web service. |
|
#16
|