WebService_Stock


Click here for a complete list of operations.

Do_Stock_FlowObject

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
ref_type:
ref_id:
ref_no:
ref_date:
sub_ref_type:
sub_ref_id:
qty:
flow_title:
flow_type:
itemid:
owner_ref_id:
owner_ref_type:
location_id:
locationgroup:
channel:

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_Stock.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_FlowObject"

<?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_FlowObject xmlns="http://tempuri.org/">
      <ref_type>string</ref_type>
      <ref_id>string</ref_id>
      <ref_no>string</ref_no>
      <ref_date>dateTime</ref_date>
      <sub_ref_type>string</sub_ref_type>
      <sub_ref_id>string</sub_ref_id>
      <qty>decimal</qty>
      <flow_title>string</flow_title>
      <flow_type>string</flow_type>
      <itemid>string</itemid>
      <owner_ref_id>string</owner_ref_id>
      <owner_ref_type>string</owner_ref_type>
      <location_id>string</location_id>
      <locationgroup>string</locationgroup>
      <channel>string</channel>
    </Do_Stock_FlowObject>
  </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_FlowObjectResponse xmlns="http://tempuri.org/">
      <Do_Stock_FlowObjectResult>
        <StockFlowID>string</StockFlowID>
        <RefID>string</RefID>
        <RefType>string</RefType>
        <RefNo>string</RefNo>
        <RefDate>dateTime</RefDate>
        <FlowOn>dateTime</FlowOn>
        <FlowBy>string</FlowBy>
        <FlowQty>decimal</FlowQty>
        <FlowTitle>string</FlowTitle>
        <FlowType>string</FlowType>
        <SubRefID>string</SubRefID>
        <SubRefType>string</SubRefType>
        <OwnerRefID>string</OwnerRefID>
        <OwnerRefType>string</OwnerRefType>
        <ItemID>string</ItemID>
        <LocationID>string</LocationID>
        <LocationGroup>string</LocationGroup>
        <CreatedOn>dateTime</CreatedOn>
        <CreatedBy>string</CreatedBy>
        <Channel>string</Channel>
      </Do_Stock_FlowObjectResult>
    </Do_Stock_FlowObjectResponse>
  </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_Stock.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_FlowObject xmlns="http://tempuri.org/">
      <ref_type>string</ref_type>
      <ref_id>string</ref_id>
      <ref_no>string</ref_no>
      <ref_date>dateTime</ref_date>
      <sub_ref_type>string</sub_ref_type>
      <sub_ref_id>string</sub_ref_id>
      <qty>decimal</qty>
      <flow_title>string</flow_title>
      <flow_type>string</flow_type>
      <itemid>string</itemid>
      <owner_ref_id>string</owner_ref_id>
      <owner_ref_type>string</owner_ref_type>
      <location_id>string</location_id>
      <locationgroup>string</locationgroup>
      <channel>string</channel>
    </Do_Stock_FlowObject>
  </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_FlowObjectResponse xmlns="http://tempuri.org/">
      <Do_Stock_FlowObjectResult>
        <StockFlowID>string</StockFlowID>
        <RefID>string</RefID>
        <RefType>string</RefType>
        <RefNo>string</RefNo>
        <RefDate>dateTime</RefDate>
        <FlowOn>dateTime</FlowOn>
        <FlowBy>string</FlowBy>
        <FlowQty>decimal</FlowQty>
        <FlowTitle>string</FlowTitle>
        <FlowType>string</FlowType>
        <SubRefID>string</SubRefID>
        <SubRefType>string</SubRefType>
        <OwnerRefID>string</OwnerRefID>
        <OwnerRefType>string</OwnerRefType>
        <ItemID>string</ItemID>
        <LocationID>string</LocationID>
        <LocationGroup>string</LocationGroup>
        <CreatedOn>dateTime</CreatedOn>
        <CreatedBy>string</CreatedBy>
        <Channel>string</Channel>
      </Do_Stock_FlowObjectResult>
    </Do_Stock_FlowObjectResponse>
  </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_Stock.asmx/Do_Stock_FlowObject?ref_type=string&ref_id=string&ref_no=string&ref_date=string&sub_ref_type=string&sub_ref_id=string&qty=string&flow_title=string&flow_type=string&itemid=string&owner_ref_id=string&owner_ref_type=string&location_id=string&locationgroup=string&channel=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_StockFlow xmlns="http://tempuri.org/">
  <StockFlowID>string</StockFlowID>
  <RefID>string</RefID>
  <RefType>string</RefType>
  <RefNo>string</RefNo>
  <RefDate>dateTime</RefDate>
  <FlowOn>dateTime</FlowOn>
  <FlowBy>string</FlowBy>
  <FlowQty>decimal</FlowQty>
  <FlowTitle>string</FlowTitle>
  <FlowType>string</FlowType>
  <SubRefID>string</SubRefID>
  <SubRefType>string</SubRefType>
  <OwnerRefID>string</OwnerRefID>
  <OwnerRefType>string</OwnerRefType>
  <ItemID>string</ItemID>
  <LocationID>string</LocationID>
  <LocationGroup>string</LocationGroup>
  <CreatedOn>dateTime</CreatedOn>
  <CreatedBy>string</CreatedBy>
  <Channel>string</Channel>
</INV_StockFlow>

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_Stock.asmx/Do_Stock_FlowObject HTTP/1.1
Host: 10.20.1.42
Content-Type: application/x-www-form-urlencoded
Content-Length: length

ref_type=string&ref_id=string&ref_no=string&ref_date=string&sub_ref_type=string&sub_ref_id=string&qty=string&flow_title=string&flow_type=string&itemid=string&owner_ref_id=string&owner_ref_type=string&location_id=string&locationgroup=string&channel=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<INV_StockFlow xmlns="http://tempuri.org/">
  <StockFlowID>string</StockFlowID>
  <RefID>string</RefID>
  <RefType>string</RefType>
  <RefNo>string</RefNo>
  <RefDate>dateTime</RefDate>
  <FlowOn>dateTime</FlowOn>
  <FlowBy>string</FlowBy>
  <FlowQty>decimal</FlowQty>
  <FlowTitle>string</FlowTitle>
  <FlowType>string</FlowType>
  <SubRefID>string</SubRefID>
  <SubRefType>string</SubRefType>
  <OwnerRefID>string</OwnerRefID>
  <OwnerRefType>string</OwnerRefType>
  <ItemID>string</ItemID>
  <LocationID>string</LocationID>
  <LocationGroup>string</LocationGroup>
  <CreatedOn>dateTime</CreatedOn>
  <CreatedBy>string</CreatedBy>
  <Channel>string</Channel>
</INV_StockFlow>