Forum Discussion

TerryCarter's avatar
11 years ago

Webservices in SAP GRC

Hi All.
Hope you can help.. This is my first time using this tool and I only want to test a one web service.
The webservice is supplied by SAP in their GRC 10 system….. Internal test work fine, but I want to test it from an external product.

The trouble is I’m getting an error when I import the WSDL.
See the attachment
Which the HTTP log suggest is an authorisation issue…. But I have full access in the SAP system



SOAPUIlog
Thu Jun 06 16:24:25 BST 2013:DEBUG:Getting wsdl component from [http://@@@@@@/sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document?sap-client=100]
Thu Jun 06 16:24:25 BST 2013:INFO:<SERVER_NAME:port> requires authentication with the realm 'SAP NetWeaver Application Server [G10/100]'
Thu Jun 06 16:24:37 BST 2013:ERROR:Failed to load url [http://<SERVER_NAME:port>/sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document?sap-client=100]
Thu Jun 06 16:24:37 BST 2013:ERROR:An error occured [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
Thu Jun 06 16:26:34 BST 2013:DEBUG:Getting wsdl component from [http://<SERVER_NAME:port>/sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document?sap-client=100]
Thu Jun 06 16:26:34 BST 2013:INFO:<SERVER_NAME:port> requires authentication with the realm 'SAP NetWeaver Application Server [G10/100]'
Thu Jun 06 16:26:42 BST 2013:ERROR:Failed to load url [http://<SERVER_NAME:port>/sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document?sap-client=100]
Thu Jun 06 16:26:42 BST 2013:ERROR:An error occured [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
Error log
Thu Jun 06 16:26:42 BST 2013:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
HTTP log
Thu Jun 06 16:26:34 BST 2013:DEBUG:>> "GET /sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document?sap-client=100 HTTP/1.1[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:>> "Host: <SERVER_NAME:port>[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:>> "Cookie: sap-usercontext=sap-client=100[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:>> "Cookie2: $Version=1[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:>> "[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:<< "HTTP/1.1 401 Unauthorized[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:<< "content-type: text/html; charset=utf-8[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:<< "content-length: 2109[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:<< "sap-system: G10[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:<< "www-authenticate: Basic realm="SAP NetWeaver Application Server [G10/100]"[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:<< "server: SAP NetWeaver Application Server / ABAP 702[\r][\n]"
Thu Jun 06 16:26:34 BST 2013:DEBUG:<< "[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "<html><head><title>Logon Error Message</title><META http-equiv="Content-Type" content="text/html;charset=UTF-8"><style type="text/css">body { font-family:tahoma,helvetica,sans-serif;color:#333333;background-color:#FFFFFF; }td { font-family:tahoma,helvetica,sans-serif;font-size:70%;color:#333333; }h1 { font-family:tahoma,helvetica,sans-serif;font-size:160%;font-weight:bold;margin-top:15px;margin-bottom:3px;color:#003366; }h2 { font-family:verdana,helvetica,sans-serif;font-size:120%;font-style:italic;font-weight:bold;margin-top:6px;margin-bottom:6px;color:#999900; }p { font-family:tahoma,helvetica,sans-serif;color:#333333;margin-top:4px;margin-bottom:4px; }ul { font-family:tahoma,helvetica,sans-serif;color:#333333;list-style-type:square;margin-top:8px;margin-bottom:8px; }li { font-family:tahoma,helvetica,sans-serif;color:#33333;margin-top:4px; }.emphasize { color:#333333;background-color:#C8E3FF;padding:5px;}.note { color:#CC6600; }a { font-family:tahoma,helvetica,sans-serif;text-decoration:underli"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "ne;color:#336699; }a:visited { color:#001166; }a:hover { text-decoration:none; }</style></head><body><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><h1>Anmeldung fehlgeschlagen</h1><br><h2>Was ist passiert ?</h2><p>Der Aufruf der URL http://<SERVER_NAME:port>/sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document wurde aufgrund fehlerhafter Anmeldedaten abgebrochen.</p></td></tr><tr><td>&nbsp;</td></tr><tr><td class="emphasize"><strong>Hinweis</strong><br>Die Anmeldung wurde im System G10 ausgef[0xc3][0xbc]hrt. Hierbei wurden keine Anmeldedaten bereitgestellt.</td></tr><tr><td>&nbsp;</td></tr><tr><td><p> &nbsp;</p><h2>Was k[0xc3][0xb6]nnen Sie tun ?</h2><ul><li> Falls Sie noch [0xc3][0xbc]ber keine Benutzerkennung verf[0xc3][0xbc]gen, so wenden Sie sich an Ihren Systemadministrator. </li></ul></br><p class="note">Fehlercode: ICF-LE-http-c:100-l:-T:-C:3-U:-P:-L:6-X:000C296B61911ED2B3D7953DFEC7B651_000C296B61911ED2B3D7953DEBA5B651_1-x:A9BCCEE2F6EFF1429651000C296B6191</p></br><p> HTTP 401 - Unauthorized</br><p> Ihr SAP Internet Communication Framework Team</p></td></tr></table></body></html>"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "GET /sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document?sap-client=100 HTTP/1.1[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "Host: <SERVER_NAME:port>[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "Cookie: sap-usercontext=sap-client=100[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "Cookie2: $Version=1[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "Authorization: Basic SU5URUdSQy1UQzpNYXNvbjEhMz8=[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:>> "[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "HTTP/1.1 401 Unauthorized[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "content-type: text/html; charset=utf-8[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "content-length: 2297[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "sap-system: G10[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "www-authenticate: Basic realm="SAP NetWeaver Application Server [G10/100]"[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "server: SAP NetWeaver Application Server / ABAP 702[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "[\r][\n]"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "<html><head><title>Logon Error Message</title><META http-equiv="Content-Type" content="text/html;charset=UTF-8"><style type="text/css">body { font-family:tahoma,helvetica,sans-serif;color:#333333;background-color:#FFFFFF; }td { font-family:tahoma,helvetica,sans-serif;font-size:70%;color:#333333; }h1 { font-family:tahoma,helvetica,sans-serif;font-size:160%;font-weight:bold;margin-top:15px;margin-bottom:3px;color:#003366; }h2 { font-family:verdana,helvetica,sans-serif;font-size:120%;font-style:italic;font-weight:bold;margin-top:6px;margin-bottom:6px;color:#999900; }p { font-family:tahoma,helvetica,sans-serif;color:#333333;margin-top:4px;margin-bottom:4px; }ul { font-family:tahoma,helvetica,sans-serif;color:#333333;list-style-type:square;margin-top:8px;margin-bottom:8px; }li { font-family:tahoma,helvetica,sans-serif;color:#33333;margin-top:4px; }.emphasize { color:#333333;background-color:#C8E3FF;padding:5px;}.note { color:#CC6600; }a { font-family:tahoma,helvetica,sans-serif;text-decoration:underline;color:#336699; }a:visited { color:#001166; }a:hover { text-decoration:none; }</style></head><body><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><h1>Anmeldung fehlgeschlagen</h1><br><h2>Was ist passiert ?</h2><p>Der Aufruf der URL http://<SERVER_NAME:port>/sap/bc/srt/wsdl/sdef_GRAC_USER_ACCES_WS/wsdl11/ws_policy/document wurde aufgrund fehlerhafter Anmeldedaten abgebrochen.</p></td></tr><tr><td>&nbsp;</td></tr><tr><td class="emphasize"><strong>Hinweis</strong><br><ul><li> Die Anmeldung wurde im System G10 ausgef[0xc3][0xbc]hrt. </li><li> Die Anmeldung wurde f[0xc3][0xbc]r den Mandanten 100 und den Benutzer INTEGRC-TC und die Sprache durchgef[0xc3][0xbc]hrt. </li></ul></td></tr><tr><td>&nbsp;</td></tr><tr><td><p> &nbsp;</p><h2>Was k[0xc3][0xb6]nnen Sie tun ?</h2><ul><li> [0xc3][0x9c]berpr[0xc3][0xbc]fen Sie die Angabe [0xc3][0xbc]ber den Mandanten, Benutzer und das Passwort auf Tippfehler. </li> <li> Falls Sie noch [0xc3][0xbc]ber keine Benutzerkennung verf[0xc3][0xbc]gen, so wenden Sie sich an Ihren Systemadministrator. </li></ul></br><p class="note">Fehlercode: ICF-LE-http-c:100-l:-T:1-C:3-U:5-P:5-L:6-X:000C296B61911ED2B3D7953DFEC89651_000C296B61911ED2B3D7953DEBA5F651_1-x:A9BCCEE2F6EFF1499651000C296B6191</p></br><p> HTTP 401 - Unauthorized</br><p> Ihr SAP Internet Communication Framework Te"
Thu Jun 06 16:26:42 BST 2013:DEBUG:<< "am</p></td></tr></table></body></html>"


Kind Regards,
Terry Carter

1 Reply

  • nmrao's avatar
    nmrao
    Champion Level 3
    Please check two things:
    1. Whether the wsdl file that being imported in the project is valid one. You may try that using the browser.
    2. If there is any credentials require to access. Get in touch with your service provider.