KXML and ksoap

Hi
SOAP communication + JAXM and RPC use to communicate on XML base messaging and attachments.
What is ksoap?Can soap run on midp emulators and palm tops?
What is KXML?
What is the status of kxml and ksoap ?? (relesed or still beta versions)
Thanks

See http://ksoap.enhydra.org
kSOAP provides a SOAP runtime for MIDP.
I've used kSOAP 1.0 and it seems pretty stable.
kXML is an XML Parser for MIDP, which kSOAP uses.

Similar Messages

  • KXML and Netbeans

    Hello everyone,
    I wish to manipulate some simple XML on my J2ME application. From what i can find the best method seems to be using kXML.
    However, I am having trouble integrating this into my application as a namespace.
    Does anyone have any experience with this please?
    I am running Netbeans 5.5
    Thank You
    James

    Thanks Peace,
    But I am facing the same problem even when I use the source java files of kXML and include those in my project and use them as additional classes to my class.
    It again builds properly when I don't use the highest obfuscation level.
    But if I try to obfuscate using Level HIGH it throws the same error.
    However when I try to run this project from J2ME Wireless Toolkit, it is running fine on the emulator.
    I guess the error is something specific to Netbeans IDE. Have anyone of you encountered such a bizzare error.
    Thanks,
    Vikas

  • KXML and J2ME

    Okay, i've been reading up on the tutorials, and I think i'm grasping things alot better.
    I will make two classes, one called "Card" for each individual card - and a collection of "Card" types will create a "Stack" class - in this manner I will only have to code the collection once.
    I was hoping someone could give and example of how to translate this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Not sure if the encoding is right, i don't know much about that. -->
    <Stack>
    <Card>
    <Num> 1 </Num>
    <SideA> This is a question. </Side A>
    <SideB> This is a answer. </Side B>
    </Card>
    <!-- If this comment symbol is even correct, the flashcards would follow in the same suit -->
    </Stack>
    Into my Classes, using kXML.

    Well, yes.
    I have added the kXML package to the project, I just don't know which clas to use if the XML exists on the device, rather than a server - or if I need more than one.

  • Kxml and NanoXml

    Hi!
    I wonder if anyone used this API on the client side, i.e., has someone use this as an extension of MIDP??? How??
    Can you put this jar on some J2ME compliant device and use it in many other applications???
    I'd really appreciate some hint about this...
    Thanks
    Marco

    Never mind!!
    I've downloaded kNanoXML which only contains 4 basic classes xml related... In order to use them on a application I must import the packages/classes I want, and they will be included in the final jar file...
    But I think the problem will persist because this is not the best solution... If I develop 5 apps which need xml API, that 5 jars will include those XML classes...
    If we could extend the MIDP with other API......
    Thanks any way
    Marco

  • Preverification Error while using kXML with Netbeans IDE

    Hello All,
    I am using Netbeans IDE for wrting a program that parses a xml using
    kXML and display some results on screen.
    The Netbeans IDE gives the various obfuscation levels.
    The code is properly compiled at any level less than the
    highest obfuscation level. If I compile it at HIGH obfuscation level then it gives the following error-----
    Error preverifying class e
    VERIFIER ERROR e.a(Ll;)Lorg/kxml/kdom/Element;:
    Cannot find class org/kxml/kdom/Element
    D:\Netbeans_Workspace\TestObfuscation\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    BUILD FAILED (total time: 4 seconds)
    How can we obfuscate the program using highest level of obfuscation.
    Thanks
    Vikas

    Thanks Peace,
    But I am facing the same problem even when I use the source java files of kXML and include those in my project and use them as additional classes to my class.
    It again builds properly when I don't use the highest obfuscation level.
    But if I try to obfuscate using Level HIGH it throws the same error.
    However when I try to run this project from J2ME Wireless Toolkit, it is running fine on the emulator.
    I guess the error is something specific to Netbeans IDE. Have anyone of you encountered such a bizzare error.
    Thanks,
    Vikas

  • Kxml vs kxml2 vs wbxml4j

    Hi, All
    Could you explain differences between kxml and kxml2 java libs? The main question - what versions of oma dm supports kxml2 wbxml parcer ? Only 1.2 or previous too ?
    Also, what is better - wbxml4j or kxml or kxml2 ? What opensource stuff can I use, what to have best support of wbxml transformations ?
    Thanks in advance.

  • XML parser for commercial application.

    J2ME doesn't have a built in XML parser, which is actually pretty surprising. I know several J2ME compatible parsers exist like kXML and Xparse, but they are both licensed under the GNU Public License. In using these, doesn't that mean the entire project has to be "open source" to honor the license? This doesn't seem to be a good idea for a commercial product, so can anyone recommend any other way to parse XML?
    Thanks

    How can we parse a XML file without giving the tagname(Element name for checking)?........

  • Parsing the xml data

    Hi,
    i have the mehtods in proxy class. those methods are return the data as string. and all the data is in an XML format. now i want to parse that data to normal doc and convert into string form. give me the solution.
    Thanks

    sailesh is right! kXML is very popular pasrer for J2ME apps.
    Its pull type parser, 3 main things about kXML
    1. Reads a little bit of a document at once.
    2. Parser goes through the document by repeatedly requesting the next piece.
    3. Best suitable for J2ME application as take comparatively less memory and processing than other type of parser.
    For resource-constrained devices following parsers are frequently used -
    1. kXML
    Written exclusively for the J2ME platform (CLDC and MIDP).
    http://kxml.objectweb.org/software/downloads/
    2. NanoXML
    Version 1.6.8 for MIDP, supports DOM parsing.
    http://nanoxml.cyberelf.be/download.html
    I have used kXML and found it the best!
    Regards,
    Rohan Chandane

  • Threading long operations

    Hi
    In our J2ME-project we execute long operations like parsing (with KXml) and network activity in a separate worker thread, so the UI keeps "responsive" . Whats about operations like inserting or retrieving small amount of data (until 15 KB) from the recordstore? Is the recordstore perfomant enough or do you recommend to put it's operations in a separate thread too?
    Regards
    Michael

    v$session_longops will keep only the portions it can calculate the timed operations for and that are taking over a certain period of time. These would include full table scans, parallel query, sorting and a few others. The table being queried must also meet certain criteria. A long running session could have multiple parts to it thus some portions of the execution are obtainable through v$session_longops and others or not. You have probably had a couple that were eligible, but the transaction is still taking place but is not eligible for v$session_longops.
    Lee

  • SOAP and J2ME ?

    Does anyone have experience in using SOAP with J2ME to communicate with the web server?
    Can you please, give me good references and share your thoughts in using both together ?
    thanks
    chinimilli

    I haven't try it yet but ther is a SOAP implementation for J2ME : kSOAP (http://www.ksoap.org)
    It uses kXML (http://www.kxml.org) which I try and it work very well ;)

  • How to parse xml (kXML)

    I have some problems when I try to parse xml with the kXML parser. My xml doc looks like this:
    <?xml version="1.0" encoding="utf-8" ?>
    - <dsGreenRoom>
    - <Rooms>
    - <RoomsInfo>
    <ID>1</ID>
    <Name>Rum 101</Name>
    <Type>Dubbelrum</Type>
    <NumberOfBeds>2</NumberOfBeds>
    <Rate>980,00</Rate>
    <Currency>SEK</Currency>
    <Description>Ett genomtrevligt rum</Description>
    </RoomsInfo>
    - <RoomsInfo>
    <ID>2</ID>
    <Name>Mellanrummet</Name>
    <Type>Enkelrum</Type>
    <NumberOfBeds>1</NumberOfBeds>
    <Rate>650,00</Rate>
    <Currency>SEK</Currency>
    <Description>Ett litet tr?ngt rum i mitten</Description>
    </RoomsInfo>
    - <RoomsInfo>
    <ID>3</ID>
    <Name>Rum 102</Name>
    <Type>Flerb?ddsrum</Type>
    <NumberOfBeds>3</NumberOfBeds>
    <Rate>1250,00</Rate>
    <Currency>SEK</Currency>
    <Description>Ett ?nnu trevligare rum</Description>
    </RoomsInfo>
    </Rooms>
    </dsGreenRoom>
    And my code looks like this:
    KXmlParser parser = new KXmlParser();
                   parser.setInput(is, null);
                   Document doc = new Document();
                   doc.parse(parser);          
                   int child_count = root.getChildCount();
                   System.out.println("child = " + child_count + "\n");
                   for (int i=0; i < child_count; i++) {
              if (root.getType(i) == Node.ELEMENT) {
                   Element kid = root.getElement(i);
                        System.out.println("kid = " + kid.getName());
                   int babies = kid.getChildCount();
                   System.out.println("babies = " + babies);
                   for (int j=0; j < babies; j++) {
                        if (kid.getType(j) == Node.ELEMENT) {
                             Element room = kid.getElement(j);
                             System.out.println("room.getType() = " + room.getType(j));
                        if (room.getName().equals("ID")) {
              System.out.println("elName.getName() = " + room.getName());
              System.out.println("elName.geText() = " + room.getText(j));
              else if (room.getName().equals("Name")) {
              System.out.println("elName.getName() = " + room.getName());
              System.out.println("elName.geText() = " + room.getText(j));
                   } // end for(int j...)
              } // end if (root.getType(i)
              } //for (int i...)
    The problem is that I don't know how to get the values out of the tags:
    <ID>1</ID>
    <Name>Rum 101</Name>
    <Type>Dubbelrum</Type>
    <NumberOfBeds>2</NumberOfBeds>
    <Rate>980,00</Rate>
    <Currency>SEK</Currency>
    <Description>Ett genomtrevligt rum</Description>
    It's no problem to get the value from the firsts i.e. <ID> but I don't know how to get the value from <Name> ... <Description>. I have looked att examples but I don't understand how to do this. Can someone please help me =)

    okay, sorry, I only read the half of your problem ;-)
    You can read the content using the getText(0) method. the 0 indicates the number of the children which you want to get. That is always a 0 because you have always just one text-children in your text-tags. The content is again a children of type text!
    hth
    Kay

  • Query on using kXML parser

    Hi everyone,
    I am writing code to parse a xml document using the kXML parser. My xml document consists of attributes within the tag. My code compiles but when i run i get org.kxml.io.ParseException.
    Something which i found was that, this exception occurs only when there is some attribute within the tag.
    Why is this happening. anyone can help me?
    I would be grateful
    Thanks

    I am using kxml as well to parse a xml file and it's attributes. It works great for me. The ParseException is probably only thrown when you got an illegal xml file (no correct format) I guess.
    But post some code and check your xml file.

  • CDC Personal Profile and XML

    Hi everybody,
    does anyone here has any experiences with J9 (CDC Personal Profile) and XML document?
    Can I use SAX or Dom to parse XML files in CDC Personal Profile?
    Any help is appreciated!!

    Try kXML. It should work on any Java platform.

  • Setting cursor to Start Tag in kXML

    Hi Friends,
    I am parsing XML doc in J2ME app using kXML, after parsing XML once it sets its cursor to the end of document, can anybody tell me how can I set it to start of doc?
    after parsing doc if wanna see where is the cursor, I am using event.getType() and its showing me value '8', which is end of document.
    Thanks,
    Rohan Chandane

    Is this possible?BDB JE does not have a way to index records by ordinal position. This is a common problem with database systems. Please see the following thread.
    Re: traversing and pagination
    If you have additional questions, please don't hesitate to ask.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problems using kXml

    hi...
    am developing an application where i am using kxml parser.
    am using j2me wireless tool kit and palm emulator.
    while i try to compile my code in the tool kit, it gives error saying :
    c:\WTK104\apps\XMLTest\src\XMLTest.java:5: package org.kxml does not exist
    import org.kxml.*;
    ^
    am sure this problem is due to wrong placement of the package for kxml.
    i have downloaded kxml from the web and unzipped it. please tell me where to put that folder so that my application finds that .
    the import statement in my application is :
    import java.io.*;
    import java.util.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import org.kxml.*;
    import org.kxml.parser.*;
    thanks
    sanjib

    I used kXML in one of my projects in Eclipse and this is what I did to get it to work:
    Put the kXML JAR file in a folder that will not be included in the package for your project, i.e. NOT in src or lib or anything like that.
    Select your project in Eclipse and choose Configure Build Path.
    Select the Libraries tab and choose 'Add External JAR'.
    Now browse to the kXML JAR file and select it.
    This is the important part now. Now select the 'Order and Export' tab.
    You should see at least 3 entries (your project name, the J2ME Library and now kXML)
    Make sure there is a tick next to the kXML entry, this will tell Eclipse to include the files from the JAR whenever you build your project.
    Now if you select the 'Create Package' option for your project and check inside the created JAR file you should see all of the class files for kXML included in the correct paths.
    Never used anything other than Eclipse so I don't know how this translates, but if you know how to do something similar in the IDE you are using then that'll be the solution. Remember the important part of including the kXML JAR in the export otherwise it won't work.

Maybe you are looking for

  • Depr calculation- period control

    Hello, I have an issue with depreciation calculation. For two depr area 01,15 I choose the same depr. key(with reducing balance method) For these areas have next depr value: Area    Period  Value 01   1  100 01   2   90 01  3  80 02  1 100 02  2 100

  • Problem with make in cpan and OS 10.5.6

    Hi, my Perl installation of DBD::mysql was just broken by installing 10.5.5 and then 10.5.6 over 10.4.11. No problem, I thought, just install the new one from cpan and I'm on my way. Not so fast, is what cpan says. Or, to be more specific, this is wh

  • HP Office 8600 on network computers can't find

    I just installed an office pro 8600 it shows on the network with an IP address, but none of the computers on the network can find printer.  Printer works on all computers when usb is plugged in.  I have disabled firewalls, virus protection, made sure

  • Import wants to import duplicates--why???

    I recently consolidated photos on my server from several places and reconnected all the photos in the PSE6 organizer. As a control to make sure that all of the consolidated photos were in the catalog as expected, I imported from that folder and its s

  • Raising alerts in an asynchronous messaging scenario

    Hi    I have a simple scenario involving asynchronous messages going from a SAP box --> ABAP client proxy --> XI --> Webservice call Since the call from the SAP box is asynchronous, I would like to get an alert to a particular email id - if the messa