SOAP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
</Header> | </Header> | ||
<Body> | <Body> | ||
<StockDispensationRequest | <StockDispensationRequest> | ||
<StockDispensation> | <StockDispensation> | ||
<TransactionID>2423423423</TransactionID> | |||
<TransactionType>1</TransactionType> | |||
<TransactionInterface>MEDSYS</TransactionInterface> | |||
<NationalOrganizationID>102</NationalOrganizationID> | |||
<LocationCode>1001</LocationCode> | |||
<ERPID>25464</ERPID> | |||
<BrandID>64</BrandID> | |||
<Quantity>67</Quantity> | |||
<UOM>UOM</UOM> | |||
<ConversionRatio>1</ConversionRatio> | |||
<LotNumber>101</LotNumber> | |||
<ExpiryDate>2022-01-01T00:00:00</ExpiryDate> | |||
<GTIN>05000456007481</GTIN> | |||
<SerialNumber>545051818</SerialNumber> | |||
</ | |||
</StockDispensation> | </StockDispensation> | ||
</StockDispensationRequest> | </StockDispensationRequest> |
Revision as of 04:09, 4 March 2020
SOAP (abbreviation for Simple Object Access Protocol) is a messaging protocol specification for exchanging structured information in the implementation of web services in computer networks. Its purpose is to provide extensibility, neutrality, verbosity and independence. It uses XML Information Set for its message format, and relies on application layer protocols, most often Hypertext Transfer Protocol (HTTP), although some legacy systems communicate over Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission.
Request
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Header>
<Security>
<UsernameToken>
<Username>mawared</Username>
<Password>p@ssw0rd</Password>
</UsernameToken>
</Security>
</Header>
<Body>
<StockDispensationRequest>
<StockDispensation>
<TransactionID>2423423423</TransactionID>
<TransactionType>1</TransactionType>
<TransactionInterface>MEDSYS</TransactionInterface>
<NationalOrganizationID>102</NationalOrganizationID>
<LocationCode>1001</LocationCode>
<ERPID>25464</ERPID>
<BrandID>64</BrandID>
<Quantity>67</Quantity>
<UOM>UOM</UOM>
<ConversionRatio>1</ConversionRatio>
<LotNumber>101</LotNumber>
<ExpiryDate>2022-01-01T00:00:00</ExpiryDate>
<GTIN>05000456007481</GTIN>
<SerialNumber>545051818</SerialNumber>
</StockDispensation>
</StockDispensationRequest>
</Body>
</Envelope>
Response
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault xmlns:ns0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<faultcode>ns0:InvalidSecurity</faultcode>
<faultstring>InvalidSecurity : error in processing the WS-Security security header</faultstring>
<faultactor></faultactor>
</env:Fault>
</env:Body>
</env:Envelope>