J2me web services invocation mechanism SOAP or XML-RPC?

Hi Friends,
I want to invoke webservice from j2me. To send request to webservice, which mechanism should I use? Either SOAP/XML-RPC?
I think SOAP is good way, but Is there any option for kSOAP? Means can I use something other that kSOAP?
Thanks
vikas r. khengare

Come on guys i know you can help me, please don't hesitate to write some row

Similar Messages

  • Call web service from portal/soap config .xml error

    Hi all,
    I am trying to call a web service from our portal. Setup is as follows:
    -Generate proxy classes and deploy it as a portal service
    I created this service using the wizard (Portal service from wsdl file client side) in NWDS.
    -Portal component which uses the portal service.
    When I try to run the application in the portal, I get the following exception:
    java.lang.IllegalStateException: Error in soapconfig.xml: The method mail of com.sap.portal.prt.soap.proxy.Alias portal service is not found..
    How can I solve this?
    Her is my xml  file:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
         <property name="SharingReference" value="com.sap.portal.runtime.application.soap"/>
      </application-config>
      <components>
        <component name="callwebproxy">
          <component-config>
            <property name="ClassName" value="com.portal.erbS.callwebproxy"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="org_opach">
          <component-config>
            <property name="ClassName" value="com.test.org_opach"/>
          </component-config>
          <component-profile/>
        </component>
      </components>
      <services>
        <service alias="com.sap.portal.prt.soap.proxy.Alias" name="ProxyClass">
          <service-config>
            <property name="className" value="com.sap.portal.wsdl.webservices.service.connector.ProxyClass">
            </property>
            <property name="startup" value="false"/>
            <property name="WebEnable" value="false"/>
            <property name="Webproxy" value="true"/>
            <property name="SecurityZone" value="com.sap.portal.wsdl.webservices.service.connector/DefaultSecurity"/>
          </service-config>
          <service-profile>
            <property name="SystemAlias" value="Default_system_Alias"/>
          </service-profile>
        </service>
      </services>
    </application>
    reza

    Hi,
    Check your soapconfig.xml
    Your method should be defined there. If it's not there, then you're sure to get this error.
    For every method (in Webservice) that you call from your Portal Service, you should have it defined here.
    Remember, this is autogenerated.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <!-- Portal WebService Configuration File.
      -->
    - <!-- Note: File generated automaticaly, don't modify this file.
      -->
    - <portal-webservices version="6,0,3" application-name="TestWS">
    - <portal-webservice name="com.company.mod.TestWS">
    - <webservice-method soapaction="" authenticated="false" styleenconding="RPC" javasignature="public abstract byte[] com.company.mod.TestWS.getValue(java.lang.String)" name="getValue">
    - <webservice-parameter defaultjavatype="java.lang.String" enconding="encoded" targetnamespace="http://www.w3.org/2001/XMLSchema" nillable="false" xmlattribute="false" required="true" ID="0" name="value">
      <webservice-type wsdltype="xsd:string"  javatype="java.lang.String" />
      </webservice-method>
      </portal-webservice>
      </portal-webservices>
    Regards,
    JP

  • Web Services with REST, SOAP and  JAX-RPC

    Hi,
    Can somebody who has developed web services extensively comment/suggest a java development environment that works best for developing web services mainly with REST. I've found that Eclipse with Axis2 and Tomcat works well. But I would like to get your opinion on it and some other alternatives.

    Hi,
    Please help me its urgent.
    can u give me a detail example how to do Web services
    with REST.
    Here is my id [email protected]
    Thanks in advance.You can do this in many ways. It depends on how heavy your service is. You can write a simple servlet that will take a REST (I'm assuming you know what REST is) request and parses it out, calls a server-side method and generates a REST response.
    Another way is to use a web-service container such as AXIS. You can read some examples and documentation on their website. AXIS2 has REST support as well.

  • Intermittent Could not generate stub objects for web service invocation errors

    Hi,
    I'm hoping someone can point me in the right direction...We are running Coldfusion 8 and keep getting the stub objects errors intermittently.  The web service will work for a while then it will just stop working for while, then it will start back working again.  There doesn't seem to be any rhyme or reason to it, and we're not doing anything to the server in the meantime.  I don't even know how to begin to diagnose the problem.  Has anyone ever seen this or have any ideas of some things we can check?
    Thanks!
    Holli

    It's a load-balanced environment and we've turned the bad server off for now.  Also, I was wrong.  We're running CF7. I'm getting my environments mixed up. Sorry about that. You can still get to the service on the good server though. This is the link: http://www.asthmaagents.com/services/init.cfc?WSDL  After I posted this, we were able to get a little more info.  When I went directly to the service using that link, we got this error message off and on when we would refresh the browser:
    AXIS error
    Sorry, something seems to have gone wrong... here are the details:
    Fault - Error attempting to create Java skeleton for CFC web service; nested exception is:
        coldfusion.xml.rpc.CFCInvocationException: [java.lang.NoClassDefFoundError : cfinit2ecfc338058839$funcRECORDSESSION]
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode:
    faultString: Error attempting to create Java skeleton for CFC web service; nested exception is:
        coldfusion.xml.rpc.CFCInvocationException: [java.lang.NoClassDefFoundError : cfinit2ecfc338058839$funcRECORDSESSION]
    faultActor:
    faultNode:
    faultDetail:
        {http://xml.apache.org/axis/}hostname:corpinternet1g
    Still, nothing is consistent and it's working fine on the other server.  I'm at a loss.  I really appreciate you taking a look at this! Any info will be helpful.
    Thanks!
    Holli

  • Problem parsing xml(J2ME Web Service spec) containing image in cldc/midp

    Hi,
    I have created a restful web service that generates xml file in app server. I have created xml file using JAXB2.1 spec. This xml file has many elements starting from char data to image (binary data). I could successfully create xml file and developed another test client to read the same file using JAXB. However, I am finding a problem while getting the image in the java me client (cldc1.1 and midp2.0).
    I am using J2ME Web Services Specification, using javax.xml.parsers.SAXParser to parse the xml file. Parsing is successful and got the character data. But the image data is not accurate, so I am not getting the image. I suspect the problem is with encoding but not sure how to solve this. At the server end, I verified that xml file is encoded with "UTF-8" encoding, not sure how to decode at the client end.
    I am totally confused as how to get the accurate image data, not sure if I use kxml parser would solve my problem.
    I would really appreciate if somebody can get back to me as this is very very important.

    Try to send to your web service the byte array instead of string and then convert the byte array into an image
    using a method like the following one in your service:
    // C# code
    public Image ByteArrayToImage(byte[] byteArrayIn)
         MemoryStream ms = new MemoryStream(byteArrayIn);
         Image returnImage = Image.FromStream(ms);
         return returnImage;
    }There can be some problem between encoding in J2ME and .Net so try different encodings in gathering the image bytes in your j2ME application, but, instead of jpg which has more encodings, try png that is a more standardized image compression(open standard).

  • How many are J2me Web service programming masters?

    I have created demo web service successfully and checked in browser..
    when i tried to implement in j2me then :
    exception on invoking this line :
    resultObj = op.invoke(inputObject);
    exceptiuon is like this :
    Error : java.rmi.ServerException:
    [String: JAXRPC.TIE.04: Internal Server Error (JAXRPCTIE01: caught exception while handling request: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl)]
    why this exception occur...
    note that this is my first j2me web service application..
    all the ideas releted this always welcome
    premal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hi,
    you can "borrow" the source code from [Yambo a free soft open source presentation engine (AKA XML microbrowser Xlet )|http://www.cineca.tv/labs/mhplab/index-en.html] both local and on a http remote connection.
    hope it helps..
    bye
    andrea

  • Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING

    hello colleagues,
    In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
    Error,
    Connect Diagnostics Agent
    The table does not contain any data
    Agent availables in all SLD
    SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
    Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
    Thanks

    OK, then pls follow below steps;
    - Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
    - Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
    - If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
    Let me know the results.
    Regards,
    Vivek

  • Problem creating J2ME web service client

    Hi,
    I am using netbeans (5 and 5.5 beta 2). I have created a web service which works fine. I also created a regular web service client as a standalone application which also works fine and connects to my web service with no problem.
    BUT, when I want to create a J2ME web service client (under a J2ME application) I have to locate my WSDL file. but the wizard shows me the error "WSDL file does not contain port information".
    By looking at the WSDL file I can see that port is created - or maybe I'm wrong.
    piece from WSDL file:
    <service name="myServiceName">
    <port name="myServiceSPort" binding="tns:TranslatorWSPortBinding">
    <soap:address location="myURLLocation"/>
    </port>
    </service>
    Please note that I have replaced the actual values in above piece
    I tried to use wsgen manually but it didn't help.
    Can anyone help me in generating the correct WSDL format as J2ME web service client expects?
    Thanks a lot,
    S.

    well stubs are generated separately using WTK 2.5 stub generator but the problem is with the WSDL at this point.
    S.

  • Can anybody give me complete guideance & code about using j2me web service?

    Hi to all !
    I have posted problem about using j2me web service ...
    but still nobody have give me at least one response..
    can anybody give me complete example about using webservice in j2me?
    premal

    Hi to all !
    I have posted problem about using j2me web service
    but still nobody have give me at least one
    response..
    can anybody give me complete example about using
    webservice in j2me?
    premal-----------------------------------
    Hi, You may find help using netBean IDE.In netBean IDE help, there you should find step by step solusion for web service as well soap messang technology
    your best regard
    http://www.techbd.com
    [email protected]

  • Error during web service invocation

    Below are the error details I'd received while trying to
    invoke a web service using CFINVOKE.
    Please help me to resolve this.
    Thanks
    Could not generate stub objects for web service invocation.
    java.net.ConnectException: Connection refused: connect It is
    recommended that you use a web browser to retrieve and examine the
    requested WSDL document for correctness. If the requested WSDL
    document can&apos;t be retrieved or it is
    dynamically generated, it is likely that the target web
    service has programming errors.

    Did you configure the web service client (which is bpel) for message level security ? It seems your bpel is sending some ws-security soap headers which the remote service is not able to understand (possibly , the remote server might not have been configured for ws security)

  • Getting J2ME Web Services Going

    Hi,
    I am having trouble getting web services support going. I have downloaded the Wireless Toolkit and the test I am doing to see if it is working is trying to:
    import javax.microedition.xml.rpc;
    import javax.xml.namespace;
    import javax.xml.rpc;
    import java.rmi;
    and building the application, but I've been getting errors on these. I have tried adding some jars that I have downloaded (I've really been doing a bit of trial and error here) to my classpath, but I have been so far unsuccessful. Could anyone give me some advice on how to (or where I can find information on) getting the web services API's going?
    cheers and thanks in advance
    Jay

    Hi ,
    My basic things are not cleared about j2me-web services.
    Please Can you tell me, If we want to send custom/std object like StringBuffer/Calender using kSOAP, Do we need to serialize it?
    I am sending StringBuffer object as a part of "Vector", "Vector" is synchronized so I have put StringBuffer object in Vector. So Do I need to serialize StringBuffer object also?
    Please, give your valuable suggestions?
    Thanks
    Regards
    vikas khengare

  • Web Service posting via SOAP.request - Security settings prevent access...

    I'm trying to call a web service via the SOAP.request object in javascript embedded into my Interactive Form.  I've successfully done this with SAP NetWeaver 7.0 trial version however now I'm having this issue on a production setup.  The PDF generates fine and I can fill out the form and everything.  I checked the properties of both PDF documents (one that works from the trial and one that doesn't from the prod box) and they are the same, expect the one that works is PDF Version 1.6, and the one that doesn't is PDF Version 1.7.
    Here's the client-side error:
    Acrobat EScript Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
    Acrobat Multimedia Version 8.0
    Acrobat SOAP 8.0
    NotAllowedError: Security settings prevent access to this property or method.
    SOAP.request:31:XFA:data[0]:mainform[0]:btnRelease[0]:click
    Here's the snippet of JavaScript code:
    var response = SOAP.request();
    Here are the security properties of the malfunctioning PDF:
    Security Method: No Security
    Can be Opened By: All versions of Acrobat
    Printing: Allowed
    Document Assembly: Not Allowed
    Content Copying: Allowed
    Content Copying for Accessibility: Allowed
    Page Extraction: Not Allowed
    Commenting: Allowed
    Filling of form fields: Allowed
    Signing: Allowed
    Creation of Template Pages: Allowed
    How do I determine what the culprit is?

    Michael,
    PDF Version 1.6 means Adobe Reader 7.0.x family and PDF version 1.7 means Adobe Reader 8.0.x or 9.0.x if I am not wrong.
    Also if you check LiveCycle Designer Help (Using LiveCycle Designer ES > Working with Data Sources > About data sources > Working with data connections) it clearly says that with LiveCycle Designer 8.0 secured web services are not supported and there are additional security settings for Reader 8.0 onwards, that may be causing the issue.
    Chintan

  • Web service response contains SOAP Headers with "mustUnderstand" true

    Hi
    I have a requirement where in I have to consume a web service as adaptive web service model, and while executing the service pass a mandatory parameter to the soap header. We are able to set the mandatory parameter to the soad header. We got the code snippet to do this from a wiki link
    http://wiki.sdn.sap.com/wiki/display/WDJava/FAQ-Models-AdaptiveWebService#FAQ-Models-AdaptiveWebService-WhatarethefunctionalgapsofthecurrentAdpativeWSModelImporter%3F
    On executing the service now through web dynpro we are getting the below error
    "Web service response contains SOAP Headers with "mustUnderstand" true which are not handled by the client runtime"
    Any thoughts on how to handle this mustUnderstand attribute with some code snippet? Appreciate all help.
    Thanks,
    KN.

    Hi
    Have you found the workaround?
    Sorry for refreshing topic. Flag mustUnderstand ='1' in response is unussual thing.
    BR

  • Web service connection problem via web service data control (SOAP/REST)

    Hi
    I developed a simple "hello word" web service that I deployed on Integrated WLS.
    Web service works fine - I tested it from SoapUI.
    I created another application to call "hello word" using  "web service data control (SOAP/REST)" in JDeveloper.
    When I test it via "Oracle ADF Model Tester" application works as I'm expecting, but when I create JSPX page,
    drag and drop webservice method as ADF parameter form and run it receive notification (screenshot):
    "WSM-07620 : Agent cannot enforce policies due to either failure in retrieving polices or error in validations, detail= "WSM-02557 The documents required to configure the Oracle Web Services Manager runtime have not been retrieved from the Policy Manager application (wsm-pm), possibly because the application is not running or has not been deployed in the environment. The query "&(@appliesTo~="WS-CONNECTION()")(policysets:global/%)" is queued for later retrieval. "."
    What I'm doing wrong?
    Why I'm able to access web service from any other application but not from jdeveloper?
    Regards

    Hi,
    I am not sure which JDev you are using, but looks like you have some policies setup for WSDC using GPA (global policy attachment) and your policy manager(wsm-pm) is not running. Can you check if the wsm-pm application is properly deployed in your Integrated WLS. You can see this from the list of deployed apps in WLS console.
    -Vishal

  • NetBeans 5.5 j2me web service client...how to?

    Hi,
    I am new to web services and j2me, so this question might be very simple.
    I have created a project (simple web service) and tested it and all work ok...
    I try to create a midlet to consume this web service so I do the following:
    (1) Create a mobile->Mobile Application project
    (2) Add a new file-> j2me web service client
    (3) On running web service I insert the url of the wsdl of the previous web service
    (4) Press retrieve WSDL (everything seem to work ok up to this point)
    (5) I keep the check box Create Simple midlet checked
    A packet with two files is created: blablah.wsclient, blablablah.wsdl
    No midlet is created and when I try to create my own nothing I dont know how to access the web services methods...
    Is it a bug of netbeans 5.5?
    Can someone provide a link for a simple tutorial or at least make clear how to access the method of the web service?
    Thanx in advance!

    I'm facing the same problem with NetBeans 5.5.1 while I had no trouble with NetBeans 5.5 (I wonder why I updated :-( )
    I hope someone can help us.
    Best regards
    edit:
    It should be due JDK 1.6; I will try and I'll let you have my results.
    Rread this:
    http://www.netbeans.org/issues/show_bug.cgi?id=90112
    Edited by: NikJ2ME on Oct 13, 2007 5:05 AM

