WebService_StockRequest


Click here for a complete list of operations.

Do_Stock_RequestObject

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
ref_id:
ref_type:
ref_no:
ref_date:
qty:
total_qty:
issue_qty:
total_issue:
remian_qty:
total_remain:
def_unit:
request_title:
sub_ref_id:
sub_ref_type:
itemid:
unit_id:
station_id:
location_id:
locationgroup:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /Modules/EMR/WebServices/WebService_StockRequest.asmx HTTP/1.1
Host: 10.20.1.42
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Do_Stock_RequestObject"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Do_Stock_RequestObject xmlns="http://tempuri.org/">
      <ref_id>string</ref_id>
      <ref_type>string</ref_type>
      <ref_no>string</ref_no>
      <ref_date>dateTime</ref_date>
      <qty>decimal</qty>
      <total_qty>decimal</total_qty>
      <issue_qty>decimal</issue_qty>
      <total_issue>decimal</total_issue>
      <remian_qty>decimal</remian_qty>
      <total_remain>decimal</total_remain>
      <def_unit>string</def_unit>
      <request_title>string</request_title>
      <sub_ref_id>string</sub_ref_id>
      <sub_ref_type>string</sub_ref_type>
      <itemid>string</itemid>
      <unit_id>string</unit_id>
      <station_id>string</station_id>
      <location_id>string</location_id>
      <locationgroup>string</locationgroup>
    </Do_Stock_RequestObject>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Do_Stock_RequestObjectResponse xmlns="http://tempuri.org/">
      <Do_Stock_RequestObjectResult>
        <StockRequestID>string</StockRequestID>
        <RefID>string</RefID>
        <RefType>string</RefType>
        <RefNo>string</RefNo>
        <RefDate>dateTime</RefDate>
        <RequestOn>dateTime</RequestOn>
        <RequestQty>decimal</RequestQty>
        <TotalRequestQty>decimal</TotalRequestQty>
        <IssueQty>decimal</IssueQty>
        <TotalIssueQty>decimal</TotalIssueQty>
        <RemainQty>decimal</RemainQty>
        <TotalRemainQty>decimal</TotalRemainQty>
        <DefaultUnit>string</DefaultUnit>
        <RequestTitle>string</RequestTitle>
        <SubRefID>string</SubRefID>
        <SubRefType>string</SubRefType>
        <ItemID>string</ItemID>
        <UnitID>string</UnitID>
        <StationID>string</StationID>
        <LocationID>string</LocationID>
        <LocationGroup>string</LocationGroup>
        <CreatedOn>dateTime</CreatedOn>
        <CreatedBy>string</CreatedBy>
      </Do_Stock_RequestObjectResult>
    </Do_Stock_RequestObjectResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /Modules/EMR/WebServices/WebService_StockRequest.asmx HTTP/1.1
Host: 10.20.1.42
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Do_Stock_RequestObject xmlns="http://tempuri.org/">
      <ref_id>string</ref_id>
      <ref_type>string</ref_type>
      <ref_no>string</ref_no>
      <ref_date>dateTime</ref_date>
      <qty>decimal</qty>
      <total_qty>decimal</total_qty>
      <issue_qty>decimal</issue_qty>
      <total_issue>decimal</total_issue>
      <remian_qty>decimal</remian_qty>
      <total_remain>decimal</total_remain>
      <def_unit>string</def_unit>
      <request_title>string</request_title>
      <sub_ref_id>string</sub_ref_id>
      <sub_ref_type>string</sub_ref_type>
      <itemid>string</itemid>
      <unit_id>string</unit_id>
      <station_id>string</station_id>
      <location_id>string</location_id>
      <locationgroup>string</locationgroup>
    </Do_Stock_RequestObject>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Do_Stock_RequestObjectResponse xmlns="http://tempuri.org/">
      <Do_Stock_RequestObjectResult>
        <StockRequestID>string</StockRequestID>
        <RefID>string</RefID>
        <RefType>string</RefType>
        <RefNo>string</RefNo>
        <RefDate>dateTime</RefDate>
        <RequestOn>dateTime</RequestOn>
        <RequestQty>decimal</RequestQty>
        <TotalRequestQty>decimal</TotalRequestQty>
        <IssueQty>decimal</IssueQty>
        <TotalIssueQty>decimal</TotalIssueQty>
        <RemainQty>decimal</RemainQty>
        <TotalRemainQty>decimal</TotalRemainQty>
        <DefaultUnit>string</DefaultUnit>
        <RequestTitle>string</RequestTitle>
        <SubRefID>string</SubRefID>
        <SubRefType>string</SubRefType>
        <ItemID>string</ItemID>
        <UnitID>string</UnitID>
        <StationID>string</StationID>
        <LocationID>string</LocationID>
        <LocationGroup>string</LocationGroup>
        <CreatedOn>dateTime</CreatedOn>
        <CreatedBy>string</CreatedBy>
      </Do_Stock_RequestObjectResult>
    </Do_Stock_RequestObjectResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /Modules/EMR/WebServices/WebService_StockRequest.asmx/Do_Stock_RequestObject?ref_id=string&ref_type=string&ref_no=string&ref_date=string&qty=string&total_qty=string&issue_qty=string&total_issue=string&remian_qty=string&total_remain=string&def_unit=string&request_title=string&sub_ref_id=string&sub_ref_type=string&itemid=string&unit_id=string&station_id=string&location_id=string&locationgroup=string HTTP/1.1
