Is it possible to connect to a web Service(JAX-RPC) with a middlet?

Is it possible to connect to a web Service(JAX-RPC) with a middlet?

Hi
Check this article: http://developers.sun.com/sw/building/codesamples/j2me-client/index.html
Mihai

Similar Messages

  • Web services - JAX-RPC/Axis/OC4J

    Hi,
    We are planning to expose some of J2EE applications as web service. It is based on JAX-RPC 1.0. I have checked it with Apache-Axis without changing any code and it worked. Will it work in OC4J without any code changes?
    1. Does OC4J or Oracle SOAP server supports(or implements) JAX-RPC?
    2. Do we need to change any code?
    rgds
    Bala Murali

    Right now we have a JAX-RPC 1.1 with JSR 109 support preview here on OTN at - this came out at OracleWorld:
    http://otn.oracle.com/tech/java/oc4j/1003/content_preview.html
    The target production date is summer 2004. There are also plans to do another drop of this preview with updated support later this year and possibly again before the production release.
    We have quite a lot of functionality that we are targetting to flesh out our Web services support in the areas of reliability, orchestration, transactions and security.
    Mike.

  • PL/SQL Web Services - JAX-RPC returning in JSON format

    Hello all,
    I have been searching on the web, inclusively on this forum, for a way of returning data in a JSON format from a PL/SQL web service.
    The threads that I have found about this issue are still unanswered.
    Does anyone know if it is possible to create a JAX-RPC web service which returns in JSON format ?
    Regards,
    Pedro

    Hi,
    JAX-RPX services are SOAP services and thus return XML. You want to use REST instead
    Frank

  • Web Service JAX-RPC/SOAP with JAXB

    Hello,
    During my research on JAX-RPC/SOAP as web service technology. I found only simple "helloworld" sample type what using simple String as aurgment. For my task, I required a more complex aurgment such as a complete contact info. I then did some sample code for JAXB and found it to be very useful as a XML/JAVA binding tool. It seems logical to use JAXB to parse and bind the complex aurgment. Though I have not seen any reference to this using it with JAX-RPC. Does JAX-RPC have the tool set to accomplish the same thing? JAX-RPC may have such thing, but using this JAXB seem logical, thus would I still "conform" to the JAX-RPC if I go this route. Any info would be much appreciative.
    Thanks in Advance,
    Mike

    The two JAX-RPC tools that I have used, the reference implementation and Apache Axis both have tools for mappiing XML to classes and vice-versa. Having used JAXB also, I have to say that both of these tools are much easier to use than JAXB.
    As far as whether it will conform, you can make a valid SOAP message using any tool you like.

  • Connect to SharePoint web service using the XML / Web Service connector

    Hi experts,
    I am currently trying to display my SharePoint list in Crystal Report. Therefore my plan is to use a SharePoint web service to get the data and paste them to the Crystal Report.
    Is it possible to use the "XML and Web services" connector of the Crystal Reports database expert?
    When I enter the web service URL, for instance:
    https://[url]/_vti_bin/lists.asmx?wsdl
    and click next... I have to enter the web service credentials.
    On the next page I have to enter Service, Port and Method.
    Do I have to enter the service URL again here?
    What If, there is no port? Can I leave that field empty?
    I know the methods, but where can I add the mandatory parameters?
    Thanks for any helps and comments!
    Sebastian

    Hi Ananth,
    thank you, but this document does not help at all.
    We are using Crystal Reports 2008 SP2.
    We want to use the Web Service Connector.
    What I need is more informationen about the Web service connect. For example - the connection in Microsoft InfoPath is much easier - there I don't have to enter a port and can choose the methods from a list.
    Is it possible to use the Crystal web service connector for MS SharePoint Webservices?
    Or must I use the Crystal SDK to carry out a connection?
    Best regards,
    Sebastian

  • Failed to connect to VMware web service: Invalid keystore

    Hi,
    We have a CPO 2.3.1 that refuses to connect to vCenter (see log extract at the end of the post).
    We recently changed our vCenter server (part of an update to 5.1).
    We tried following workarounds:
    remove and add all platform elements from the portal using SE services
    re import automation packs (the 4 from the Starter Edition v2.3.1.38)
    re set the keystore password
    No change at all...
    Would you have a clue on how to correct that?
    Thank you.
    Regards,
    Pierre
    ||235|2012/10/02 15:46:21.667|6072||||WCF: <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier><Description>Handling an exception.</Description><AppDomain>Tidal.Automation.Server.exe</AppDomain><Exception><ExceptionType>Tidal.Scheduler.Common.Communications.CommunicationException, Tidal.Scheduler.Common, Version=2.3.0.0, Culture=neutral, PublicKeyToken=fba593b23cf207cd</ExceptionType><Message>The attempt to connect to (VMware vCenter Server (603)@VMware vCenter Server (603)) has failed due to following error:  Failed to connect to VMware web service: Invalid keystore.</Message><StackTrace>   at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation, TargetConfiguration target, RuntimeUserConfiguration runtimeUser)
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.&amp;lt;&amp;gt;c__DisplayClass1c.&amp;lt;PerformServerAssistedOperation&amp;gt;b__1b(IAdapter adapter)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction, Int32 remainingRetries)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at SyncInvokePerformServerAssistedOperation(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp;amp; outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace><ExceptionString>Tidal.Scheduler.Common.Communications.CommunicationException: The attempt to connect to (VMware vCenter Server (603)@VMware vCenter Server (603)) has failed due to following error:  Failed to connect to VMware web service: Invalid keystore.
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation, TargetConfiguration target, RuntimeUserConfiguration runtimeUser)
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.&amp;lt;&amp;gt;c__DisplayClass1c.&amp;lt;PerformServerAssistedOperation&amp;gt;b__1b(IAdapter adapter)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction, Int32 remainingRetries)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at SyncInvokePerformServerAssistedOperation(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp;amp; outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</ExceptionString></Exception></TraceRecord>
    ||236|2012/10/02 15:46:21.667|6072||||An exception that was not of type RhapsodyException was caught while a webmethod call was being made.  This exception has been caught and genericized.
    ||237|2012/10/02 15:46:21.667|6072||||EXCEPTION (Tidal.Scheduler.Common.Communications.CommunicationException): The attempt to connect to (VMware vCenter Server (603)@VMware vCenter Server (603)) has failed due to following error:  Failed to connect to VMware web service: Invalid keystore.
    Stack Trace:   at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation, TargetConfiguration target, RuntimeUserConfiguration runtimeUser)
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.<>c__DisplayClass1c.<PerformServerAssistedOperation>b__1b(IAdapter adapter)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction, Int32 remainingRetries)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at SyncInvokePerformServerAssistedOperation(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    You have an invalid keystore file because the HTTPS certification has changed. You need to delete the old keystore file and restart the CPO server and then reconnect/run something against vCenter.
    There is also a possibility for Adatper Host Framework/java issues that I have seen commonly.
    If you need more help, you'll need to open a TAC case with your services contract please. We normally try to not troubleshoot logs on the forums.
    -Shaun Roberts
    CIAC/CPO Support Team Lead
    [email protected]

  • Problems connecting to php web service

    Hello
    I am pretty raw when it comes to using web services. I am facing a bit of a problem.
    I have been given a url to a web service. http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl
    I am trying to connect using cfinvoke:
    <cfinvoke webservice="http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl" method="test"  returnVariable="result"> </cfinvoke>
    <cfoutput>#result.test#</cfoutput>
    I keep getting the following error:
    Cannot generate stub objects for web service invocation.
    Name: http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl. WSDL: http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl. java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}char is referenced but not defined. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.
    Please can someone assist me in getting around this.
    Have a look at the service url if you need to.
    Ive been at it all day and im ready to pull my hair out!
    Thanks in advance

    Hi
    Ok now i am using the following code:
    <cfinvoke webservice="http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl" method="register" returnvariable="registerRequest">
        <cfinvokeargument name="wsUserName" value="delon">
        <cfinvokeargument name="wsUserPass" value="cheketri">
        <cfinvokeargument name="mobileNumber" value="0834064488">                
        <cfinvokeargument name="name" value="delon">        
        <cfinvokeargument name="gender" value="M">
        <cfinvokeargument name="birthDate" value="01-01-2010">
        <cfinvokeargument name="merchantid" value="0">
        <cfinvokeargument name="email" value="[email protected]">
    </cfinvoke>
    and getting the follosing error:
    Web  service operation register with parameters  {mobileNumber={0831727737},name={hansie},wsUserPass={smit},birthDate={01-01-2010},gender= {M},email={[email protected]},wsUserName={delon},merchantid={0}}  cannot be found.
    WHy would that be?
    I checked with the provider and the var names are correct.

  • An error occurred while trying to connect to a Web service, when InfoPath web enabled form loads.

    Hi Everyone,
    I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load.  The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
    fine the rest of the day, oddly enough. 
    A few things about my form:
    1). It is web enabled
    2). The form submits to a form library on the SP server
    3). I use the UserProfileService data connection in the form to auto-populate a few fields
    4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
    5). The form has been working fine until a few days ago
    I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped.  Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
    have the service account information.
    Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
    Schema file was already loaded: BuiltInActiveXControls.xsd
    FormServer Partial Trust - Proxy operation invoked in the SHIM process.
    FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
    Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
    The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
    Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Hi B.,
    You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
    If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
    Hope this helps.
    Daniel Christian (MCTS)

  • Laserjet Pro 400 MFP M425DN Can not connect to HP Web Services

    I have a Laserjet Pro 400 MFP M425DN  printer on a network running windows 7 and we Can not connect to HP Web Services. When we use the display on the menu it comes back with error "Internal Processing error, try again or check firmware update"  We installed the new firmware but still get the same message. IF type in our printers IP address into our browser we get the info on our printer but if we go to the HP web services tap and click enable it trys but come back with a "connection error"
    Any ideas?
    Thanks
    Paul

    I just updated my Firmware on this printer today to the latest version dated May 3 2013 and  Web Services
    worked.  Had the same type of problem you had for months and had worked with HP but could never get
    Web Services to work at my location with my Modem/Router. 
    Had tried at other locations and it would work with the old Firmware.  But for some reason it did not at my
    location with the Modem/Router I was using. 
    Again the latest Firmware fixed it.  I tried all the other solutions that I had found on the internet and non of them worked.

  • Is it possible to call an external web service using ABAP?

    Hi~~
    I wonder that is possible to use an external web service in SAPGUI using ABAP without PI ( Process Integraion ).
    The external web service means the service that is developed by web-language like ASP.NET.
    Thank you.

    hi,
    i'm trying to study on how to use the oracle bi publisher using another client application aside from oracle. the client application is custom and uses a .Net framework. unfortunately, i am not familiar with how .Net sends requests to oracle bi publisher so i was thinking that may be i can just create oracle pl/sql stored procedures that can send this requests over to bi publisher.
    p.s. when you said concurrent manager, i'm not sure if you are referring to oracle apps concurrent manager but if you are, unfortunately i won't be using oracle apps with bi publisher.
    thanks
    allen

  • Cannot submit sharepoint form due to error. An error occurred while trying to connect to a Web service. Please Help!

    An error occurred while trying to connect to a Web service.
    An entry has been added to the Windows event log of the server.
    Log ID:5567
    Correlation ID:4db21044-cbc4-4f2f-8653-d73e5496b891

    check the log file first to get detailed information, go to ULS log file, find the related Correlation ID, you will get the error message, the information you provided is less helpful to know this issue.
    Qiao Wei
    My blog:http://blog.goobol.com

  • An error occurred while trying to connect to a Web service

    In infopath 2013 getting current user through web service getting this error in the browser
    "An error occurred while trying to connect to a Web service"

    Hi Jithendar,
    If you can send the ULS log entries which has that Correlation ID, it would be more helpful.
    The text you send is only the ID of the entries and dont give any clue to us about your problem.
    Best regards,
    Mustafa Yılmaz
    Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz

  • How to dynamically connect to a web service

    hello
    i wana know how can i connect to a webservices dynamically in java
    i am using MYeclipse i know how to create a web service client but i dnt know how to connect to a web service dynamically ie i give the url of the service at run time and then connect to that service....................
    regards
    Shakeel Abbas

    Shakeel.Abbas wrote:
    how can i connect to a webservices dynamically in java?you can do this following ways:
    *&#963;*    Use [javax.xml.soap|http://java.sun.com/javaee/5/docs/api/javax/xml/soap/package-summary.html] package for invoking web services using Simple Object Access Protocol (SOAP). Using SOAPConnection you can connect and communicate to a webservice via SOAPMessage . [More about SOAP Connection|http://java.sun.com/javaee/5/docs/tutorial/doc/bnbhg.html#bnbhq].
    *&#963;*    Use [java.net|http://java.sun.com/javase/6/docs/api/java/net/package-summary.html] package for invoking web services using Hypertext Transfer Protocol (HTTP). Using HttpURLConnection you can connect and communicate to a webservice.
    Hope this will help.
    Thanks,
    Tejas

  • How to connect to a web service??

    I am banging my head on how to produce the appropriate code
    to connect to a
    web service I created locally.
    I have a local web service:
    http://localhost:8500/cfc/getprojects.cfc?wsdl
    I am trying to figure out how to write a correct
    <mx:WebService> to connect
    to it so I can go on and bang my head on how to then bind the
    results to
    Labels.
    I am attempting to follow the manual on this topic but it
    goes all over the
    place and my newbie mind can't wrap my head around it.
    I tried this:
    <mx:WebService id="get_projects"
    wsdl="
    http://localhost:8500/cfc/getprojects.cfc?wsdl"
    useProxy="false"/>
    </mx:WebService>
    But I keep getting: The prefix "mx" for element
    "mx:WebService" is not
    bound.
    I tried to find out more about it and thought I had to add:
    <mx
    peration name="getProjects">
    <mx:request>
    <projecttitle>????</projecttitle>
    </mx:request>
    </mx
    peration>
    But I have no idea on what to put in the request section per
    each title
    (<projecttitle>
    And anyone show me how to write a correct
    <mx:WebService> statement to be
    able to connect to my web service?!
    And if anyone is really bored:
    The query results in 5 fields of data (project_title,
    p_height, p_width,
    p_type, live)
    How do I then bind the project_title results to a label?
    Wally Kolcz
    Developer / Support

    Hi Wally,
    > I tried this:
    > <mx:WebService id="get_projects"
    > wsdl="
    http://localhost:8500/cfc/getprojects.cfc?wsdl"
    useProxy="false"/>
    > </mx:WebService>
    >
    > But I keep getting: The prefix "mx" for element
    "mx:WebService" is not
    > bound.
    Do you have a namespace declaration for mx in the root tag of
    the file
    that contains the WebService tag? For example, if you're in
    the main
    application file, your root tag should look something like:
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    ...>
    nj
    Flex Builder team

  • Failure to connect to a web service.

    hi guys,
    I am trying to connect to a web service but i keep getting the following errors:
    <faultcode>soap:Server</faultcode>
    <faultstring>Server was unable to process request. --> Value cannot be
    null.
    Parameter name: s</faultstring>
    My guess is that it is to do with converting java unicode to utf-8..
    Please help.

    Can you access that web site via other browser like IE ?
    See http://kb.mozillazine.org/Error_loading_websites - "Error_loading_some_websites"

Maybe you are looking for

  • Changed our ASA IP address and we're no longer able to Authenticate with RSA.

    Hi, We changed our ASA IP last night and since then we can no longer authenticate with RSA.  I know we had to modify the IAS policy on our DC to the new IP but I'm not sure where I would change that in RSA.  Any one have an idea? ASA 5510 (8.3) RSA (

  • Sony Bravia KDL-52v4100

    I just recently purchased a 52" Bravia from BB. I got it home and set it up with my ps3 blu-ray and HDMI cords. The picture is good but when the screen shows light colors it looks very fuzzy. It does it with dark colors also but just harder to notice

  • Mod_osso and ssl issue

    running Oracle AS 10g (10.1.2). I have protected a directory with mod_osso (in mod_osso.conf). <Location /directory/*> require valid-user AuthType Basic </Location> I navigate to https://mydomain/directory, and it redirects to the SSO asking for my p

  • Satellite P300 Number KeyPad problem

    When I type numbers on the keypad in quick succession I get other numbers entered. Eg if I type in "15 " on the number pad it will come up "165". It only happens if I type quickly, but if I type slowly it doesn't seem to happen. It is very strange. D

  • Album Art Importing Question

    Is there an easy way to import album art for cds I've loaded into my computer? There is a widget that imports art, although you have to manually type in every song. Is there a way to automatically do this?