Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
修改文档
  • Loading branch information
ximencx authored May 22, 2017
1 parent 42e2da5 commit b5dbe9b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# ksoap2retrofit
It is can help you use okhttp3 or retrofit accsse webservice.
KSoap2RetrofitHelper can convert httprequest to ksoaprequest and convert ksoap result to normal data,don't include netframwork denpence.
KSoap2JsonConverterFactory can help you that convert ksoap result to json when you use retrofit.
KSoap2XmlConverterFactory can help you that convert ksoap result to simplexml when you use retrofit.

<br />It is can help you use okhttp3 or retrofit accsse webservice.
<br />**KSoap2RetrofitHelper** can convert httprequest to ksoaprequest and convert ksoap result to normal data,don't include netframwork denpence.
<br />**KSoap2JsonConverterFactory** can help you that convert ksoap result to json when you use retrofit.
<br />**KSoap2XmlConverterFactory** can help you that convert ksoap result to simplexml when you use retrofit.

## Base usage
#### first,you need convert ksoap header ,nameSpace,method,key-value to normal header and request body.
### First,you need convert ksoap header ,nameSpace,method,key-value to normal header and request body.
/**
* 转换ksoap请求头和请求体
*
Expand All @@ -17,8 +16,8 @@ KSoap2XmlConverterFactory can help you that convert ksoap result to simplexml wh
*/
Requestksoap requestksoap = KSoap2RetrofitHelper.getInstance().convertRequest(method, nameSpacre, key-value);
#### secend,you need conver ksoap response to normal data.
## when you don't use retrofit,the method can conver ksoap response to the String data response.
### Secend,you need conver ksoap response to normal data.
#### when you don't use retrofit,the method can conver ksoap response to the String data response.
/**
* 转换ksoap响应体
*
Expand All @@ -29,9 +28,9 @@ KSoap2XmlConverterFactory can help you that convert ksoap result to simplexml wh
String normalresponse=KSoap2RetrofitHelper.getInstance().convertRequest(ksoapresponse);
####
## when you use retrofit,you can use convertfactor tool.
KSoap2XmlConverterFactory is xml tool.
KSoap2JsonConverterFactory is json tool.
#### when you use retrofit,you can use convertfactor tool.
**KSoap2XmlConverterFactory** is xml tool.
**KSoap2JsonConverterFactory** is json tool.



0 comments on commit b5dbe9b

Please sign in to comment.