Api google traduction

Hello,
How to call the api google translation in a BSP?
I tried a google javascript function : http://code.google.com/apis/ajax/playground/?exp=language#translate
but without result. : ((
Thanks for your help.
It's good is resolved.
Sorry for the inconvenience.
Thanks for your help.
Edited by: KhalidTaibi on Jul 16, 2009 10:02 AM
Edited by: KhalidTaibi on Jul 24, 2009 9:48 AM
Edited by: KhalidTaibi on Jul 24, 2009 9:54 AM

Hi,
I would like to transfer to another variable the result of javascript api google translation.
Here is my code and the result to the display is still undefined :
I would like to transfer to another variable the result of javascript api google translation.
Here is my code and the result to the display is still undefined.
My goal is to transfer the translation results in a Javascript variable to then transfer it to a variable Abap.
Thanks for you help.

Similar Messages

  • How do I use doGoogleSearch to connect to Google API

    Hello all,
    I am trying to do my final year project and I am currently having trouble connecting to the Google API using doGoogleSearch. I dont know how to use http://api.google.com/GoogleSearch.wsdl to fill in the parameters for the doGoogleSearch and then I have to use the http://api.google.com/search/beta2 to connect to Google and perform the test. Any help would be appreciated or code or links
    Thanks in advance rgds,
    Tony
    Here is my code so far...................................
    package tony_buckley_project;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.net.URI;
    import java.net.URLConnection;
    import java.util.*;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import com.google.soap.search.GoogleSearch;
    import com.google.soap.search.GoogleSearchResult;
    import com.google.soap.search.GoogleSearchFault;
    import com.google.soap.search.GoogleSearchResultElement;
    import com.google.soap.search.*;
    import javax.xml.soap.*;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import org.apache.soap.util.xml.*;
    import org.apache.soap.*;
    import org.apache.soap.rpc.*;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.*;
    * <p>Title: Mr. Tony Buckley</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright Tony Buckley (c) 2004</p>
    * <p>Company: Cork Institute of Technology </p>
    * @[email protected]
    * @version 1.0
    public class Applet2 extends Frame implements WindowListener , ActionListener
    TextField searchField;
    Button search , quit;
    Canvas0 canvas;
    public Applet2()
    super();
    //Set up basic window
    setTitle("Tony Buckley Final Year Project");
    setBackground(Color.white);
    setSize(500 , 400);
    addWindowListener(this);
    //Set up area with buttons
    //Search button
    Panel p1 = new Panel();
    p1.setLayout(new FlowLayout());
    searchField = new TextField("" , 15);
    p1.add(searchField);
    search = new Button("Search the web for results...");
    p1.add(search);
    search.addActionListener(this);
    //Quit button
    Panel p2 = new Panel();
    p2.setLayout(new FlowLayout());
    Button quit = new Button("Quit");
    p2.add(quit);
    quit.addActionListener(this);
    //Set up search results area
    Canvas0 canvas = new Canvas0();
    add("Center" , canvas);
    Panel p4 = new Panel();
    p4.setLayout(new GridLayout(2 , 1));
    p4.add(p1);
    p4.add(p2);
    add("South" , p4);
    }//End of constructor method public Applet2()
    public void doGoogleSearch()
    String key;
    String q;
    int start;
    int maxResults;
    boolean filter;
    String restrict;
    boolean safeSearch;
    String lr;
    String ie;
    String oe;
    public static void main(String[] args)
    Applet2 app = new Applet2();
    app.setVisible(true);
    public void actionPerformed(ActionEvent event)
    //Deals with "Quit" button
    if(event.getSource() == quit)
    dispose();
    System.exit(0);
    else if(event.getSource() == search)
    /* try
    String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
    if(suggestion == null)
    System.out.println("There is no spelling suggestion in the database");
    else
    System.out.println(suggestion);
    int startResult = 100;
    search_internet.setStartResult(startResult);
    int maxResult = 5;
    search_internet.setMaxResults(maxResult);
    GoogleSearchResult result_search_internet = search_internet.doSearch();
    GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
    int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
    int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
    for(int i = startIndex ; i <= endIndex; i ++)
    GoogleSearchResultElement resultElement = resultElements[(i)];
    String title = resultElement.getTitle();
    String URL = resultElement.getURL();
    System.out.println(title);
    System.out.println(URL);
    System.out.println("");
    System.out.println("Start Index = " + result_search_internet.getStartIndex());
    System.out.println("End Index = " + result_search_internet.getEndIndex());
    System.out.println(result_search_internet.toString());
    int numResults = result_search_internet.getEstimatedTotalResultsCount();
    if(result_search_internet.getEstimateIsExact())
    System.out.println("Number of results: " +numResults);
    else
    System.out.println("Estimated number of results: " +numResults);
    //catch(GoogleSearchFault gsf)
    // System.out.println("Google Search Fault: " +gsf.getMessage());
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String searchTerm;
    searchTerm = "science fiction";
    String spellingRequest = searchTerm;
    //First create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    //Populate the message
    SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
    GoogleSearch search = new GoogleSearch();
    search.setKey(myKey);
    search.setQueryString(searchTerm);
    //Save the message
    message.saveChanges();
    //Send the message and get a reply
    //Set the destination
    URLEndpoint destination = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message, destination);
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody sb = se.getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    transformer.transform(sourceContent, result);
    //Close the connection
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    }//End of method actionPerformed
    public void windowClosing(WindowEvent event)
    //Deals with the window closing
    dispose();
    System.exit(0);
    }//End of method windowClosing
    public void windowOpened(WindowEvent event)
    public void windowIconified(WindowEvent event)
    public void windowDeiconified(WindowEvent event)
    public void windowClosed(WindowEvent event)
    public void windowActivated(WindowEvent event)
    public void windowDeactivated(WindowEvent event)
    }//End of class Applet2
    class Canvas0 extends Canvas
    public Canvas0()
    super();
    public void paint(Graphics g)
    Dimension d = getSize();
    Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
    Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
    FontMetrics fm1 = g.getFontMetrics(f1);
    FontMetrics fm2 = g.getFontMetrics(f2);
    String s1 = "Hello , ";
    String s2 = "World";
    int w1 =fm1.stringWidth(s1);
    int w2 =fm1.stringWidth(s2);
    g.setColor(Color.GREEN);

    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.net.URI;
    import java.net.URLConnection;
    import java.util.*;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import com.google.soap.search.GoogleSearch;
    import com.google.soap.search.GoogleSearchResult;
    import com.google.soap.search.GoogleSearchFault;
    import com.google.soap.search.GoogleSearchResultElement;
    import com.google.soap.search.*;
    import javax.xml.soap.*;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import org.apache.soap.util.xml.*;
    import org.apache.soap.*;
    import org.apache.soap.rpc.*;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.*;
    Title: Mr. Tony Buckley
    Description:
    Copyright: Copyright Tony Buckley (c) 2004
    Company: Cork Institute of Technology
    * @[email protected]
    http://beingaplayer.x314.co.uk
    * @version 1.0
    public class Applet2 extends Frame implements WindowListener , ActionListener
    TextField searchField;
    Button search , quit;
    Canvas0 canvas;
    public Applet2()
    super();
    //Set up basic window
    setTitle("Tony Buckley Final Year Project");
    setBackground(Color.white);
    setSize(500 , 400);
    addWindowListener(this);
    //Set up area with buttons
    //Search button
    Panel p1 = new Panel();
    p1.setLayout(new FlowLayout());
    searchField = new TextField("" , 15);
    p1.add(searchField);
    search = new Button("Search the web for results...");
    p1.add(search);
    search.addActionListener(this);
    //Quit button
    Panel p2 = new Panel();
    p2.setLayout(new FlowLayout());
    Button quit = new Button("Quit");
    p2.add(quit);
    quit.addActionListener(this);
    //Set up search results area
    Canvas0 canvas = new Canvas0();
    add("Center" , canvas);
    Panel p4 = new Panel();
    p4.setLayout(new GridLayout(2 , 1));
    p4.add(p1);
    p4.add(p2);
    add("South" , p4);
    }//End of constructor method public Applet2()
    public void doGoogleSearch()
    String key;
    String q;
    int start;
    int maxResults;
    boolean filter;
    String restrict;
    boolean safeSearch;
    String lr;
    String ie;
    String oe;
    public static void main(String[] args)
    Applet2 app = new Applet2();
    app.setVisible(true);
    public void actionPerformed(ActionEvent event)
    //Deals with "Quit" button
    if(event.getSource() == quit)
    dispose();
    System.exit(0);
    else if(event.getSource() == search)
    /* try
    String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
    if(suggestion == null)
    System.out.println("There is no spelling suggestion in the database");
    else
    System.out.println(suggestion);
    int startResult = 100;
    search_internet.setStartResult(startResult);
    int maxResult = 5;
    search_internet.setMaxResults(maxResult);
    GoogleSearchResult result_search_internet = search_internet.doSearch();
    GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
    int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
    int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
    for(int i = startIndex ; i <= endIndex; i ++)
    GoogleSearchResultElement resultElement = resultElements[(i)];
    String title = resultElement.getTitle();
    String URL = resultElement.getURL();
    System.out.println(title);
    System.out.println(URL);
    System.out.println("");
    System.out.println("Start Index = " + result_search_internet.getStartIndex());
    System.out.println("End Index = " + result_search_internet.getEndIndex());
    System.out.println(result_search_internet.toString());
    int numResults = result_search_internet.getEstimatedTotalResultsCount();
    if(result_search_internet.getEstimateIsExact())
    System.out.println("Number of results: " +numResults);
    else
    System.out.println("Estimated number of results: " +numResults);
    //catch(GoogleSearchFault gsf)
    // System.out.println("Google Search Fault: " +gsf.getMessage());
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String searchTerm;
    searchTerm = "science fiction";
    String spellingRequest = searchTerm;
    //First create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    //Populate the message
    SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
    GoogleSearch search = new GoogleSearch();
    search.setKey(myKey);
    search.setQueryString(searchTerm);
    //Save the message
    message.saveChanges();
    //Send the message and get a reply
    //Set the destination
    URLEndpoint destination = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message, destination);
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody sb = se.getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    transformer.transform(sourceContent, result);
    //Close the connection
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    }//End of method actionPerformed
    public void windowClosing(WindowEvent event)
    //Deals with the window closing
    dispose();
    System.exit(0);
    }//End of method windowClosing
    public void windowOpened(WindowEvent event)
    public void windowIconified(WindowEvent event)
    public void windowDeiconified(WindowEvent event)
    public void windowClosed(WindowEvent event)
    public void windowActivated(WindowEvent event)
    public void windowDeactivated(WindowEvent event)
    }//End of class Applet2
    class Canvas0 extends Canvas
    public Canvas0()
    super();
    public void paint(Graphics g)
    Dimension d = getSize();
    Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
    Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
    FontMetrics fm1 = g.getFontMetrics(f1);
    FontMetrics fm2 = g.getFontMetrics(f2);
    String s1 = "Hello , ";
    String s2 = "World";
    int w1 =fm1.stringWidth(s1);
    int w2 =fm1.stringWidth(s2);
    g.setColor(Color.GREEN);

  • How to import a Google Map API Map in Adobe Muse

    Hello,
    I'm trying to import on Adobe Muse a Google Maps custom map that I have created with the API google maps... But I have problems with writing the HTML code...
    I tried to import that one for exemple:
    https://developers.google.com/maps/documentation/javascript/examples/map-simple?hl=fr
    But nothing happens in Adobe Muse... just a blue square with "html" written on the left top of the square...
    Thanks for the help!

    Hi!
    You have to create to go to "insert html code" in the Muse menu.
    Then follow the steps in these websites, some are in french...sorry about that! but It's not difficult to understand, or use google translate.
    http://www.html5-css3.fr/html5/tutoriel-api-google-maps-geolocalisation-html5
    https://developers.google.com/maps/documentation/javascript/examples/map-simple?hl=fr
    http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html ==> for creating the customized map
    http://www.code-web.org/post/2010/03/04/Google-Map-API-V3-%3A-Placer-un-marker-sur-la-cart e ==> for customized markers
    https://developers.google.com/maps/documentation/javascript/examples/map-geolocation?hl=fr &csw=1
    https://developers.google.com/maps/documentation/javascript/tutorial?hl=fr
    http://www.lafermeduweb.net/tutorial/mettre-en-place-la-google-maps-personnalisee-sur-ses- pages-web-p105.html
    Hope this will help!

  • Need help using doGoogleSearch to connect to Google API

    Hello all,
    I am trying to do my final year project and I am currently having trouble connecting to the Google API using doGoogleSearch. I dont know how to use http://api.google.com/GoogleSearch.wsdl to fill in the parameters for the doGoogleSearch and then I have to use the http://api.google.com/search/beta2 to connect to Google and perform the test. Any help would be appreciated or code or links
    Thanks in advance rgds,
    Tony
    Here is my code so far...................................
    package tony_buckley_project;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.net.URI;
    import java.net.URLConnection;
    import java.util.*;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import com.google.soap.search.GoogleSearch;
    import com.google.soap.search.GoogleSearchResult;
    import com.google.soap.search.GoogleSearchFault;
    import com.google.soap.search.GoogleSearchResultElement;
    import com.google.soap.search.*;
    import javax.xml.soap.*;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import org.apache.soap.util.xml.*;
    import org.apache.soap.*;
    import org.apache.soap.rpc.*;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.*;
    * <p>Title: Mr. Tony Buckley</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright Tony Buckley (c) 2004</p>
    * <p>Company: Cork Institute of Technology </p>
    * @[email protected]
    * @version 1.0
    public class Applet2 extends Frame implements WindowListener , ActionListener
    TextField searchField;
    Button search , quit;
    Canvas0 canvas;
    public Applet2()
    super();
    //Set up basic window
    setTitle("Tony Buckley Final Year Project");
    setBackground(Color.white);
    setSize(500 , 400);
    addWindowListener(this);
    //Set up area with buttons
    //Search button
    Panel p1 = new Panel();
    p1.setLayout(new FlowLayout());
    searchField = new TextField("" , 15);
    p1.add(searchField);
    search = new Button("Search the web for results...");
    p1.add(search);
    search.addActionListener(this);
    //Quit button
    Panel p2 = new Panel();
    p2.setLayout(new FlowLayout());
    Button quit = new Button("Quit");
    p2.add(quit);
    quit.addActionListener(this);
    //Set up search results area
    Canvas0 canvas = new Canvas0();
    add("Center" , canvas);
    Panel p4 = new Panel();
    p4.setLayout(new GridLayout(2 , 1));
    p4.add(p1);
    p4.add(p2);
    add("South" , p4);
    }//End of constructor method public Applet2()
    public void doGoogleSearch()
    String key;
    String q;
    int start;
    int maxResults;
    boolean filter;
    String restrict;
    boolean safeSearch;
    String lr;
    String ie;
    String oe;
    public static void main(String[] args)
    Applet2 app = new Applet2();
    app.setVisible(true);
    public void actionPerformed(ActionEvent event)
    //Deals with "Quit" button
    if(event.getSource() == quit)
    dispose();
    System.exit(0);
    else if(event.getSource() == search)
    /* try
    String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
    if(suggestion == null)
    System.out.println("There is no spelling suggestion in the database");
    else
    System.out.println(suggestion);
    int startResult = 100;
    search_internet.setStartResult(startResult);
    int maxResult = 5;
    search_internet.setMaxResults(maxResult);
    GoogleSearchResult result_search_internet = search_internet.doSearch();
    GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
    int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
    int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
    for(int i = startIndex ; i <= endIndex; i ++)
    GoogleSearchResultElement resultElement = resultElements[(i)];
    String title = resultElement.getTitle();
    String URL = resultElement.getURL();
    System.out.println(title);
    System.out.println(URL);
    System.out.println("");
    System.out.println("Start Index = " + result_search_internet.getStartIndex());
    System.out.println("End Index = " + result_search_internet.getEndIndex());
    System.out.println(result_search_internet.toString());
    int numResults = result_search_internet.getEstimatedTotalResultsCount();
    if(result_search_internet.getEstimateIsExact())
    System.out.println("Number of results: " +numResults);
    else
    System.out.println("Estimated number of results: " +numResults);
    //catch(GoogleSearchFault gsf)
    // System.out.println("Google Search Fault: " +gsf.getMessage());
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String searchTerm;
    searchTerm = "science fiction";
    String spellingRequest = searchTerm;
    //First create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    //Populate the message
    SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
    GoogleSearch search = new GoogleSearch();
    search.setKey(myKey);
    search.setQueryString(searchTerm);
    //Save the message
    message.saveChanges();
    //Send the message and get a reply
    //Set the destination
    URLEndpoint destination = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message, destination);
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody sb = se.getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    transformer.transform(sourceContent, result);
    //Close the connection
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    }//End of method actionPerformed
    public void windowClosing(WindowEvent event)
    //Deals with the window closing
    dispose();
    System.exit(0);
    }//End of method windowClosing
    public void windowOpened(WindowEvent event)
    public void windowIconified(WindowEvent event)
    public void windowDeiconified(WindowEvent event)
    public void windowClosed(WindowEvent event)
    public void windowActivated(WindowEvent event)
    public void windowDeactivated(WindowEvent event)
    }//End of class Applet2
    class Canvas0 extends Canvas
    public Canvas0()
    super();
    public void paint(Graphics g)
    Dimension d = getSize();
    Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
    Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
    FontMetrics fm1 = g.getFontMetrics(f1);
    FontMetrics fm2 = g.getFontMetrics(f2);
    String s1 = "Hello , ";
    String s2 = "World";
    int w1 =fm1.stringWidth(s1);
    int w2 =fm1.stringWidth(s2);
    g.setColor(Color.GREEN);

    I don't know where you got the rest of this code from (was it supplied as part of the project or did you write it yourself), but I think it may be overcomplicated.
    The last time (at least a year ago) that I looked at the Google WS api, this is all you needed:
          GoogleSearch search = new GoogleSearch();
          search.setKey("_your_key_here_");
          search.setQueryString(searchStringHere);
          GoogleSearchResult result = search.doSearch();You can look in their api docs for how to extract the results from GoogleSearchResult.
    Hope that helps?
    Kevin Hooke

  • Safari error about Google Maps API

    On only one of my several macs, every time I go to a web page with an imbedded Google maps (like http://www.apple.com/buy/locator/service/), the page will not load properly, and I get an error message that says:
    "The Google Maps API server rejected your request. This could be because the API key used on this site was registered for a different web site. You can generate a new key for this web site at http://code.google.com/apis/maps/."
    When I go to the google maps web site that it gives instructions on how I can embed Google Maps into my own web pages.
    This problem is only on one of my MAC systems. All others work fine. The first thing I tried was to clear my caches, but that did not work. Also, I get the same message when I go to a similar web page from a windows system running under VMWare Fusion.
    Things to remember before you reply:
    - This is not my web page. It is all web pages that have an imbedded Google maps.
    - This happens only on my Intel MacBook. The problem does not happen on my Mac Mini, iMac, or Power Mac which are all on the same home subnet.
    - This still happens when I visit another wireless web connection.
    -It happens on all virtual Machines I run on this MacBook under VMWare Fusion, Including Win XP, Vista and Linux Fedora.
    Therefore it is a problem with my MacBook, and not with any webpage.
    I have even posted on the Google Maps API Google Group (http://groups.google.com/group/Google-Maps-API),
    but they say I need to re-register my API for my web page.
    Are there any other suggestions?
    Thanks in advance
    Jeff Cameron

    This question was never answered by apple or by Google, however, after upgrading to Snow Leopard, the problem has gone away.
    Jeff Cameron

  • 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

  • How to add a google+ share button to a composition?

    I am working on a little app for which I want to add share buttons.
    I don't have problems adding Facebook share and Twitter buttons, However I cannot find a way to add a Google+ share button.
    For FB I create a rectangle and name it fbBtn. Then on click I add the foolowing code:
    FB.ui({
              method: 'feed',
              name: 'Win designer fashion jewelry from Baloka',
              link: ' http://www.mysite.com/',
              picture: 'http://www.mysite.com/external-xfbml/share-image.gif',
              caption: 'Win designer fashion jewelry from Baloka',
              description: 'Baloka is giving away 22 designer fashion jewelry by Maria Mizrahi. Check this out. Do you want to win? You could...',
              message: ''
    For Twitter I create a rectangle and name it twitterBTN. Then I add this code to document.compositionReady:
    var twitter = sym.$("twitterBTN");
    var c = '<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://baloka.com/content/socialApp/fb.html" data-text="Win cool trendy designer fashion jewelry - check this out" data-via="BalokaDesign" data-count="none" data-hashtags="BalokaSweepstakes">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id =id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(docu ment,"script","twitter-wjs");</script>';
    twitter.html(c);
    For Google + I found two ways to add a share button:
    First:
    Adding this snipped to the html document (not in EA):
    div class="edgeLoad-EDGE-467457915"><a href="https://plus.google.com/share?url={http:baloka.com}" onclick="javascript:window.open(this.href,
      '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img
      src="https://www.gstatic.com/images/icons/gplus-16.png" alt="Share on Google+"/></a></div>
    and adding this to the head:
    <!-- Add the following three tags inside head. -->
        <meta itemprop="name" content="Baloka Sweepstakes">
        <meta itemprop="description" content="Win designer fashion jewelry by Maria Mizrahi - Baloka.
        There are 22 prizes including earrings, bracelets, necklaces and a couple of $100 gift certificates.
        Please share with your friends.">
        <meta itemprop="image" content="http://cdn2.bigcommerce.com/server2100/a154e/products/102/images/243/LittleTotemEarrings__ 55527.1355162788.1280.1280.jpg">
    This works as expected, but I am having a hard time position the button in the right place on my page. I can see the button in EA, but the position I set it in there is not maintained once the file is published.
    Thus, I would like to know how to include the code directly in EA as I am doing with the Twitter and facebook buttons.
    Second:
    Adding this to the html document (not in EA):
    <div id="gplus1" data-action="share" data-annotation="bubble" class="edgeLoad-EDGE-467457915"></div>
    <!-- Place this tag after the last share tag. -->
    <script type="text/javascript">
          (function() {
                    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                    po.src = 'https://apis.google.com/js/plusone.js';
                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
      </script>
    Again, this works, although with this code I don't know  how to customize the name, description and image for the info I am sharing.
    In this case I was able to include the code on EA adding the following to document.compositionReady:
    var googleplus = sym.$('googleplus');
    var click = "javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');";
    var g = '<a href="https://plus.google.com/share?url={http://baloka.com/content/socialApp/fb.html}" onclick="click";return false;"><img src="https://www.gstatic.com/images/icons/gplus-16.png" alt="Share on Google+"/></a>';
    googleplus.html(g);
    The problem here is that instead of opening a window, it replaces the page with the one supposed to be on a different window, which I don't like.
    So, in short, I need some help figuring out how to include the code directly in EA for the first method for Google+.

    I don't have an answer for you, but I do have a question. You said the FB code works. What did you do? What did you put in your html page? I tried the FB code above and it gives me an ID error. Appreciate it if you can elaborate more. I just posted the ff in the forum "Customizing FB Share in Edge Animate"
    Thank you!

  • How to insert a google chart in rtf

    Hi All,
    I come to know that we can insert any google chart in our rtf report for our given data.
    Please let me know what are the pre-requisites for this.
    and what is the code to be entered in the dummy image web tab
    I am trying to get a Google QR Code like below.
    <img src="http://chart.apis.google.com/chart?cht=qr
    &chs=250x100&chl=<?SALES_ORDER_NUM?>"/>
    giving the about code in web tab of a dummy image
    I did just a trail, but it does not work.
    Please let me know with any ideas.
    Thanks

    Hi,
    1.run transaction SCC4 -> press Ctrl+F4 or the button for change ->double click one the row for your client -> on the field Cross Client Object Changes select Changes to the Repository and cross-client Customizing allowed -> SAVE
    2. run MC1H and now you will have access to insert new line in the table
    Regards Vassko!
    Edited by: Vasil Pavlov on Sep 16, 2008 9:51 AM

  • SOAP receiver adapter error using Google Search web service

    Hi all,
    I'm trying to connect and old 4.5b system to XI SP16 to make it receive information from external Web Services.
    My scenario is made up of a sender RFC adapter and a SOAP receiver which is sending the message to the Google web service (http://api.google.com/GoogleSearch.wsdl) and then awaiting a response from it.
    I'm stuck with this error: "No Deserializer found to deserialize a ':key'". The problem is that XI is sending this kind of message:
              <m:doGoogleSearch xmlns:m="urn:GoogleSearch" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                   <key>mykey</key>
                   <q>testing</q>
                   <start>0</start>
                   <maxResults>1</maxResults>
                   <filter>true</filter>
                   <restrict>String</restrict>
                   <safeSearch>true</safeSearch>
                   <lr>String</lr>
                   <ie>String</ie>
                   <oe>String</oe>
              </m:doGoogleSearch>
    while Google is expecting this:
              <m:doGoogleSearch xmlns:m="urn:GoogleSearch" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                   <key xsi:type="xsd:string">mykey</key>
                   <q xsi:type="xsd:string">testing</q>
                   <start xsi:type="xsd:int">0</start>
                   <maxResults xsi:type="xsd:int">1</maxResults>
                   <filter xsi:type="xsd:boolean">true</filter>
                   <restrict xsi:type="xsd:string">String</restrict>
                   <safeSearch xsi:type="xsd:boolean">true</safeSearch>
                   <lr xsi:type="xsd:string">String</lr>
                   <ie xsi:type="xsd:string">String</ie>
                   <oe xsi:type="xsd:string">String</oe>
              </m:doGoogleSearch>
    with explicitly declared xsi:type.
    I've tested both messages with XMLSpy and the first one is always returning the same error.
    Is there a way to make XI send an XML message with written xsi:type?
    Many thanks in advance!
    Max

    Hi Ricardo!
    I followed your suggestion to create a simple XSLT mapping program (in the ABAP stack) and I added it to the Interface Mapping in the Integration Repository. The result is exactly the soap message that the Google web-service is expecting.
    I'm attaching the XSLT code below in case somebody has the same problem... thanks again for your hint!!
    Regards!
    Max
    <xsl:transform version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:sap="http://www.sap.com/sapxsl"
    >
    <xsl:strip-space elements="*"/>
    <xsl:template match="/">
    <ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
          <key xsi:type="xsd:string"> <xsl:value-of select= "//key"/> </key>
          <q xsi:type="xsd:string"> <xsl:value-of select= "//q"/> </q>
          <start xsi:type="xsd:int"> <xsl:value-of select= "//start"/> </start>
          <maxResults xsi:type="xsd:int"> <xsl:value-of select= "//maxResults"/> </maxResults>
          <filter xsi:type="xsd:boolean"> <xsl:value-of select= "//filter"/> </filter>
          <restrict xsi:type="xsd:string"> <xsl:value-of select= "//restrict"/> </restrict>
          <safeSearch xsi:type="xsd:boolean"> <xsl:value-of select= "//safeSearch"/> </safeSearch>
          <lr xsi:type="xsd:string"> <xsl:value-of select= "//lr"/> </lr>
          <ie xsi:type="xsd:string"> <xsl:value-of select= "//ie"/> </ie>
          <oe xsi:type="xsd:string"> <xsl:value-of select= "//oe"/> </oe>
       </ns1:doGoogleSearch>
    </xsl:template>
    </xsl:transform>

  • How to implement google search in portal application

    Hi,
      I am using  "http://api.google.com/GoogleSearch.wsdl" file to implement google search in portal application. but i am not able to get the search result. how to implement google search. is this "http://api.google.com/GoogleSearch.wsdl" is vaild now ?. how to achieve the soultion.
    Regards,
    Shanthakumar.

    Hi Shanthakumar,
    The "GoogleSearch.WSDL" is no longer available as google has replaced it with the new AJAX based searching and they have eventually removed it from public use as well from 7th September 2009. So, I would imagine you would not be able to use the earlier WSDL file for google search. You might have to look in using the new "AJAX Search API". For more information have a look the following links. You can notice "No Longer Available" at the top of the page.
    http://googlecode.blogspot.com/2009/08/well-earned-retirement-for-soap-search.html
    http://code.google.com/apis/soapsearch/api_faq.html#tech15
    I hope this helps you.
    Regards,
    Gopal.

  • Turning off Google Safe Browsing Content

    Not much of a question, but an answer to others' archived questions. Many are concerned that Google Safe Browsing Cache violates their privacy and releases the public's web activities to one of Google's data-centers. The easiest way to disable this feature (can't be done through the Firefox web browser), is to block these URL domains on your main network router (given that you have a newer, more feature-rich router such as the latest D-link product line):
    safebrowsing.clients.google.com
    safebrowsing-cache.google.com
    sb-ssl.google.com
    sb.google.com
    Now, Google may only track your activities while your logged in with your Google account--when it is relevent--rather than all of the time without your control. Thank you.

    I think there are some misconceptions about this feature.
    Firefox doesn't send every web request to Google, but instead consults a database of bad sites that you download from Google at regular intervals. You would only send a request to Google if you request a page on a bad site.
    Google's agreement with Mozilla is that this data isn't supposed to be correlated with your other Google activity.
    * Support articles:
    ** [[How does built-in Phishing and Malware Protection work?]]
    ** [[Security and passwords settings]] (you can turn the SafeBrowsing features on and off using these two checkboxes)
    * Google privacy: [https://developers.google.com/safe-browsing/firefox3_privacy Google Safe Browsing Service in Mozilla Firefox Version 3 - Safe Browsing API — Google Developers]

  • 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

  • Embeding google charts in OBIEE?

    This is how the pie chart looks:
    http://chart.apis.google.com/chart?cht=pc&chd=t:1726729,1879074,316017&chs=450x300&chco=FF0000,00FF00
    This is how the concentric chart looks:
    'http://chart.apis.google.com/chart?cht=pc&chd=t:1726729,1879074,316017|5689083,6243916,1154530&chs=450x300&chco=FF0000,00FF00'
    Creating the normal pie chart in OBIEE is pretty simple (I will use "Paint" subject are):
    1) Create a request with this SQL:
    SELECT Periods."Year" saw_0, "Sales Measures".Units saw_1, "Sales Measures".Dollars saw_2 FROM Paint ORDER BY saw_0
    2) In the Narrative view type the following:
    Prefix: <img src="http://chart.apis.google.com/chart?cht=pc&chd=t:
    Narrative @2
    Row separator ,
    Postfix &chs=450x300&chco=FF0000,00FF00&/>
    3) make sure you check the "Contains HTML Markup" box
    Any suggestions on how to create a concentric pie chart using this data set (using columns 2 and 3 as the data source?
    Edited by: Sart1997 on Oct 30, 2009 6:54 AM

    I tried solving this issue - and the problem is that you need two different data sets (by pipe). I tried to create a concat column (CAST(CASE "F1 Revenue"."1-01  Revenue  (Sum All)" WHEN NULL THEN 1000000 ELSE "F1 Revenue"."1-01  Revenue  (Sum All)" END AS CHAR)||','||CAST((CASE "F4 Inventory"."5-01  Inventory  (Sum All)" WHEN NULL THEN 400000 ELSE "F4 Inventory"."5-01  Inventory  (Sum All)" END) AS CHAR)) (NULL give blank chart, hence filtering it out) and used it with a pipe as separator. The problem here is that - it's not the data that we need. We get this:
    http://chart.apis.google.com/chart?cht=pc&chd=t:1000000.00,400000|11371280.12,17267959|13531763.86,24359487&chs=450x300&chco=FF0000,00FF00(!!http://chart.apis.google.com/chart?cht=pc&chd=t:1000000.00,400000|11371280.12,17267959|13531763.86,24359487&chs=450x300&chco=FF0000,00FF00(!
    After small modification:
    This "D0 Time"."T05 Per Name Year"||','||CAST(CASE "F1 Revenue"."1-01  Revenue  (Sum All)" WHEN NULL THEN 10000000 ELSE "F1 Revenue"."1-01  Revenue  (Sum All)" END AS CHAR)||','||CAST((CASE "F4 Inventory"."5-01  Inventory  (Sum All)" WHEN NULL THEN 2500000 ELSE "F4 Inventory"."5-01  Inventory  (Sum All)" END) AS CHAR)produces this:
    !http://chart.apis.google.com/chart?cht=pc&chd=t:2006,10000000.00,2500000|2007,11371280.12,17267959|2008,13531763.86,24359487&chs=450x300&chco=FF0000,00FF00!
    I hope it's close to what you need
    Edited by: wildmight on Oct 30, 2009 1:07 PM

  • OIM and Google Apps

    I am having some trouble integrating my java application with OIM, when I create an adapter.
    My code works perfectly run out of eclipse, but something gets screwed up where OIM apparently does not load the classes properly and when it tries to run the same code it gives me an error.
    I am using OIM version 10g and cannot change to 11g. I am also using the 1.5.0_06 jdk which matches the one used with OIM on the server it's on
    I get a NullPointerException in the gdata-core-1.0 jar provided by google.
    When a Service object attempts to call this line of code: private static final String SERVICE_VERSION = "GData-Java/" + Service.class.getPackage().getImplementationVersion() + "(gzip)";
    I have the jar and all other required jars (and they are at or below the version I am running on the server with OIM) in the ThirdParty folder where I think they should be
    Here is the stack trace I get:
    11/06/02 13:03:21 java.lang.reflect.InvocationTargetException
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/06/02 13:03:21 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/06/02 13:03:21 at java.lang.reflect.Method.invoke(Method.java:585)
    11/06/02 13:03:21 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCREATEGOOGLEAPPSUSER20.CREATEUSER20(adpCREATEGOOGLEAPPSUSER20.java:101)
    11/06/02 13:03:21 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCREATEGOOGLEAPPSUSER20.implementation(adpCREATEGOOGLEAPPSUSER20.java:46)
    11/06/02 13:03:21 at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.retryTasks(Unknown Source)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/06/02 13:03:21 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/06/02 13:03:21 at java.lang.reflect.Method.invoke(Method.java:585)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    11/06/02 13:03:21 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    11/06/02 13:03:21 at tcProvisioningOperations_RemoteProxy_6ocop18.retryTasks(Unknown Source)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/06/02 13:03:21 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/06/02 13:03:21 at java.lang.reflect.Method.invoke(Method.java:585)
    11/06/02 13:03:21 at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:61)
    11/06/02 13:03:21 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    11/06/02 13:03:21 at java.lang.Thread.run(Thread.java:595)
    11/06/02 13:03:21 Caused by: java.lang.ExceptionInInitializerError
    11/06/02 13:03:21 at com.zirous.mail.UserCreator.getService(UserCreator.java:145)
    at com.zirous.mail.UserCreator.createNewUser(UserCreator.java:80)
    11/06/02 13:03:21 ... 38 more
    11/06/02 13:03:21 Caused by: java.lang.NullPointerException
    11/06/02 13:03:21 at com.google.gdata.client.Service.<clinit>(Service.java:97)
    11/06/02 13:03:21 ... 40 more
    11/06/02 13:03:21 com.thortech.xl.dataobj.util.tcAdapterTaskException
    11/06/02 13:03:21 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCREATEGOOGLEAPPSUSER20.CREATEUSER20(adpCREATEGOOGLEAPPSUSER20.java:107)
    11/06/02 13:03:21 at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCREATEGOOGLEAPPSUSER20.implementation(adpCREATEGOOGLEAPPSUSER20.java:46)
    11/06/02 13:03:21 at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(Unknown Source)
    11/06/02 13:03:21 at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.retryTasks(Unknown Source)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/06/02 13:03:21 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/06/02 13:03:21 at java.lang.reflect.Method.invoke(Method.java:585)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    11/06/02 13:03:21 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    11/06/02 13:03:21 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    11/06/02 13:03:21 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    11/06/02 13:03:21 at tcProvisioningOperations_RemoteProxy_6ocop18.retryTasks(Unknown Source)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/06/02 13:03:21 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/06/02 13:03:21 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/06/02 13:03:21 at java.lang.reflect.Method.invoke(Method.java:585)
    11/06/02 13:03:21 at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:61)
    11/06/02 13:03:21 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    11/06/02 13:03:21 at java.lang.Thread.run(Thread.java:595)
    Thanks

    Okay, seems that the unofficial way to get this to work is to add the JARs to the WebLogic Server Instance Classpath. Once that is done you get past that issue.
    Next issue is that WLS uses CentiCOM SSL and that has an issue with the hostname not matching the certifcate name
    google-api.google.com not the same as *.google.com
    Fixed this in development by using the JVMArgument
    weblogic.security.SSL.ignoreHostnameVerification=true
    After that issue there is another WLS bug
    Caused by: javax.xml.parsers.FactoryConfigurationError: WebLogicSAXParser cannot be created.SAX feature 'http://xml.org/sax/features/external-general-entities' not supported.
    Not sure how to resolve that just yet, but http://kingsfleet.blogspot.com/2011_05_01_archive.html mentions a workaround but not sure how that affects OIM.

  • Web service using an external api (WSDL)

    Hi,
    Need to use a web service from google. I have the wsdl file with me.
    1. Since I am not clear on web services - need a step - by - step procedure on how to use this wsdl file in a WDA app.
    WDSL link: http://api.google.com/GoogleSearch.wsdl
    2. I also need a really simple tutorial on how to use external web services so that i can implement more of them into my application.
    Thanks.

    hi ,
    check this link ,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Regards ,
    venkat .

Maybe you are looking for

  • Is CanoScan LiDE 220 compatible with Photoshop Elements 6 & 8

    I purchased a CanoScan LiDE 220 scanner. My Adobe Photoshop Elements 6 & 8 do not recognize CanoScan LiDE 220, When I go to  File and import CanoScan LiDE 220 does not appear. Is CanoScan LiDE 220 compatible with Photoshop Elements 6 & 8 Thankyou Ken

  • Cpp-3157

    so i have a problem with Adobe Media Encoder... On the left i have a wmv file queued up a few times - i want to compare a few outputs. On the right i have Preset Browser. If i double click on any of the presets i get an error message:   adobe media e

  • Window.open problem

    Good Morning, I am having problems with the window.open() syntax. My application has 14 pages and is in 3.2. I need the whole application open in a new browser window. I have tested the code with a blank screen on page 101 and it opens correctly. Whe

  • OEHR Sample Objects Installation - ORA-00902: invalid datatype

    When I was trying to install the supporting objects, I received a CREATE TYPE privilege error previously. Then the DBA updated APEX to 2.2.1 to fix the problem. It did but know I'm gettingn ORA-00901:invalid datatype and othere errors with creating t

  • Calling CTX_DDL.SYNC_INDEX Package but reflected

    Hi All, I have a table Customer_Tif_Detail which is having   9383428 rows: select count(*) from Customer_Tif_Detail; COUNT(*) 9383428 And I have a query which taking too much time to execute, below is teh query: Select  ZIP_STATUS From Customer_Tif_D