ESB unable to connect to existing Web Service

Use Case: We have an existing webservice which is RPC encoded and that had to be invoked from Oracle ESB.
Version used : oracle soa suite 10.1.3.1.0.
This service had to be deployed in ESB for common platform across the enterprise, where other services can be plugged-in later.
The sample WSDL (for demo purpose) and error message is given below,
Hello,
<definitions
name="RPCJavaObject"
targetNamespace="http://rpcjavaobject/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://rpcjavaobject/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns0="http://rpcjavaobject/types/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns1="http://www.oracle.com/webservices/internal"
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/webservices/internal"
elementFormDefault="qualified" xmlns:tns="http://www.oracle.com/webservices/internal"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
<complexType name="vector">
<complexContent>
<extension base="tns:list">
<sequence/>
</extension>
</complexContent>
</complexType>
<complexType name="list">
<complexContent>
<extension base="tns:collection">
<sequence/>
</extension>
</complexContent>
</complexType>
<complexType name="collection">
<complexContent>
<restriction base="soap11-enc:Array">
<attribute ref="soap11-enc:arrayType" wsdl:arrayType="anyType[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://rpcjavaobject/types/"
elementFormDefault="qualified" xmlns:tns="http://rpcjavaobject/types/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"/>
</types>
<message name="RPCJavaObject_callMe">
<part name="str" type="xsd:string"/>
</message>
<message name="RPCJavaObject_callMeResponse">
<part name="result" type="tns1:vector"/>
</message>
<portType name="RPCJavaObject">
<operation name="callMe" parameterOrder="str">
<input message="tns:RPCJavaObject_callMe"/>
<output message="tns:RPCJavaObject_callMeResponse"/>
</operation>
</portType>
<binding name="RPCJavaObjectSoapHttp" type="tns:RPCJavaObject">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="callMe">
<soap:operation soapAction="http://rpcjavaobject//callMe"/>
<input>
<soap:body use="encoded" namespace="http://rpcjavaobject/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
parts="str"/>
</input>
<output>
<soap:body use="encoded" namespace="http://rpcjavaobject/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
parts="result"/>
</output>
</operation>
</binding>
<binding name="RPCJavaObjectSoap12Http" type="tns:RPCJavaObject">
<soap12:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="callMe">
<soap12:operation soapAction="http://rpcjavaobject//callMe" soapActionRequired="false"/>
<input>
<soap12:body use="encoded" namespace="http://rpcjavaobject/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"
parts="str"/>
</input>
<output>
<soap12:body use="encoded" namespace="http://rpcjavaobject/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"
parts="result"/>
</output>
</operation>
</binding>
<service name="RPCJavaObject">
<port name="RPCJavaObjectSoapHttpPort" binding="tns:RPCJavaObjectSoapHttp">
<soap:address location="http://localhost:8888/Application1-RPCJavaobject-context-root/RPCJavaObjectSoapHttpPort"/>
</port>
<port name="RPCJavaObjectSoap12HttpPort" binding="tns:RPCJavaObjectSoap12Http">
<soap12:address location="http://localhost:8888/Application1-RPCJavaobject-context-root/RPCJavaObjectSoap12HttpPort"/>
</port>
</service>
</definitions>
Error : when try to configure as SOAP Service from ESB is "The selected porttype is using a message that is invalid for ESB bcause it is multi-part or has a simple type.
Options we think are
1) Convert the RPC encoded to Document wrapped. If this option has to be followed, what are all the factors taken to be account ?
2) Try to design the existing functionality using adapter and connect to it. (don't know whether this is possible as the deadlines are bit tight).
Thanks,
Nagarajan K.

Thanks very much! It works.
However, another problem comes. For the two fields that I "POST"ed, it seems that one can reach the servlet but one cannot. When I retrieve the values from the servlet using "req.getParameter("XXX")", one of them got null. But obviously my applet does not send null values.
Any other thing is needed? Thanks!

Similar Messages

  • Unable to connect to mongod web service over LAN

    I have mongod running on the standard port 27017.  The web service is running on 28017, as I've verified I can access it from localhost.  But I'm running the computer headless and would prefer to get it on another box.
    Any attempt to connect to port 28017 by either ip or hostname results in a cannot connect error.  Other web services running on the same box on non-standard ports are accessible.  What am I missing?
    Last edited by jbhelfrich (2013-08-11 18:09:59)

    Thanks very much! It works.
    However, another problem comes. For the two fields that I "POST"ed, it seems that one can reach the servlet but one cannot. When I retrieve the values from the servlet using "req.getParameter("XXX")", one of them got null. But obviously my applet does not send null values.
    Any other thing is needed? Thanks!

  • Warning System spameater Unable to connect to Cisco Web Security Service.; URL Filter...

    My C670 ESA's have been throwing these alerts intermittently for the past few days, anyone else seeing them?
    The Warning message is:
    Unable to connect to Cisco Web Security Service.
    URL Filtering will not work correctly.
    Please verify all network, proxy and firewall settings.
    Connection to "v2.sds.cisco.com" failed.
    The last error seen on this connection: "Request failed with code: 28 (Connection time-out)"
    Version: 8.5.6-092
    Looks like it is open on port 443 and currently up.  Hitting it with a browser gives me:
    https://v2.sds.cisco.com/
    After an error or two they go away and appear OK.   
    Checking the logs I don't see a way to verify URL lookups are working, is there a way?
    Also, I setup URL filtering six months ago and had it set to only trigger on (-10)-(-9.5) and saw about an 80% false positive.  It has improved over the past six months drastically but still catching mostly advertising URLs and allowing all phishing URLs right through.  I've yet to see it block a phishing URL.
    Jason

    After lots of trial and error, I was able to eliminate this problem.  What I wound up doing is defining the XE service again in the listener.ora file:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = XE)
          (ORACLE_HOME = C:\ProgramData\oraclexe\app\oracle\product\11.2.0\server)
    I know that typically you should not have to do this, especially since I already had defined DEFAULT_SERIVCE_LISTENER = (XE) at the bottom of the listener.ora file.  Explicitly defining the XE service in the listener.ora file allows the listener to find it while the system is running under the Cisco AnyConnect VPN.  The only hiccup I found by doing this is that the XE service is discovered twice by the listener when the system is NOT running under the Cisco AnyConnect VPN.  It still works OK.  The listener just seems to ignore the repeated definition of the XE service (see output below):
    C:\ProgramData\oraclexe\app\oracle\product\11.2.0\server\bin>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 13-JUN-2013 10:03:15
    .......(omitted output).......
    Service "XE" has 2 instance(s).
      Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
      Instance "xe", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service "XEXDB" has 1 instance(s).
      Instance "xe", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: DEV-M-137GF, pid: 5544>
    (ADDRESS=(PROTOCOL=tcp)(HOST=DEV-M-137GF.paychex.com)(PORT=58257))
    The command completed successfully
    If anyone has a cleaner solution for this problem, please let me know.  Otherwise, I am moving forward with what I did.
    Thanks.....Paul

  • The search request was unable to connect to the Search Service

    I have upgraded from WSS 3.0 to SharePoint Foundation 2010. So far everything appears to be OK apart from my search.
    When I attempt a search I get the following:
    The search request was unable to connect to the Search Service.
    I checked the Manage Database Update Status in Central Admin and noticed the following(an upgrade is required):
    Also, I checked Manage Services on Server and noticed that the only search related service is 'SharePoint Foundation Help Search'.
    If I go into Manage Service Applications and click new there is no option to add a search service.
    Finally I tried PSConfig:
    PS C:\Users\administrator.ACHESON> PSConfig.exe -cmd upgrade -inplace b2b -force
    -cmd applicationcontent -install -cmd installfeatures
    SharePoint Products Configuration Wizard version 14.0.6009.1000. Copyright (C) M
    icrosoft Corporation 2010. All rights reserved.
    Performing configuration task 1 of 6
    Initializing SharePoint Products upgrade...
    Waiting to get a lock to upgrade the farm.
    Successfully initialized SharePoint Products upgrade.
    Performing configuration task 2 of 6
    Initiating the upgrade sequence...
    Successfully initiated the upgrade sequence.
    Performing configuration task 3 of 6
    Registering SharePoint features...
    Feature installation has determined that there are no new features that require
    installation.
    Successfully registered SharePoint features.
    Performing configuration task 4 of 6
    Installing the application content files...
    Installing the SharePoint Central Administration Web Application content files..
    Installing the SharePoint Web Application content files...
    Successfully installed the application content files.
    Performing configuration task 5 of 6
    Upgrading SharePoint Products...
    10.00%Failed to upgrade SharePoint Products.
    An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfig
    urationTaskException was thrown. Additional exception information: The upgrade
    command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    Total number of configuration settings run: 5
    Total number of successful configuration settings: 4
    Total number of unsuccessful configuration settings: 1
    Successfully stopped the configuration of SharePoint Products.
    Configuration of SharePoint Products failed. Configuration must be performed be
    fore you use SharePoint Products. For further details, see the diagnostic log l
    ocated at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\1
    4\LOGS\PSCDiagnostics_10_9_2013_12_47_54_528_1859316720.log and the application
    event log.
    This is the warnings and errors that the log contained:
    10/09/2013 12:48:16 10 WRN Found registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS\ComponentsToRegister, but the SubKeyCount is zero
    10/09/2013 12:48:24 10 WRN Failed to add the service connection point for this farm
    10/09/2013 12:48:24 10 WRN Unable to create a Service Connection Point in the current Active Directory domain. Verify that the SharePoint container exists in the current domain and that you have rights to write to it.
    Microsoft.SharePoint.SPException: The object LDAP://CN=Microsoft SharePoint Products,CN=System,DC=acheson-glover,DC=com doesn't exist in the directory.
    at Microsoft.SharePoint.Administration.SPServiceConnectionPoint.Ensure(String serviceBindingInformation)
    at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
    10/09/2013 12:48:40 10 ERR The exclusive inplace upgrader timer job failed.
    10/09/2013 12:48:40 10 ERR Task upgrade has failed with a PostSetupConfigurationTaskException An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: The upgrade command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    10/09/2013 12:48:40 10 ERR An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: The upgrade command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown.
    at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
    at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
    10/09/2013 12:48:40 10 ERR Task upgrade has failed
    10/09/2013 12:48:40 1 ERR Task upgrade SharePoint Products failed, so stopping execution of the engine
    10/09/2013 12:48:40 1 ERR Failed to upgrade SharePoint Products.
    An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: The upgrade command is invalid or a failure has been encountered.
    Failed to upgrade SharePoint Products.
    Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown.
    at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
    at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
    10/09/2013 12:48:41 1 ERR One or more configuration tasks has failed or some tasks were not run
    10/09/2013 12:48:41 1 ERR One or more configuration tasks has failed to execute
    10/09/2013 12:48:41 1 ERR Configuration of SharePoint Products failed. Configuration must be performed in order for this product to operate properly. To diagnose the problem, review the extended error information located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\PSCDiagnostics_10_9_2013_12_47_54_528_1859316720.log, fix the problem, and run this configuration wizard again.
    10/09/2013 12:48:41 1 ERR Post setup configuration was not run successfully when using the command line task driver module
    How do I resolve this?
    Cheers
    Paul

    Hi,
    SharePoint Foundation the search service should be installed by default.  It's not the same as with 2010 Standard or Enterprise where you can create a "Service Application" for it.
    Follow this article to configure SharePoint Foundation Search:
    http://plexhosted.blogspot.com/2011/11/how-to-configure-sharepoint-foundation.html
    Meanwhile, here is a thread which discusses the similar question:
    Configuration of SharePoint Foundation 2010 Search
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/af57728f-ae20-477b-8c67-2b594a1a72de/configuration-of-sharepoint-foundation-2010-search?forum=sharepointadminprevious
    Thanks.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • 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"

  • I am unable to connect to the Web with Firefox, the firefox site displays on screen, yet I can connect on the same desktop computer to Internet explorer and Opera, what is preventing me from opening the firefox browser

    I am unable to connect to the web on my desktop with Firefox 8, the program displays but will not connect to the Internet, Other browsers Internet Explorer and Opera do connect on the same machine. McAfee is not blocking it, virus checks detect no virus yet yesterday it worked perfectly

    I tried what was suggested by starting in Safe Mode but the problem still exists. I am frustrated as I cannot connect to my Verizon Fios page. I can connect to the Internet with the Firefox Browser and can go to any web site except finding my Verizon Home page.

  • IP IVR 8.0 connecting on the Web Service.

    Hi Everybody,
    I am trying to connect on the Web Service using Java Classes by JAX-WS and I am having some problems.
    Using NetBeans 7.0 I created a Java application project and I am connecting on the Web service successfully, and I am receiving the Web Service' returns normally.
    Through of NetBeans some classes were created automatically (these classes are "talking" with the Web Service). I created a JAR file with the whole project and I imported it to the IP IVR using the 'Cisco Unified CCX Administration\System\Custom File Configuration'.
    And now if I open the 'Cisco Unified CCX Editor' I can see all classes. I m trying to make a simple test, and it doesn't work.
    I see this error: could not initialize class com.sun.org.apache.xml.internal.resolver.CatalogManager; nested exception is:
                        java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.xml.internal.resolver.CatalogManager(line: 1, col: 1).
    1) Has anybody already connected on the Web Service using Java Classes through the IP IVR?
    2) Does anybody know this error?
    Note: Through the NetBeans I tried to import this class (com.sun.org.apache.xml.internal.resolver.CatalogManager) to the project, but I see another error when I am compiling the project:
    error: package com.sun.org.apache.xml.internal.resolver does not exist
    import com.sun.org.apache.xml.internal.resolver.*;
    Does anybody can help me, please?
    IP IVR - version: 8.0.2.10000-42
    Valber

    Hi everyone,
    "This Linux is boring" - well, you made my day It's amazing to see people making such qualified remarks without even trying to dig deeper scratch the surface.
    Well, Sir, I must inform you it's not the limitation of the platform, it's your attitude. Creating a SOAP client is rather easy for anyone who knows some XML and HTTP - that's basically SOAP is about. IP IVR (all versions, starting 4.0x) knows both XML and HTTP perfectly, out of the box, without the need of programming in Java, let alone, playing around with some wizards in Netbeans.
    To do a SOAP request: first, create an XML, just a plain old XML that is expected by the SOAP server. No need to be shy, populate all the attributes and text nodes, with some meaningful stuff. Upload this XML on to the IP IVR. In your CRS script, do the XSL transformation. Or you know what, just do some text replacement. Take the output. Do a HTTP post. Read the result. Grab the necessary info using an XPATH expression.
    This is not that hard, isn't it?
    G.

  • How to access existing Web Service

    I want to access the web service (SOAP) from java classes.
    Can Any body help me by sending sample code providing that how to send my XML content to the existing web service and get the response from that.
    I want to further analyse that it is succedded or not from the response of web service (the response is also in XML).
    Thanks,
    Dipen.

    You are in the wrong forum - web services are not available with Sun webserver. Speaking of examples to check out, I would recommend you to install Sun appserver 8.1 or 8.2 and check examples that come with it, specifically in "samples/webservices" and "samples/xml" directories.

  • 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.

  • 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

  • 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]

Maybe you are looking for