Skip to Content
author's profile photo Former Member
Former Member

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 !

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 14, 2004 at 10:38 AM

    This is additional info I have found.

    The exception seems to be caused by a chunked http response. In fact, while google provided apis I send a http/1.0 request and get a clean response in 4 http packets while EP6 sends a http/1.1 request which gets back a transfer-encoding: chunked response. In this response I have a "51a" byte counter before the actual xml data, this causes SAP XML parser to fail.

    IS THERE A WAY TO FIX THIS ???

    HELP!!!!!

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

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

  • author's profile photo Former Member
    Former Member
    Posted on Sep 14, 2004 at 04:32 PM

    Anybody that can give hints on this topic ?

    Thanks in advance

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 04:14 PM

    I have no idea why the XML parser chokes. Probably these binary chars are not allowed in a soap header.

    This should be the unicode byte order mark, though. At the beginning of unicode text files there is a convention to start with FFEF, so that the program that opens the file can determine which byte order was used by the machine that created the file.

    The XML functions that are available in ABAP create BOMs, too. Probably they did not clean up this piece of unwanted "information" and flushed it over into the HTTP message, where it is probably disallowed.

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.