J2me, webservices tutorial

hi,
im looking for some J2me and webservices tutorial. ill apprecialte early help
thanks
waiting...

JSR 172 is still not supported by many mobile phones.
So, we have to use external SOAP libraries (like kSOAP) to access XML webservices.
try , KSOAP ...I used it during one of my projects.

Similar Messages

  • Where to find example code referenced in Java WebServices Tutorial, v1.5_01

    Java WebServices Tutorial, v1.5_01 refenced a lot of code examples, which are supposed to be in <JWSDP_HOME>/docs/tutorial/examples.
    I have downloaded and installed "Java Web Services Developer Pack v1.5" and "Java WebServices Tutorial, v1.5_01" from http://java.sun.com/webservices/downloads/webservicespack.html
    But none of these downloads includes the code examples.
    Thanks for any hitns.

    Thanks.
    But you were talking about a different set of examples referenced in a different document. You can get these examples when you install downloaded file:jwsdp-1_5-windows-i586.exe
    The code examples I am looking for are referenced in:
    "Java WebServices Tutorial, v1.5_01"
    and this document can be downloaded at:
    http://java.sun.com/webservices/downloads/webservicespack.html

  • Sun J2ee webservice tutorial doubt

    Hi,
    I am trying to understand how the JAX RPC static stub client is built in Sun Webservices tutorial
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC3.html
    Here we have HelloIF and HelloImpl classes. Both these classes are in the
    package helloservice.
    package helloservice;
    public interface HelloIF extends Remote {
    }These have been built using
        asant build, asant create-war, asant deploy-war commands.Now the client HelloClient.java is in package staticstub.
    package staticstub;
    import javax.xml.rpc.Stub;
    public class HelloClient {
    public static void main(String[] args) {
    HelloIF hello = (HelloIF)stub;
    }}I wanted to know how does HelloClient compile WITHOUT importing package helloservice in which HelloIF has been declared.
    Isn't this against the basic java rules.
    Or is there a smart way ANT does.
    Can someone please explain or give me a plain javac command to compile the HelloClient.java
    regards
    Vasim

    Hello,
    Could you post a stack trace?
    Thanks,
    Bruce
    zbcong wrote:
    >
    hello
    i want to deploy the jax-rpc sample that come with the sun's tutorial(hello) and
    can works well in the tomcat into wls7,but the wls tell me that some files can't
    be found,then i add enough jar files under the jwsdp to the lib directory of the
    war package till the deployment success,but when i invoke it in the browser,the
    browser tell me "no jax-rpc context available",why?and the same package even can't
    be deployed in the jboss,the jboss always complain that the "class not found",but
    i am sure the classes is included in the lib jar files,why?who can help me?
    thank you

  • J2ME Webservices and https?

    does anyone have the anwser?
    I found 3 parst of a tutorial from IBM Building a secure SOAP client for J2ME ...u can find them on sites:
    http://www-128.ibm.com/developerworks/edu/ws-dw-ws-soa-securesoap1.html
    http://www-128.ibm.com/developerworks/edu/ws-dw-ws-soa-securesoap2.html
    http://www-128.ibm.com/developerworks/edu/ws-dw-ws-soa-securesoap3.html
    but as far as I can understand u can secure WS in J2ME only if u use the java card? isn't there another way? anyone please?
    is there a way to use https for calling web-services in J2ME (CLDC 1.1/MIDP2.0 ) without any cards?
    I also found a link to Secure your Web services (JSR-172)
    http://developer.sonyericsson.com/wiki/display/leftnav/Secure+your+Web+services+(JSR-172)
    Everything works fine....till when u want to create a stub in wireless toolkit....u get an error...JSR-172 webservices specification dosn't support HTTPS support....
    so is there any way to use HTTPS and JSR-172 or a sample how to write a secure stub or secure your WS with WS-Security standards?
    Thank YOU for any answers!

    I found solution, but I don't know, if it's pure.
    When I change crossdomain.xml like this:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
        <site-control permitted-cross-domain-policies="all" />
        <allow-access-from domain="*" to-ports="*" secure="true"/>
        <allow-access-from domain="*" to-ports="*" secure="false"/>
        <allow-http-request-headers-from domain="*" headers="*" secure="true" />
        <allow-http-request-headers-from domain="*" headers="*" secure="false" />
    </cross-domain-policy>
    It started to work fine.
    Strange solution...
    David

  • TopLink Workbench Webservices tutorial

    Hi,
    can you point me to a tutorial explaining how to use TopLink and Webservices ? I know there is an article and sample code on OTN for webservices/toplink but it doesn't say how you actually start ..
    That is : which are the steps one would have to make to expose TopLink data (objects) through webservices ?
    Thank you,
    F

    Hi there,
    Can you provide a little more information about the type of TopLink project you currently have mapped? Presumably you have mapped your object model to a relational database and wish to access the cached TopLink data through a web service?
    Our TopLink 10.1.3 release offers the ability to use TopLink as a serializer/deserializer in a web service environment, as highlighted in the How To: http://www.oracle.com/technology/products/ias/toplink/preview/10.1.3dp3/howto/webSrv/index.htm , but I'm guessing that's not what you're looking for. Let me know which article you were looking at on OTN and I can point you in the right direction from there.
    Regards,
    Dave

  • The Tutorial files for Java webservices tutorial

    hi ,
    The links given on the Java Web services tutorial, to download the source code for the samples dealt in the book seems to be outdated, Does any one have new link.
    Here is the old link
    http://java.sun.com/webservices/download/webservicespack.html.
    thanks for your help..
    chiranjeevi.

    never mind,
    Looks like the book has wrong link,
    it has
    http://java.sun.com/webservices/download/webservicespack.html
    where it should be
    http://java.sun.com/webservices/downloads/webservicespack.html
    thank you,
    Chiranjeevi.

  • Migrating old BC4J Webservice tutorial from JDev9i to JDev10g

    I was asked to develop a simple web service that pulls data out of some tables in our oracle database. I'm familiar with BC4Js and thought it would be easy to try out an old tutorial found on the OTN website:
    Publishing BC4J Components as a Web Services
    http://www.oracle.com/technology/tech/webservices/htdocs/series/pattern/index.html
    Easily written with JDev9i and runs smoothly on the OC4J that comes with it.
    IDE 9.0.3.10.35
    BC4J 9.0.3.10.7
    JDK 1.3.1_02
    OC4J 9.0.3.0.0
    However, when I try (even beginning from the scratch) it out on JDev10g production
    IDE 10.1.2.18.38
    BC4J 10.1.2.18.73
    JDK 1.4.2_06
    OC4J 10.1.2.0.2
    I'm getting the infamous oracle.jbo.common.ampool.ApplicationPoolException
    <faultstring>oracle.jbo.common.ampool.ApplicationPoolException: JBO-30003: The application pool (com.optus.onpsj.dal.ONPSModuleLocal) failed to checkout an application module due to the following exception:</faultstring>
    Any ideas? If I run a simple class without OC4J, it connects fine to the database.
    The plan is to get the web service developed using ADF and Toplink XO (to generate XML based on a defined schema), and then get it deployed to a websphere appserver (after doing the necessary changes the web service, of course).
    Any help would be greatly appreciated.
    Regards
    Sandro

    Has anyone ever been able to run a BC4J webservice with JDev10g production successfully? Or it better for me to develop the whole thing with JDev9 instead?
    Regards
    Sandro

  • Webservice tutorial

    I am new to webservices and was trying to go through the tutorial at http://www.manojc.com/?sample1. For some reason, I am getting the error:
    webss.build:
    [source2wsdd] source2wsdd: Cannot find doclet class weblogic.webservice.tools.dd
    gen.ServiceGen
    [source2wsdd] 1 error
    I have the following in my build.xml
    <pathelement location="D:/bea/weblogic81/server/lib/webservices.jar" />
    <taskdef name="source2wsdd"
    classname="weblogic.ant.taskdefs.webservices.autotype.JavaSource2DD"
         classpathref="client.class.path"/>
    and it still cannot find ServiceGen.
    Ideas?

    How did you solve this problem.

  • JSR-172 J2ME Webservice

    Hi,
    I have search the Internet for reasons to why not support rpc/literal in JSR-172, but I haven't found any good explanations yet.
    I have also read the entire JSR-172 specification, and the only thing mentioned about style and use are chapters 3.2.2 and 6.2:
    3.2.2 Operation mode
    "Implementations MUST generate stubs that use the document style and literal use (document/literal). See section 6.2, 'Operation Style attribute'.
    Note - this does restrict the web services that can be interacted with but greatly simplifies implementation. SOAP 1.2 [9] is moving away from the SOAP encoding [SOAP 1.2 Part 2 Section 4.1]."
    6.2 Operation Style attribute
    "The style attribute (specified per soap:operation element or as a default in the soap:binding element) indicates whether an operation is rpc or document oriented. In the JAX-RPC Subset programming model, document style operations are mapped to the corresponding remote methods on a service endpoint interface. The rpc operation style is not supported.
    A JAX-RPC subset client side implementation MUST support the use of services that
    follow the JAX-RPC (refer to the beginning of this section) specified document
    operation style requirements. Note that the WSDL 1.1 specification does not require
    a wrapper element for the document style operations and assumes the use of
    SOAPAction.
    The JAX-RPC specification requires that the above requirements based on the
    operation style should be hidden from the JAX-RPC programming model. A JAX-
    RPC implementation should take the responsibility for the appropriate
    representation of a SOAP message based on the operation style."
    Questions:
    1. What is negative about supporting rpc/literal in J2ME?
    2. What would be the preferred strategy when you have an environment where you expose you internal business services by generating WSDL's from the Java interfaces and you have several methods in the same interface with same signature? As far as I can see, document/literal binding will have trouble deciding what remote method to call when there is nothing in the SOAP message indicating it.

    I googled a little bit for RPC/literal vs Document/literal
    Maybe it helps...
    http://dev.eclipse.org/mhonarc/lists/alf-dev/msg00650.html
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c018da90-0201-0010-ed85-d714ff7b7019
    http://susanduncan.blogspot.com/2006/05/rpc-document-bare-wrapped-literal-get.html
    http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

  • J2ME webservice client problem

    hi,
    i am trying to use the webservice client using J2ME on Nokia 6630 device, the problem comes as follow:
    i am using webservice client at netBeans IDE 5.0. started the project and create the webservice client, compiled the project, worked on the emulator properly.
    transfered it on the device, but unfortunatily does not do anything, when i select the application and nothing happen!
    please advice, because i have several trials with no use, and i searched whole the internet, no one talked about this problem.
    thanks in advance.

    please be more specific...
    is the installation is OK?
    if it's OK, can you see the first screen of your application and when your application is freezing? do you try to connect it to the web?
    ...

  • Is there a bug in the WebService tutorial for JDeveloper 9i?

    In reading through the JDeveloper 9i tutorial for building a web service, the final step generates the DateTimeServiceStub.java, but the testing that follows does not use this class, it uses the DateTimeService class.
    I built a Web Service based on the this tutorial and when I test with "MyClass.java" it works fine, but when I try to use "MyClassStub.java" it throws the ClassNotFound Exception below:
    java.lang.NoClassDefFoundError: HTTPClient/ModuleException
         at mypackage.RandomQuoteStub.<init>(RandomQuoteStub.java:21)
         at mypackage.RandomQuoteServlet.doGet(RandomQuoteServlet.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    If we are supposed to use the Stub methods, any thought as to why it fails?
    If we are NOT supposed to use the Stub methods, any thought as to why they are generated.
    (Yes, I am a bit new to Web Service development).
    Thanks in advance for any answers,
    RB

    Hi Richard,
    I ran into another problem when I tried to create a web service and call this web service following the tutorial from Oracle9i JDeveloper Release 2.
    The following error message occured after I ran DateTimeClient class:
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
              &lt;DIV class=Section1&gt;
              &lt;P class=MsoNormal
              style=&quot;mso-list: none; mso-list-ins: &apos;&apos; 19991102T2025&quot;&gt;&amp;nbsp;
              &lt;/P&gt;
                  &lt;TABLE border=1 cellPadding=0
              style=&quot;BORDER-BOTTOM: 4.5pt outset; BORDER-LEFT: 4.5pt outset; BORDER-RIGHT:
              4.5pt outset; BORDER-TOP: 4.5pt outset; WIDTH: 100%; mso-cellspacing: 1.5pt&quot;
              width=&quot;100%&quot;&gt;
              &lt;TBODY&gt;
                 &lt;TR&gt;
                 &lt;TD     
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Report&lt;/B&gt;&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;The Web proxy was not able to authenticate you through
                    the authentication server because:&amp;#32&amp;#32&lt;b&gt;General authentication failure due to bad user ID or authentication token.&lt;/b&gt;
                    You will not be able to browse the Web through this proxy until your
                    credentials can be retrieved and verified.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/TR&gt;
                 &lt;tr&gt;
                 &lt;td
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;p class=MsoNormal&gt;&lt;b&gt;Message ID&lt;/b&gt;&lt;/p&gt;
                  &lt;/td&gt;
                  &lt;td
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;p class=MsoNormal&gt;PROXY_AUTH_FAIL_OTHER
              &lt;p&gt;&lt;/p&gt;
                  &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;TR&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Description&lt;/B&gt;&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;The user verification was not successful.&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;/TR&gt;
                  &lt;TR&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              ADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Cause&lt;/B&gt;&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;This might be due to transient network problems or due to the
                    user&apos;s not being authorized to use this Web proxy.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/TR&gt;
                 &lt;TR&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Possible Solution&lt;/B&gt;&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
                          &lt;P class=MsoNormal&gt;Contact your network support team
                                  if this problem persists, and provide the team your
                                  account information.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/T
         java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
         org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
         java.lang.String datetimeclientpackage.DateTimeClientStub.getDate()
         void datetimeclientpackage.DateTimeClient.main(java.lang.String[])
    Exception in thread main
    Process exited with exit code 1.
    By the way, I got the correct information when I tried to load:
    (1) http://159.249.94.139:8888
    (2) http://159.249.94.139:8888/soap/servlet/soaprouter
    which means that oc4j and SOAP server are running properly.
    Do you have any idea what went wrong?
    Thank you in advance.
    - Hao

  • Want to run jax-rpc sample from sun's webservice tutorial in the wls7

    hello
    i want to deploy the jax-rpc sample that come with the sun's tutorial(hello) and
    can works well in the tomcat into wls7,but the wls tell me that some files can't
    be found,then i add enough jar files under the jwsdp to the lib directory of the
    war package till the deployment success,but when i invoke it in the browser,the
    browser tell me "no jax-rpc context available",why?and the same package even can't
    be deployed in the jboss,the jboss always complain that the "class not found",but
    i am sure the classes is included in the lib jar files,why?who can help me?
    thank you

    Hello,
    Could you post a stack trace?
    Thanks,
    Bruce
    zbcong wrote:
    >
    hello
    i want to deploy the jax-rpc sample that come with the sun's tutorial(hello) and
    can works well in the tomcat into wls7,but the wls tell me that some files can't
    be found,then i add enough jar files under the jwsdp to the lib directory of the
    war package till the deployment success,but when i invoke it in the browser,the
    browser tell me "no jax-rpc context available",why?and the same package even can't
    be deployed in the jboss,the jboss always complain that the "class not found",but
    i am sure the classes is included in the lib jar files,why?who can help me?
    thank you

  • Looking for J2ME Game Tutorial

    Hi,
    I really want to start writing J2ME Game, however, at least, I need some source codes before doing anything. Is there any moving Hello World Game? Joking.
    Would u please suggest me where can I find more about J2ME Game, especially source code. I need them in urgent. THx.

    When you download the WTK 2.0 (from this site), you get example applications. Included are 3 (I think) nifty games. I also know that the Nokia SDK also comes with an example of a J2ME game.
    I think that if you are familiar with Java you don't need much than that to start writing your own games.
    shmoove

  • Any working WebServices tutorial?

    I tried Sun's app server and tutorial, but it just doesn't work!
    I kept having a 405 error when accessing my web service.
    Could anyone advice me on a link to working example?

    I figure it out!

  • Oracle TopLink as a Custom Serializer in a Webservice tutorial question

    Tutorial link: http://www.oracle.com/technology/products/ias/toplink/technical/tips/jaxRpc11/index.htm
    Has anyone successfuly completed that tutorial using Toplink and JDeveloper 10.1.3? If so I have some questions for you. If not, then it could be possible there is a bug in the IDE with the automatic creation of serializers. I read in the documentation for Oracle, that the serializer classes are to have default constructors but none of the IDE auto-generated serializers do however.
    Surya

    If anyone is interested, I have recreated the Toplink part and the directory structures including the source code and the compiled classes. All that is to be done is to create the web service. I can send it to whoever is interested in trying to solve this problem.
    I am going to give it a shot at creating the service through the IDE or creating it separately through the command prompt and see how it goes.

Maybe you are looking for

  • Flash Player crashes on every browser?

    I know this topic seems to be common, but a lot of the things I have seen in other posts really has not helped me at all. So, I think it's my turn to ask. I am on Flash 11.2.202.235. My OS is Mac OS X Lion. No matter what browser I use, or at least t

  • Creating Logical Networks and Switches via SPF

    Hi, Is it possible to create Logical switches and logical networks in VMM by calling SPF REST APIs. I can see only a GET API for logical networks and none for Logical switches. If they exist can someone point me to a link to the documentation? Thanks

  • Compressed PDF Output

    Greetings, We are doing R12.1.1 AP testing. when we run the concurrent program "Format Payment Instructions" (IBY_FD_PAYMENT_FORMAT), the output is set to PDF. According to our third party cheque print software, it cannot handle "Compressed PDF" file

  • Use BPM to Append in log message on FTP

    Hi there, I've got this small problem. We use a Async Sync bridge in order to send messages into the ECC system. The input message is a multiline message and we create a comma separated file as logging. This file (alls messages grouped into one csv f

  • Dropped frames only on xserve raid

    dropped frames only on xserve raid i'm not able to capture on xserve raid without dropped frames. tihis was a working sytem bud one morning it dosn't work. i capture on mac pro internal drives or external fw drives without problems. the xserve raid i