Google Webservice API - failed

Hi all,
  I am exeperimenting with creating a Portal Service
from a WSDL. And I am following the example of
GoogleSearch given in PDK.
  I've created everything according to the documentation
and also registered and used the Key for Google API.
  The error as you can see from the log below is stating
: Deserializer not found or not supported.
what could be the problem?
I am using EP6.0 Sneak Preview.
regs
Anoop C M
Sep 30, 2004 1:02:28 PM # SAPEngine_Applica... Fatal           Exception ID:01:02_30/09/04_0045
com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
Component : pcd:portal_content/TST_FLDR/com.mycomp.anoop/iViewGoogleWS
Component class : com.mycom.wsdl2service.MyGooglePage
User : test1
     at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:864)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:313)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:137)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:185)
     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:604)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:303)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:137)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:185)
     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
     at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
     at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:377)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:257)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:322)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:300)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:699)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:224)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
Caused by: com.sapportals.portal.prt.component.PortalComponentException: Exception during PageProcessorComponent.doContent()
     at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:139)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:303)
     ... 29 more
Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
     at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
     at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
     ... 32 more
Caused by: java.lang.Exception: Deserializer not found or not supported
     at com.sap.portal.prt.service.soap.serializers.GoogleSearchResultSer.deserializeXMLElement(GoogleSearchResultSer.java:207)
     at com.sap.portal.prt.service.soap.serializers.GoogleSearchResultSer.unmarshall(GoogleSearchResultSer.java:83)
     at com.sapportals.portal.prt.service.soap.ParamsProcessor.getSOAPParameter(ParamsProcessor.java:148)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPBodyElement.constructSOAPParam(PRTSOAPBodyElement.java:579)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPBodyElement.processParams(PRTSOAPBodyElement.java:564)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPBodyElement.init(PRTSOAPBodyElement.java:192)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPBodyElement.(PRTSOAPBodyElement.java:55)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPBody.init(PRTSOAPBody.java:94)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPBody.(PRTSOAPBody.java:36)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPEnvelope.init(PRTSOAPEnvelope.java:113)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPEnvelope.(PRTSOAPEnvelope.java:54)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPMessage.processSOAPMessage(PRTSOAPMessage.java:58)
     at com.sapportals.portal.prt.service.soap.element.PRTSOAPMessage.(PRTSOAPMessage.java:40)
     at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:177)
     at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:208)
     at com.mycomp.wsdl2service.MyGoogleSearch.doGoogleSearch(MyGoogleSearch.java:169)
     at com.mycomp.wsdl2service.MyGooglePage$MyGooglePageDynPage.onSearchButtonClicked(MyGooglePage.java:83)
     ... 39 more
[email protected]4a #

HI Karsten,
   Thanks but I've reffered that post already.  It refers to issue with studio 1.3.1 and j2ee 25.
Since mine is dev studio 2.0.5 and J2ee 30 it seems
to be a different problem.
   Well, I guess the problem lies in deserializng the resultset.
  I have not applied any patches to EP6 SP4 Sneak Preview
