CenterWSServerBS

<back to all web services

UploadAssignDataRequest

指定数据上传接口

Requires Authentication
The following routes are available for this service:
POST/UploadAssignData
UploadAssignDataRequest Parameters:
NameParameterData TypeRequiredDescription
ModelbodyList<AssignDataModel>No
AssignDataModel Parameters:
NameParameterData TypeRequiredDescription
TableformstringNo表名
DataformDictionary<string, string>No上传的数据key为字段名,value为字段值
UploadAssignDataResponse Parameters:
NameParameterData TypeRequiredDescription
AllSuccformboolNo是否都成功
ErrMsgformstringNo失败信息等
ResultformList<ItemUploadResult>No上传结果
ItemUploadResult Parameters:
NameParameterData TypeRequiredDescription
TableformstringNo表名
FilePathformstringNo附件上传后的路径
IsSucformboolNo是否成功
msgformstringNo失败信息等

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /UploadAssignData HTTP/1.1 
Host: gxzj.service.jyjzqy.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UploadAssignDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenterWSServerBS.ServiceModel">
  <Model>
    <AssignDataModel>
      <Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Data>
      <Table>String</Table>
    </AssignDataModel>
  </Model>
</UploadAssignDataRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UploadAssignDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CenterWSServerBS.ServiceModel">
  <AllSucc>false</AllSucc>
  <ErrMsg>String</ErrMsg>
  <Result>
    <ItemUploadResult>
      <FilePath>String</FilePath>
      <IsSuc>false</IsSuc>
      <Table>String</Table>
      <msg>String</msg>
    </ItemUploadResult>
  </Result>
</UploadAssignDataResponse>