SQL Query提取额外数据

时间:2015-08-19 15:01:21

标签: sql api soap soapui

我在SOAPUI中使用此查询来对付SOAP API。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:del="http://tempuri.org/Deltek.Vision.WebServiceAPI.Server/DeltekVisionOpenAPIWebService">
   <soapenv:Header/>
   <soapenv:Body>
      <del:GetProjectsByQuery>
         <!--Optional:-->
         <del:ConnInfoXML><![CDATA[<VisionConnInfo> 
              <databaseDescription>Description</databaseDescription> 
              <userName>USERNAME</userName>
              <userPassword>PASSWORD</userPassword>
              <integratedSecurity>Y</integratedSecurity> 
            </VisionConnInfo>]]></del:ConnInfoXML>
         <!--Optional:-->
         <del:Query>SELECT WBS1,Name,Principal FROM PR WHERE PR.WBS1='H15032.00'</del:Query>
         <!--Optional:-->
         <del:RecordDetail>'Project'</del:RecordDetail>
      </del:GetProjectsByQuery>
   </soapenv:Body>
</soapenv:Envelope>

请求通过并给我一个回复,但它也给了我额外的字段。我只想拉取查询本身中指定的列,如WBS1,Name和Principal字段。

<WBS1>H15032.00</WBS1> 
<Name>Name</Name> 
<Principal>Principal Name</Principal>
<custLetterofIntent>Y</custLetterofIntent>
<custIssued>2015-06-03T00:00:00.000</c‌​ustIssued>
<CreateUser>KGOODENOW</CreateUser>
<CreateDate>2015-06-03T15:51:20.913</‌​CreateDate>
<ModUser>KGOODENOW</ModUser>
<ModDate>2015-06-03T15:52:29.227</ModDate>‌​
<CustContractStatus>LOI</CustContractStatus>
</ROW>
</Projects_ConsultantAgreements‌​>
</REC>
</RECS>]]>
</GetProjectsByQueryResult>

我错过了什么吗?

0 个答案:

没有答案