Maybe you are looking for

  • Runtime error "DBIF_RSQL_INVALID_RSQL" during unicode preconversion SPUMG

    Hi experts, I was performing the unicode preconversion with spumg on ECC 5.0. The system environment is HP-UX 11.31 and Oracle 10g. During  the scan lever 2: tables without language info, there's always an error when scan table "VBSEGK", meanwhile th

  • PowerBook G4 17" 1.67Ghz - Coolest Peripherals

    I am looking for some cool aluminum wireless speakers to go with my PowerBook G4. I am also interested in the coolest stand (rain design, maybe?) Coolest mouse pad... Coolest mouse... I would like everything aluminum or a very close silver, if possib

  • LibreOffice Writer - problem with images proportional resizing

    Hi, Looks like in LibreOffice Writer I can't anymore resize images proportionally using MAJ+click/drag. Anyone has the same issue ? I don't know if this started with the last update. Note that I can resize proportionally in Libreoffice's Impress. Las

  • Failed to create deployable object

    Hello All, We have upgraded my portal,web as and developer stuido from SP14 to SP12. All the web dynrpo applications on the portal pages have stopped functioning. I cannot click on any of the web dynpro application controls nor do these applications

  • Adobe continually wants to reupdate Media Encoder 4.2 over and over..

    Adobe Updater on my iMac running Snow Leopard, weekly (automatic check for updates to my Suite of Adobe Procucts) wants to keep re-update Media Encoder 4.2. I did it a long time agao but keep getting the message to install the 100 Mbyte file Encoder