and to the devstudio. Do i need to apply some?
After some analysis of the code that the plugin generated
i feel the err msg is generated from tge following code excerpt. Any idea on what could be wrong?
if (qparam != null){
                         SOAPDeserializer dser = reg.getDeserializer(qparam, ISOAPParamConstants.NS_URI_SOAP_ENC);
                         if ( dser == null)
                              throw new PRTFaultSerializator(
                              "The Deserializer for "qparam.getLocalPart()" not found or not supported by the soap service!.",
                              (Object)this, new Exception("Deserializer not found or not supported"));
regs
Anoop

Similar Messages

  • Google Webservice sample fails - "Service call exception"

    I compiled the Best Practices - Google Search Functionality sample and deployed it to our new server.  I started the application and after I entered a search term, it gave me the following error:
    Service call exception; nested exception is: java.net.UnknownHostException: proxy
    I'm stuck.  Help, anyone?

    Hi,
    please visit on your portal (having the System Administrator role assigned to your user) System Administration->System Configuration->Service Configuration->Applications->com.sap.portal.ivs.httpservice->Services->Proxy (double click on proxy).
    Either maintain proxy settings, or switch it off by editing field
    HTTP - Enable Proxy setting
    setting it to
    FALSE
    Regards,
    Armin

  • Google Search Webservice API is invalid?

    hallo everyone,
    i got the error message : "invalid Web service URL", when i try to set a new Web Services System with the Google Search API in VC7.0.
    The URL i used is:
    http://api.google.com/GoogleSearch.wsdl
    why? i just try to build the example from Visual Composer Book. Can anybody help me?
    thanks.
    Edited by: Qiang Li on Apr 8, 2008 9:31 AM

    If your portal server can access the internet through a proxy server, make sure it's configured in the http service  in the portal.
    Natty

  • Problem when trying to use Google WebService with abap

    Hello,
    I want to call a Google webservice from abap but I can't create the proxy class.
    The WSDL of this webservice is located at   
    [<a href="http://api.google.com/GoogleSearch.wsdl">http://api.google.com/GoogleSearch.wsdl</a>
    When I try to create the proxy class with transaction SE80, I have the following error message (SPRX046) : <i>Proxy generation terminated: Message must have exactly one part     
    </i>     
    Does anyone have an idea to solve this problem  (We are in ECC 6.0 NW 2004S) ?
    How can we do if <message> has multiple <part> entries ?
    Thanks
    JLG

    hi,
    you can't create a proxy for the google API because Google's webservices are <b>RPC style</b> and the proxy wizard of WAS ABAP on NW2004s supports <b>document style</b> webservices only.
    Search Google for the keywords mentioned and you'll find a lot of discussions and explanations of the difference of these two styles.
    regards,
    anton

  • Error when I added the Google iPhone API in my project!

    Hi,
    I'm writing an app where I need the Google iPhone API! So I added the API in my project but when I'm trying to build it it gives me an error.
    Error:
    *Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with code 1*
    Could someone explain me what I need to do to get ride of this error?
    I tried cleaning my project but that didn't help either!
    Greetings
    Kevin
    UPDATE: I forgot to say that it gives me this error 218 times and each time on a file from the Google API!
    Message was edited by: kevinp1988

    Hi,
    During my wait on my first (and quick reply) I tested if I had this problem each time when I added the API and this test was positif!
    So I googled abit and came to this website (http://johntwang.com/blog/2009/06/08/how-to-use-google-apis-with-iphone-sdk/) This dude wrote a little guide on how to set up your project with the API!
    After doing all this it still gives me errors!
    Here is a screenshot: http://i42.photobucket.com/albums/e326/kartingfreak/Screenshot2011-02-11at194310 .png
    To answer to your question: I just opened the Xcode project of the Google API and dragged the folder called 'GData Sources' to my project.
    Greets
    Kevin

  • Google WebService SOAP Help

    Hello,
    has anybody been able to get the Google WebService example working (access to external services) in EP6?
    I get weird errors from PROXY settings or XML response format exceptions depending on proxy settings.
    I have no need for proxy but direct connection and can perfectly read a Google URL from within my component.
    Environment is EP6 SP2 Patch 3 + Eclipse 2.1.3.
    I am also facing a problem with NetWeaver Developer Studio 2.0.5 not generating soap proxies correctly (it adds method calls to retrieve cookies from the soap response; these methods are not implemented in the interface).
    I have developed my own soap service on an EP6 and a client running on another EP6 and this works perfectly. Still no way to access Google.
    Obviously I have my own account key in google to access the api and I can make it work outside EP6.
    Something to do with http chunking?
    PLEASE HELP !

    Exception
    com.inqmy.lib.xml.parser.ParserException: XMLParser: No data allowed here:51a (:main:, row:1, col:3)
            at com.inqmy.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2467)
            at com.inqmy.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2505)
            at com.inqmy.lib.xml.parser.XMLParser.parse0(XMLParser.java:151)
            at com.inqmy.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:110)
            at com.inqmy.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:127)
            at com.inqmy.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:195)
            at com.inqmy.lib.xml.parser.DOMParser.parse(DOMParser.java:90)
            at com.inqmy.lib.xml.parser.DOMParser.parse(DOMParser.java:142)
            at com.inqmy.lib.jaxm.soap.SOAPPartImpl.parseDocument(SOAPPartImpl.java:60)
            at com.inqmy.lib.jaxm.soap.SOAPPartImpl.setContent(SOAPPartImpl.java:220)
            at com.inqmy.lib.jaxm.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:76)
            at com.inqmy.lib.jaxm.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:40)
            at com.inqmy.lib.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:160)
            at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:149)
            at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)
            at com.whr.google.client.GoogleSearch.doGoogleSearch(GoogleSearch.java:321)
            at com.whr.google.client.Google.doContent(Google.java:49)
            at .............

  • Getting error while consuming google webservice in jspDynpage

    Hi All,
    I am consuming google webservices in my JspDyn page
    i am getting following error
    An exception occurred while processing a request for :
    iView : GoogleSer.google
    Component Name : GoogleSer.google
    Could not find portal application <b>com.company.global.enterprise.portal.wsdl.webservices.service.</b>
    Please help me to resolve this issue
    code ::
    MyGoogle googleService =
    (MyGoogle) PortalRuntime.getRuntimeResources().getService("com.company.global.enterprise.portal.wsdl.webservices.service.MyGoogle");
    GoogleSearchResult result = googleService.doGoogleSearch("google", "SAP", 0, 10, false, "", false, "", "", "");
    Thanks & Regards
    Rudra

    Hi,
    I am still having the same problem, however the scenario in which I am getting varies.
    I am getting this exception:
    "com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message."
    Some users when trying to login into the portal are getting blank screen and for some the portal launcher page is loading fine and could go to the Home Page.
    When I view the logs I am seeing the Nested Soap Exception.
    Any Ideas??? Starting the J2EE engine also did'nt help.
    Thanks in advance.
    Madhavi

  • Communication problem when using Google Font api

    Hi
    When I try linking to the Google font api I receive a communication error in BrowserLab. The page renders OK outside of BrowserLab in my usual browser and if I remove the link then the page works in BrowserLab (but obviously doesn't include the fonts).
    I have tried increasing the delay time but still no luck.
    Is this something that just won't work? I'd love to be able to use BrowserLab to help build out my site but can't at present.
    The page in question is http://rockingdesign.co.nz.
    Thanks for looking,
    Tim

    Hi Tim, I just tested that link in BrowserLab and I don't think I'm seeing any issue. I'm attaching a screenshot of Firefox 4 Windows taken by BrowserLab. I didn't get any error, and the screenshot looks ok to me.
    Was this possibly a temporary issue or do you not have the proper link back in? If you still see it, can you give me more info, the exact error message you see, and possibly a screenshot?
    Thanks,
    Mark

  • URGENT:upgrade to 3.0.8 issue Call to WPG_SESSION API Failed.Error-Code:6550

    I ran upgrade scripts to 3.0.8 from 3.0.6 and completed with no errors.
    csh diag.csh reports no errors.
    sqlplus to connect string works fine
    DAD connect string is correct.
    err text:
    Call to WPG_SESSION API Failed.
    Error-Code:6550
    Error TimeStamp:Tue, 5 Jun 2001 03:36:50 GMT
    Database Log In Failed
    TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid and the database listener is running.
    DIAG.CSH output
    oracle(dba)@ws12:/export/home/upgrade:$csh diag.csh -s portal30 -p portal30 ->
    Begining Portal Diagnostics
    ...portal_schema: portal30
    ...portal_password: *************
    ...connect_string: iforce
    Loading java class for Portal Diagnostics ...SQL*Plus: Release 8.1.6.0.0 - Production on Mon Jun 4 20:48:59 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    SQL> SQL> Creating Table 'wwsec_diagnostic$'
    Creating Sequence 'wwsec_diagnostic_seq'
    Diagnostics Report v 1.0: Oracle Portal v 3.0.8.9.8
    As of 04-Jun-2001 20:49:02 Schema Name: PORTAL30 SSO Schema Name: portal30_sso
    PORTAL30.wwsec_enabler_config_info$
    Login Server URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : iforce
    Authentication mode : Single Sign-On
    portal30_sso.wwsec_enabler_config_info$
    Login Server URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : iforce
    Authentication mode : Single Sign-On
    Partner Application Information
    **** Oracle Portal (portal30) ****
    Home URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30/portal30.home
    Success URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30/portal30.wwsec_app_priv.process_signon
    DAD : portal30
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30
    Connect string : iforce
    Authentication mode : Single Sign-On
    **** The Login Server (portal30_sso) ****
    Home URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.home
    Success URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.wwsso_home.process_signon
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : iforce
    Authentication mode : Single Sign-On
    Diagnostics completed successfully!
    Disconnected from Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    null

    Venu
    Have you also upgraded your 9iAS instance to 1.0.2.2? The WPG_SESSION API error commonly appears when you are not using the lastest version of mod_plsql contained in 1.0.2.2.
    See: Migration Guide for Oracle9iAS Solaris or NT/2000.

  • Call to WPG_SESSION API Failed. Error-Code:6550

    Can someone please help me figure out what I may be doing wrong? Using recent downloaded versions of 8i and 9iAS I cannot access Portal30 using IE5 browser. Please see error below. During portal configuration I specified connect string of oracle:1521:dba1. The connectstring entry of the DAD is dba1. I ran ssodatan. The database is open, listener is listening and SQL*Plus, DBA Studio, Net8 Assistant all connect to dba1 fine. Discussions mention cookies, upgrades, etc., but nothing definitive. Troubleshooting Guide does not reference error 6550. I am at a loss. Any suggestions would be appreciated.
    I downloaded and installed 8.1.7 on NT host oracle then downloaded and installed 9iAS on another NT host. Portal Diagnostics are successful, however I get database login failed when attempting to use IE5 browser to access portal at http://oracle/pls/portal30/PORTAL30.home
    Here's the diags:
    D:\ora9ias\portal30\admin\plsql>set ORACLE_HOME=d:\ora9ias
    D:\ora9ias\portal30\admin\plsql>diag -s portal30 -c dba1
    Begining Portal Diagnostics
    ...portal_schema: portal30
    ...portal_password: *************
    ...portal_connect_string: dba1
    Loading java class for Portal Diagnostics ...
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 25 08:41:58 2001
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Creating Table 'wwsec_diagnostic$'
    Creating Sequence 'wwsec_diagnostic_seq'
    Diagnostics Report v 1.01: Oracle Portal v 3.0.9.8.0
    As of 25-Jul-2001 08:42:17 Schema Name: PORTAL30 SSO Schema Name: portal30
    _sso
    Proxy Server Settings:
    HTTP Server:
    HTTP Server Port:
    No Proxy Servers for Domains beginning with:
    URL Connection Time-Out (seconds):
    PORTAL30.wwsec_enabler_config_info$
    Login Server URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_app_admi
    n.ls_login
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : dba1
    Authentication mode : Single Sign-On
    Partner Application Information
    **** The Login Server (portal30_sso) ****
    Home URL : http://oracle/pls/portal30_sso/portal30_sso.home
    Success URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_home.pro
    cess_signon
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : dba1
    Authentication mode : Single Sign-On
    **** Oracle Portal (portal30) ****
    Home URL : http://oracle/pls/portal30/portal30.home
    Success URL : http://oracle/pls/portal30/portal30.wwsec_app_priv.process
    _signon
    DAD : portal30
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30
    Connect string : dba1
    Authentication mode : Single Sign-On
    **** The Login Server (portal30_sso) ****
    Home URL : http://oracle/pls/portal30_sso/portal30_sso.home
    Success URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_home.pro
    cess_signon
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : dba1
    Authentication mode : Single Sign-On
    Diagnostics completed successfully!
    Disconnected from Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    D:\ora9ias\portal30\ admin\plsql>
    Call to WPG_SESSION API Failed.
    Error-Code:6550
    Error TimeStamp:Wed, 25 Jul 2001 12:33:52 GMT
    Database Log In Failed
    TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid and the database listener is running.
    null

    I met that error several times. Check TNS connection from web server box to database server, if applicable. - use tnsping.
    That's the only cause that produces the error. If the web server box has more than one Oracle Home, find the correct one. Check $iAS_home/Apache/bin/apachectl script which will tell you its oracle home directory. It may not use $TNS_ADMIN/tnsnames.ora, but $ORACLE_HOME/network/admin/tnsnames.ora.

  • How to create a user in Opensso Identity Service Webservices api?

    Hi All,
    I am getting struck with the creation of user in OpenSSO through the webservices api they are providing.
    I used the following wsdl link to create the API's. http://localhost:8080/opensso/identityservices?WSDL
    Now my requirement is, i have to create a user profile through the program which has the api create(identity,admin) created by the WSDL link.
    Here identity is the com.sun.idsvcs.IdentityDetails and admin is the com.sun.idsvcs.Token. I want to append givenName,cn,sn,userPassword in that. But dont have any idea how to given these details in IdentityDetails. If anyone give any sample solution i can follow.
    Any Help Greatly Appreciated.
    Thanks in Advance.
    With Regards,
    Nithya.

    Hey, I've managed to implement OpenSSO user registration through SOAP.
    My code is:
    package ru.vostrets.service.implementation.helper.opensso;
    import ru.vostrets.model.person.Person;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Service;
    import ru.vostrets.dao.PropertiesDao;
    import ru.vostrets.exception.FatalError;
    import com.sun.identity.idsvcs.opensso.*;
    import java.util.HashMap;
    import java.util.Map;
    import org.slf4j.LoggerFactory;
    import org.slf4j.Logger;
    import ru.vostrets.exception.ConfigurationError;
    * @author Kuchumov Nikolay
    * email: [email protected]
    @Service
    public class OpenSsoPersonServiceHelper
         private enum AttributeName
              USER_NAME("uid"),
              PASS_WORD("userpassword"),
              GIVEN_NAME("givenname"),
              FAMILY_NAME("sn"),
              FULL_NAME("cn"),
              EMAIL("mail");
              private final String name;
              AttributeName(String name)
                   this.name = name;
              public String getName()
                   return name;
         private static final Logger LOG = LoggerFactory.getLogger(OpenSsoPersonServiceHelper.class);
         private PropertiesDao propertiesDao;
         public void create(Person person)
              try
                   IdentityServicesImplService service = new IdentityServicesImplService();
                   IdentityServicesImpl servicePort = service.getIdentityServicesImplPort();
                   java.util.List<java.lang.String> attributeNames = null;
                   Token subject = new Token();
                   subject.setId(request.getParameter("token"));
                   UserDetails results = servicePort.attributes(attributeNames, subject);
                   for (Attribute attribute : results.getAttributes())
                        LOG.info("************ Attribute: Name = " + attribute.getName() + ", Values = " + attribute.getValues());
                   LOG.info("Roles = " + results.getRoles());
                   IdentityDetails identity = newIdentity
                             person.getCredentials().getUserName(),
                             getAttributes(person)
                    * Creates an identity object with the specified attributes.
                    * @param admin Token identifying the administrator to be used to authorize
                    * the request.
                    * @param identity object containing the attributes of the object
                    * to be created.
                    * @throws NeedMoreCredentials when more credentials are required for
                    * authorization.
                    * @throws DuplicateObject if an object matching the name, type and
                    * realm already exists.
                    * @throws TokenExpired when subject's token has expired.
                    * @throws GeneralFailure on other errors.
                   servicePort.create
                             identity,
                             authenticateAdministrator()
              catch (DuplicateObject_Exception exception)
                   throw new UserAlreadyExistsError();
              catch (Exception exception)
                   //GeneralFailure_Exception
                   //NeedMoreCredentials_Exception
                   //TokenExpired_Exception
                   throw new FatalError(exception);
         private Token authenticateAdministrator()
              try
                   IdentityServicesImplService service = new IdentityServicesImplService();
                   IdentityServicesImpl servicePort = service.getIdentityServicesImplPort();
                   if (propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getUserName() == null
                             || propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getPassWord() == null)
                        throw new ConfigurationError("OpenSSO administration properties not initialized");
                    * Attempt to authenticate using simple user/password credentials.
                    * @param username Subject's user name.
                    * @param password Subject's password
                    * @param uri Subject's context such as module, organization, etc.
                    * @return Subject's token if authenticated.
                    * @throws UserNotFound if user not found.
                    * @throws InvalidPassword if password is invalid.
                    * @throws NeedMoreCredentials if additional credentials are needed for
                    * authentication.
                    * @throws InvalidCredentials if credentials are invalid.
                    * @throws GeneralFailure on other errors.
                   Token token = servicePort.authenticate
                             propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getUserName(),
                             propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getPassWord(),
                   LOG.info("******************************** Admin token: " + token.getId());
                   return token;
              catch (Exception exception)
                   throw new FatalError(exception);
              com.sun.identity.idsvcs.opensso.IdentityServicesImplService service = new com.sun.identity.idsvcs.opensso.IdentityServicesImplService();
              QName portQName = new QName("http://opensso.idsvcs.identity.sun.com/" , "IdentityServicesImplPort");
              String request = "<authenticate  xmlns=\"http://opensso.idsvcs.identity.sun.com/\"><username>ENTER VALUE</username><password>ENTER VALUE</password><uri>ENTER VALUE</uri></authenticate>";
              try
                   // Call Web Service Operation
                   Dispatch<Source> sourceDispatch = null;
                   sourceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD);
                   Source result = sourceDispatch.invoke(new StreamSource(new StringReader(request)));
              catch (Exception exception)
                   // TODO handle custom exceptions here
         private Attribute newAttribute(AttributeName name, Object value)
              Attribute attribute = new Attribute();
              attribute.setName(name.getName());
              attribute.getValues().add(value.toString());
              return attribute;
         private Map<AttributeName, Object> fillAttributes(Map<AttributeName, Object> attributes, Person person)
              attributes.put(AttributeName.USER_NAME, person.getCredentials().getUserName());
              attributes.put(AttributeName.PASS_WORD, person.getCredentials().getPassWord());
              attributes.put(AttributeName.GIVEN_NAME, person.getPersonal().getGivenName());
              attributes.put(AttributeName.FAMILY_NAME, person.getPersonal().getFamilyName());
              attributes.put(AttributeName.FULL_NAME, person);
              attributes.put(AttributeName.EMAIL, person.getContacts().getEmail());
              return attributes;
         private Map<AttributeName, Object> getAttributes(Person person)
              return fillAttributes(new HashMap<AttributeName, Object>(), person);
         private IdentityDetails newIdentity(Object name, Map<AttributeName, Object> attributes)
              IdentityDetails identity = new IdentityDetails();
              identity.setName(name.toString());
              return fillAttributes(identity, attributes);
         private IdentityDetails fillAttributes(IdentityDetails identity, Map<AttributeName, Object> rawAttributes)
              for (Map.Entry<AttributeName, Object> rawAttribute : rawAttributes.entrySet())
                   identity.getAttributes().add(
                             newAttribute(rawAttribute.getKey(), rawAttribute.getValue()));
              return identity;
         @Autowired
         public void setPropertiesDao(PropertiesDao propertiesDao)
              this.propertiesDao = propertiesDao;
    }

  • Google Contacts API 2.0: Add option to select which groups are synced

    This has been a requested issue for quite some time now:
    *1) Add an option to control what Google Contact groups are synced in ITunes*
    Currently, if you sync to Google Contacts, iTunes will pull in EVERY contact from your Google Contact list. That includes those contacts filed under "Suggested Contacts", which lists contacts you email on a frequent basis. The workaround for this is to delete your Suggested contacts every time you sync your iPhone, or risk the issue of having hundreds of new junk contacts in your iPhone.
    I understand that there was an issue in the Google API before, the issue being that there was no way to distinguish between which group the contacts were coming from. That issue is now gone, it was corrected in the update of the Google API to 2.0 on December 12th. Now, when syncing, the ability to distinguish which groups the contacts exist in is there. Below is the documentation of those changes:
    http://code.google.com/apis/contacts/docs/2.0/developers_guide.html
    With Google's update, the iTunes implementation of syncing Google Contacts can allow the selection of only specific groups to sync.
    As said before, this is basic functionality that has been requested by many for a long time (search Google if you don't believe me), and I hope and pray that the wonderful iTunes/iPhone gods will bestow upon us the ability to select Google Contact groups in the near future. Are there any plans to add this functionality? If so, when might we expect an update?

    Hello Blindbug.
    I do apologize. But this is a user to user community. And no one here knows when or if certain features or products will be released unless there has already been a public announcement by that company released for everyone to view and read.
    If I can be so kind as to refer you to iPhone feedback below. And you may wish to also spend some time going to google's site and submitting feedback as well.
    http://www.apple.com/feedback/iphone.html

  • I keep getting a notification that says "Google Talk authentication failed"...does anyone know how to get rid of this?  I tried looking for it in the apps but not really sure what google talk is or how to get rid of this message that keeps popping up.

    How do i get rid of the message that keeps popping up that says "google talk authentication failed"????

    funwidowlady,
    Good afternoon!  I'm glad I can be here to help with this error. In the device this application is identified only as 'Talk', so that be more familiar to you. First I recommend opening the 'Market' app on your phone, then Menu>My Apps to see if this application requires an update. It will display a list on top of all applications that need to be updated. If nothing exists, tap 'Home' and go into 'Settings>Applications>Manage Applications>Talk, then tap 'Clear Cache' and 'Clear Data' to remove the history of that application and stop the notifications.  The app will remain on your phone for future use, if you desire to take advantage of it. Read more about Google Talk here
    Thank you!
    AdamE_VZW
    Follow us on Twitter @VZWSupport

  • Error while invoking Webservice API ItemService_GetItemInformation

    The following error is encountered while invoking Webservice API "ItemService_GetItemInformation"
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <faultcode>wsse:InvalidSecurity</faultcode>
    <faultstring>Missing &lt;wsse:Security> in SOAP Header</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Same is repeated even after passing
    RESPONSIBILITY_NAME => Inventory
    RESPONSIBILITY_APPL_NAME => INV
    SECURITY_GROUP_NAME => Standard
    NLS_LANGUAGE => AMERICAN
    Any pointer for the root cause of this error & how to resolve this?
    Thanks In Advance!
    priyadarshi

    Hi ..
    The error meaning: you need input the user_name and password for the SOAPHeader

  • Invoking BPEL process from ADF application - webservice connection failed

    Hi,
    I am trying to invoke a Bpel process from ADF page , I deployed the same in Standalone SOA server since I had to display some Human Task Forms.
    I created a webservice data control out of the bpel process and dropped the process method in my page.
    The page on which I dropped the process method stopped rendering and I checked the logs and found that I got the error mesage- webservice connection failed,the webservice url could not be reached and in the logs it also asks us to check if the connections.xml is available in the meta-inf directory. I checked the conections.xml is available in the EAR.
    So any pointers here and any one faced this error anytime?
    is there better ways to invoke the bpel flow from ADF page.
    Thanks,
    Robin

    Hi,
      Check if your wsdl endpoint can accessed properly. If yes, check the soap-binding address is properly pointing to the server hosting the webservice.
    Regards,
    Harikiran.

Maybe you are looking for

  • HT1918 how do i remove my credit card from itunes account

    how do i remove my credit card from itunes account

  • Port replicators and the MacBook

    I want to have a monitor and a keyborad that I can hook up to when I get to my office. Is there no port replicators like I had for my Dell laptop when I was a PCer? I have found that the MB needs an adaptor from the DVI Mini to the DVI to use another

  • JavaScript is required. Enable JavaScript to use OAM Server.

    I want to open an Excel spread sheet stored in a Webdav server using OAM (Oracle Authentication). It works fine on every PC or Mac having Excel 2010, 2013, but it doesn't work in Excel 2007. In Excel 2007 always gives the error "JavaScript is requir

  • Unable to import .avi files from digicam

    I'm unable to import .avi files from my finepix digicam. I get a message that says the files are unreadable. With the previous iPhoto version (v 06) I didn't have any problems. Any thoughts?

  • JavaFX 2.0 64bit SDK won't install

    Hi. A noddy question perhaps??? On my MS Windows 7 Home Premium 64 bit laptop with IE 9.0 browser (both 32 and 64 bit) I have: - Uninstalled Java 6.xx (32 bit) - Installed Java 7 SE 32 bit from jre-7-windows-i586.exe and confirmed it's there. - Insta