SOAP Web Service
方法論でAndroidでinを呼び出そうとしていRestful
ます。
DefaultHttpClient client=new DefaultHttpClient();
HttpHost targetHost=new HttpHost("87.11.9.26", 8000, "http");
client.getCredentialsProvider()
.setCredentials(new AuthScope(targetHost.getHostName(),
targetHost.getPort()),
new UsernamePasswordCredentials("abcdefg","*******"));
BasicScheme basicAuth=new BasicScheme();
BasicHttpContext localcontex=new BasicHttpContext();
localcontex.setAttribute(ClientContext.AUTH_SCHEME_PREF, basicAuth);
HttpGet request=new HttpGet("http://87.11.9.26:8000/sap/bc/srt/rfc/
sap/zmaterials_group_list/800/zmaterials_group_list/zmaterials_group_list_bind/");
ResponseHandler<String> handler=new BasicResponseHandler();
try {
System.out.println("**********target host is****************"+targetHost);
System.out.println("**********request is****************"+request);
result=client.execute(targetHost, request, handler);
System.out.println("**************************"+result);
// client.getConnectionManager().shutdown();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
次に、次のように例外を与えます
org.apache.http.client.HttpResponseException: SRT: Unexpected failure in SOAP
processing occurred: ("No Web service configuration for this
access path: "/sap/bc/srt/rfc/sap/zmaterials_group_list/800/zmat"")
私が間違ったことを助けてください。よろしくお願いします。