cancel
Showing results for 
Search instead for 
Did you mean: 

soap fault in a Google Search test scenario!

Former Member
0 Kudos

Hi folks,

I did the Google Search test scenario (following SAP How-to guide) and now when I test it I receive an error! A soap fault!!! I don’t have sure, but did I reach the WS Google Search or this error was generated by AF?

  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
- <!-- 
 Call Adapter 
  --> 
- <SAP:Error xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP:mustUnderstand="1">
  <SAP:Category>XIAdapter</SAP:Category> 
  <SAP:Code area="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code> 
  <SAP:P1 /> 
  <SAP:P2 /> 
  <SAP:P3 /> 
  <SAP:P4 /> 
  <SAP:AdditionalText>soap fault: No Deserializer found to deserialize a ':key' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.</SAP:AdditionalText> 
  <SAP:ApplicationFaultMessage namespace="" /> 
  <SAP:Stack /> 
  <SAP:Retry>M</SAP:Retry> 
  </SAP:Error>

Anyone knows the meaning of this error?

Thanks in advance,

Ricardo.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Could you post the payload from the test?

It is not easy to do the google web service with SOAP adapter.

I usually take a file with the required XML structure and send the content without mapping.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

I’m using this payload:

<?xml version="1.0" encoding="UTF-8"?>

<ns:doGoogleSearch xmlns:ns="urn:GoogleSearch">
  <key>ricardojqp@gmail.com</key>
  <q>test</q>
  <start>0</start>
  <maxResults>5</maxResults>
  <filter>true</filter>
  <restrict> </restrict>
  <safeSearch>false</safeSearch>
  <lr> </lr>
  <ie>UTF-8</ie>
  <oe>UTF-8</oe>
</ns:doGoogleSearch>

I don’t have sure about the values of these elements; do you know if it is right?

Thanks in advance,

Ricardo.

stefan_grube
Active Contributor
0 Kudos

You have to apply for a key. But I found on the google page, that no keys are suppplied any longer, therefore you cannot use the google search web service any more.

http://code.google.com/apis/soapsearch/index.html

Maybe you can try yahoo search APi instead:

http://developer.yahoo.com/search/

Regards

Stefan

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks a lot Stefan. I will try with yahoo search.

Regards and points rewarded

Ricardo.