我正在尝试调用SOAP Web Service
in android inRestful
方法。
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"")
请帮助我在哪里做错了。在此先感谢。