WebService2
Click here for a complete list of operations.
SendFactorToServer
Test
The test form is only available for requests from the local machine.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 /WebService2.asmx HTTP/1.1 Host: services.baransys.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/SendFactorToServer" <?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> <SendFactorToServer xmlns="http://tempuri.org/"> <FactorItems> <Factor_Item> <id>int</id> <idFactors>string</idFactors> <itemsid>string</itemsid> <itemsName>string</itemsName> <itemsCount>decimal</itemsCount> <itemsUnit>string</itemsUnit> <itemsAmount>decimal</itemsAmount> <itemsDiscount>decimal</itemsDiscount> <itemsTax>decimal</itemsTax> </Factor_Item> <Factor_Item> <id>int</id> <idFactors>string</idFactors> <itemsid>string</itemsid> <itemsName>string</itemsName> <itemsCount>decimal</itemsCount> <itemsUnit>string</itemsUnit> <itemsAmount>decimal</itemsAmount> <itemsDiscount>decimal</itemsDiscount> <itemsTax>decimal</itemsTax> </Factor_Item> </FactorItems> <Factorheader> <FactorHeaderDetails> <factorId>string</factorId> <factorNumber>string</factorNumber> <factorDate>dateTime</factorDate> <factorService>decimal</factorService> <factorDelivery>decimal</factorDelivery> <factorDiscount>decimal</factorDiscount> <factorTax>decimal</factorTax> <factorFinalAmount>decimal</factorFinalAmount> <factordescription>string</factordescription> <factorPack>string</factorPack> <factorType>int</factorType> <FactorCustName>string</FactorCustName> <FactorCustEconomical>string</FactorCustEconomical> <FactorCustNational>string</FactorCustNational> <FactorCustState>string</FactorCustState> <FactorCustCityState>string</FactorCustCityState> <FactorCustPostal>string</FactorCustPostal> <FactorCustCity>string</FactorCustCity> <FactorCustAddress>string</FactorCustAddress> <FactorCustPhone>string</FactorCustPhone> <TempFactorId>int</TempFactorId> </FactorHeaderDetails> <FactorHeaderDetails> <factorId>string</factorId> <factorNumber>string</factorNumber> <factorDate>dateTime</factorDate> <factorService>decimal</factorService> <factorDelivery>decimal</factorDelivery> <factorDiscount>decimal</factorDiscount> <factorTax>decimal</factorTax> <factorFinalAmount>decimal</factorFinalAmount> <factordescription>string</factordescription> <factorPack>string</factorPack> <factorType>int</factorType> <FactorCustName>string</FactorCustName> <FactorCustEconomical>string</FactorCustEconomical> <FactorCustNational>string</FactorCustNational> <FactorCustState>string</FactorCustState> <FactorCustCityState>string</FactorCustCityState> <FactorCustPostal>string</FactorCustPostal> <FactorCustCity>string</FactorCustCity> <FactorCustAddress>string</FactorCustAddress> <FactorCustPhone>string</FactorCustPhone> <TempFactorId>int</TempFactorId> </FactorHeaderDetails> </Factorheader> <PackNumber>string</PackNumber> </SendFactorToServer> </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> <SendFactorToServerResponse xmlns="http://tempuri.org/"> <SendFactorToServerResult> <FactorLinks> <FactorLinkDetail> <FactorLink>string</FactorLink> <FactorId>string</FactorId> </FactorLinkDetail> <FactorLinkDetail> <FactorLink>string</FactorLink> <FactorId>string</FactorId> </FactorLinkDetail> </FactorLinks> <paidDetail> <FactorPaidDetail> <BaranFactorId>string</BaranFactorId> <PayAmount>string</PayAmount> <PayDate>dateTime</PayDate> <PayAuthority>string</PayAuthority> </FactorPaidDetail> <FactorPaidDetail> <BaranFactorId>string</BaranFactorId> <PayAmount>string</PayAmount> <PayDate>dateTime</PayDate> <PayAuthority>string</PayAuthority> </FactorPaidDetail> </paidDetail> <ResId>int</ResId> <ResMessage>string</ResMessage> </SendFactorToServerResult> </SendFactorToServerResponse> </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 /WebService2.asmx HTTP/1.1 Host: services.baransys.com 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> <SendFactorToServer xmlns="http://tempuri.org/"> <FactorItems> <Factor_Item> <id>int</id> <idFactors>string</idFactors> <itemsid>string</itemsid> <itemsName>string</itemsName> <itemsCount>decimal</itemsCount> <itemsUnit>string</itemsUnit> <itemsAmount>decimal</itemsAmount> <itemsDiscount>decimal</itemsDiscount> <itemsTax>decimal</itemsTax> </Factor_Item> <Factor_Item> <id>int</id> <idFactors>string</idFactors> <itemsid>string</itemsid> <itemsName>string</itemsName> <itemsCount>decimal</itemsCount> <itemsUnit>string</itemsUnit> <itemsAmount>decimal</itemsAmount> <itemsDiscount>decimal</itemsDiscount> <itemsTax>decimal</itemsTax> </Factor_Item> </FactorItems> <Factorheader> <FactorHeaderDetails> <factorId>string</factorId> <factorNumber>string</factorNumber> <factorDate>dateTime</factorDate> <factorService>decimal</factorService> <factorDelivery>decimal</factorDelivery> <factorDiscount>decimal</factorDiscount> <factorTax>decimal</factorTax> <factorFinalAmount>decimal</factorFinalAmount> <factordescription>string</factordescription> <factorPack>string</factorPack> <factorType>int</factorType> <FactorCustName>string</FactorCustName> <FactorCustEconomical>string</FactorCustEconomical> <FactorCustNational>string</FactorCustNational> <FactorCustState>string</FactorCustState> <FactorCustCityState>string</FactorCustCityState> <FactorCustPostal>string</FactorCustPostal> <FactorCustCity>string</FactorCustCity> <FactorCustAddress>string</FactorCustAddress> <FactorCustPhone>string</FactorCustPhone> <TempFactorId>int</TempFactorId> </FactorHeaderDetails> <FactorHeaderDetails> <factorId>string</factorId> <factorNumber>string</factorNumber> <factorDate>dateTime</factorDate> <factorService>decimal</factorService> <factorDelivery>decimal</factorDelivery> <factorDiscount>decimal</factorDiscount> <factorTax>decimal</factorTax> <factorFinalAmount>decimal</factorFinalAmount> <factordescription>string</factordescription> <factorPack>string</factorPack> <factorType>int</factorType> <FactorCustName>string</FactorCustName> <FactorCustEconomical>string</FactorCustEconomical> <FactorCustNational>string</FactorCustNational> <FactorCustState>string</FactorCustState> <FactorCustCityState>string</FactorCustCityState> <FactorCustPostal>string</FactorCustPostal> <FactorCustCity>string</FactorCustCity> <FactorCustAddress>string</FactorCustAddress> <FactorCustPhone>string</FactorCustPhone> <TempFactorId>int</TempFactorId> </FactorHeaderDetails> </Factorheader> <PackNumber>string</PackNumber> </SendFactorToServer> </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> <SendFactorToServerResponse xmlns="http://tempuri.org/"> <SendFactorToServerResult> <FactorLinks> <FactorLinkDetail> <FactorLink>string</FactorLink> <FactorId>string</FactorId> </FactorLinkDetail> <FactorLinkDetail> <FactorLink>string</FactorLink> <FactorId>string</FactorId> </FactorLinkDetail> </FactorLinks> <paidDetail> <FactorPaidDetail> <BaranFactorId>string</BaranFactorId> <PayAmount>string</PayAmount> <PayDate>dateTime</PayDate> <PayAuthority>string</PayAuthority> </FactorPaidDetail> <FactorPaidDetail> <BaranFactorId>string</BaranFactorId> <PayAmount>string</PayAmount> <PayDate>dateTime</PayDate> <PayAuthority>string</PayAuthority> </FactorPaidDetail> </paidDetail> <ResId>int</ResId> <ResMessage>string</ResMessage> </SendFactorToServerResult> </SendFactorToServerResponse> </soap12:Body> </soap12:Envelope>