/
delete 调用客户端示例
The following macros are not currently supported in the header:
- style
delete 调用客户端示例
以下代码是 Axis Client 程序示例,该程序调用 deleteAttachment 操作,并从 Row Id# 12 标识的数据库中删除附件文件条目。
public class AttachmentClient { public void main ( String [] args) { try { // Create the request AttachmentStub attachmentStub = new AttachmentStub(); AttachmentStub.Credentials credentials = new AttachmentStub.Credentials(); AttachmentStub.ExtendedSettings extParams = new AttachmentStub.ExtendedSettings(); // Initialize Credentials (User Name & User Password / Authorization Token & Slice Token) credentials.setUserName ( "wsuser"); credentials.setUserPassword ( "wsuser"); // Initialize Extended Settings such as Response Format (XML, JSON) extParams.setResponseFormat ( "JSON"); // Invoke the DELETE service AttachmentStub.DefaultServiceResponse serviceResponse = attachmentStub.deleteAttachment (credentials, extParams, "12"); // Inspect successful execution of service and retrieve the response text if (serviceResponse.getResponseStatus ().equals ( "OK")) { System.out.println( "JSON Response : " + serviceResponse.getResponseText ()); } // Retrieve the status code, status message and error messages, in case of failures else { System.out.println( "Status Code : " + serviceResponse.getStatusCode ()); System.out.println( "Status Message : " + serviceResponse.getStatusMessage ()); System.out.println( "Errors : " + Arrays.asList (serviceResponse.getErrors ()).toString ()); } } catch (Exception e) { System.out.println ( "Exception: " + e.getMessage()); } } }
Related content
Ejemplo de cliente de llamada de supresión
Ejemplo de cliente de llamada de supresión
More like this
get 调用客户端示例
get 调用客户端示例
More like this
list 调用客户端示例
list 调用客户端示例
More like this
update 调用客户端示例
update 调用客户端示例
More like this
insert 调用客户端示例
insert 调用客户端示例
More like this
Exemplo de cliente da chamada update
Exemplo de cliente da chamada update
More like this
© 2017 ServiceAide 1-650-206-8988 http://www.serviceaide.com info@serviceaide.com