Host: 10.20.1.42
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<INV_StockRequest xmlns="http://tempuri.org/">
  <StockRequestID>string</StockRequestID>
  <RefID>string</RefID>
  <RefType>string</RefType>
  <RefNo>string</RefNo>
  <RefDate>dateTime</RefDate>
  <RequestOn>dateTime</RequestOn>
  <RequestQty>decimal</RequestQty>
  <TotalRequestQty>decimal</TotalRequestQty>
  <IssueQty>decimal</IssueQty>
  <TotalIssueQty>decimal</TotalIssueQty>
  <RemainQty>decimal</RemainQty>
  <TotalRemainQty>decimal</TotalRemainQty>
  <DefaultUnit>string</DefaultUnit>
  <RequestTitle>string</RequestTitle>
  <SubRefID>string</SubRefID>
  <SubRefType>string</SubRefType>
  <ItemID>string</ItemID>
  <UnitID>string</UnitID>
  <StationID>string</StationID>
  <LocationID>string</LocationID>
  <LocationGroup>string</LocationGroup>
  <CreatedOn>dateTime</CreatedOn>
  <CreatedBy>string</CreatedBy>
</INV_StockRequest>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /Modules/EMR/WebServices/WebService_StockRequest.asmx/Do_Stock_RequestObject HTTP/1.1
Host: 10.20.1.42
Content-Type: application/x-www-form-urlencoded
Content-Length: length

ref_id=string&ref_type=string&ref_no=string&ref_date=string&qty=string&total_qty=string&issue_qty=string&total_issue=string&remian_qty=string&total_remain=string&def_unit=string&request_title=string&sub_ref_id=string&sub_ref_type=string&itemid=string&unit_id=string&station_id=string&location_id=string&locationgroup=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<INV_StockRequest xmlns="http://tempuri.org/">
  <StockRequestID>string</StockRequestID>
  <RefID>string</RefID>
  <RefType>string</RefType>
  <RefNo>string</RefNo>
  <RefDate>dateTime</RefDate>
  <RequestOn>dateTime</RequestOn>
  <RequestQty>decimal</RequestQty>
  <TotalRequestQty>decimal</TotalRequestQty>
  <IssueQty>decimal</IssueQty>
  <TotalIssueQty>decimal</TotalIssueQty>
  <RemainQty>decimal</RemainQty>
  <TotalRemainQty>decimal</TotalRemainQty>
  <DefaultUnit>string</DefaultUnit>
  <RequestTitle>string</RequestTitle>
  <SubRefID>string</SubRefID>
  <SubRefType>string</SubRefType>
  <ItemID>string</ItemID>
  <UnitID>string</UnitID>
  <StationID>string</StationID>
  <LocationID>string</LocationID>
  <LocationGroup>string</LocationGroup>
  <CreatedOn>dateTime</CreatedOn>
  <CreatedBy>string</CreatedBy>
</INV_StockRequest>