kb:ws:edi_uploaddocument

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
kb:ws:edi_uploaddocument [2019/06/28 08:27] aleksandarkb:ws:edi_uploaddocument [2021/01/19 09:38] – [Primer funkcije (SOAP request)] aleksandar
Line 31: Line 31:
 |xmlFmt|String|Format zapisa XML fajla. \\ Podrazumevana vrednost je "XML_FMT_OAGIS". \\   \\ **Moguće vrednosti:** \\  \\ "XML_FMT_OAGIS"; Fajl je u OAGIS formatu.| |xmlFmt|String|Format zapisa XML fajla. \\ Podrazumevana vrednost je "XML_FMT_OAGIS". \\   \\ **Moguće vrednosti:** \\  \\ "XML_FMT_OAGIS"; Fajl je u OAGIS formatu.|
  
-==== Primer funkcije (SOAP request)  ====+==== Primer funkcije (SOAP request) ====
  
-<XML> +Header
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.balansedi.com/"> +
-   <soapenv:Header/> +
-   <soapenv:Body> +
-      <ser:UploadDocument> +
-         <!--Optional:--> +
-         <docMessage><![CDATA[<?xml version="1.0" standalone="no"?> +
-<ProcessPurchaseOrder revision="8.0" environment="Production" xsi:schemaLocation="http://www.openapplications.org/oagis http://b2bdocs.agrokor.hr/schemas/oagis/8.0/BODs/ShowShipment.xsd http://agrokor.hr/agr http://b2bdocs.agrokor.hr/schemas/agr/oagis/8.0/UserArea/ShowShipment_UserArea.xsd" xmlns="http://www.openapplications.org/oagis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:agr="http://agrokor.hr/agr" xmlns:mel="https://www.melany.rs/mel"> +
-    <ApplicationArea> +
-        <CreationDateTime>2017-04-08T11:25:42Z</CreationDateTime> +
-        <Sender> +
-            <LogicalId>1111</LogicalId> +
-        </Sender> +
-        <UserArea> +
-            <agr:Receiver> +
-                <agr:LogicalId>2020202</agr:LogicalId> +
-            </agr:Receiver> +
-        </UserArea> +
-    </ApplicationArea> +
-    <DataArea> +
-        <Process Acknowledge="Never"/> +
-        <PurchaseOrder> +
-            <Header> +
-                <DocumentIds> +
-                    <CustomerDocumentId> +
-                        <Id>NPJ76/RC</Id> +
-                        <Revision>1</Revision> +
-                    </CustomerDocumentId> +
-                    <SupplierDocumentId> +
-                        <Id/> +
-                    </SupplierDocumentId> +
-                </DocumentIds> +
-                <LastModificationDateTime>2017-04-08T11:25:42Z</LastModificationDateTime> +
-                <DocumentDateTime>2017-04-08T11:25:42Z</DocumentDateTime> +
-                <Description>6 / 17</Description> +
-                <Priority/> +
-                <ReasonCode/> +
-                <NeedDeliveryDate>2017-04-09T11:25:42Z</NeedDeliveryDate> +
-                <PaymentTerms> +
-                    <TermId/> +
-                    <Description/> +
-                </PaymentTerms> +
-                <UserArea> +
-                    <agr:Comment/> +
-                    <agr:OrderType/> +
-                </UserArea> +
-                <Parties> +
-                    <BillToParty> +
-                        <PartyId> +
-                            <Id>1111</Id> +
-                            <DUNS/> +
-                        </PartyId> +
-                        <Name/> +
-                    </BillToParty> +
-                    <ShipFromParty> +
-                        <PartyId> +
-                            <Id>1134</Id> +
-                            <DUNS/> +
-                        </PartyId> +
-                        <Name>VP</Name> +
-                        <Business> +
-                            <Id/> +
-                            <Name/> +
-                        </Business> +
-                    </ShipFromParty> +
-                    <ShipToParty> +
-                        <PartyId> +
-                            <Id>408</Id> +
-                            <DUNS/> +
-                        </PartyId> +
-                        <Name>Centar</Name> +
-                        <UserArea> +
-                            <agr:WarehouseGate> +
-                                <agr:Id>408</agr:Id> +
-                                <agr:DUNS/> +
-                            </agr:WarehouseGate> +
-                        </UserArea> +
-                    </ShipToParty> +
-                    <SoldToParty> +
-                        <PartyId> +
-                            <Id/> +
-                            <DUNS/> +
-                        </PartyId> +
-                        <Name/> +
-                    </SoldToParty> +
-                    <RemitToParty> +
-                        <PartyId> +
-                            <Id/> +
-                        </PartyId> +
-                        <Name/> +
-                        <Addresses> +
-                            <AddressLine> +
-                                <City/> +
-                                <Country/> +
-                                <PostalCode/> +
-                            </AddressLine> +
-                        </Addresses> +
-                    </RemitToParty> +
-                    <SupplierParty> +
-                        <PartyId> +
-                            <Id/> +
-                            <DUNS/> +
-                        </PartyId> +
-                        <Name/> +
-                    </SupplierParty> +
-                </Parties> +
-            </Header> +
-        </PurchaseOrder> +
-        <Line> +
-            <LineNumber>1</LineNumber> +
-            <OrderItem> +
-                <ItemIds> +
-                    <ItemId> +
-                        <EANUCC13>3838089592836</EANUCC13> +
-                        <Id mel:delimiter="~">19203~~crn</Id> +
-                    </ItemId> +
-                </ItemIds> +
-                <Description>Artikal 1</Description> +
-                <FeatureValue> +
-                    <EffectivePeriod> +
-                        <To>2017-04-09T11:25:42Z</To> +
-                    </EffectivePeriod> +
-                    <UOM/> +
-                </FeatureValue> +
-            </OrderItem> +
-            <OrderQuantity uom="KOM">1</OrderQuantity> +
-            <UnitPrice> +
-                <Amount uom="KOM" currency="RSD">243.4</Amount> +
-            </UnitPrice> +
-            <UserArea> +
-                <agr:TotalVolume uom="M3"/> +
-                <agr:TotalNetWeight uom="KGM"/> +
-                <agr:TotalGrossWeight uom="KGM"/> +
-                <agr:ShippedQuantity uom="KOM"/> +
-            </UserArea> +
-        </Line> +
-        <Line> +
-            <LineNumber>2</LineNumber> +
-            <OrderItem> +
-                <ItemIds> +
-                    <ItemId> +
-                        <EANUCC13>3838080571978</EANUCC13> +
-                        <Id mel:delimiter="~">A1204</Id> +
-                    </ItemId> +
-                </ItemIds> +
-                <Description>Artikal 2</Description> +
-                <FeatureValue> +
-                    <EffectivePeriod> +
-                        <To>2019-04-09T11:25:42Z</To> +
-                    </EffectivePeriod> +
-                    <UOM/> +
-                </FeatureValue> +
-            </OrderItem> +
-            <OrderQuantity uom="KOM">2</OrderQuantity> +
-            <UnitPrice> +
-                <Amount uom="KOM" currency="RSD">113.2</Amount> +
-            </UnitPrice> +
-            <UserArea> +
-                <agr:TotalVolume uom="M3"/> +
-                <agr:TotalNetWeight uom="KGM"/> +
-                <agr:TotalGrossWeight uom="KGM"/> +
-                <agr:ShippedQuantity uom="KOM"/> +
-            </UserArea> +
-        </Line> +
-    </DataArea> +
-</ProcessPurchaseOrder> +
-]]></docMessage> +
-         <!--Optional:--> +
-         <xmlFmt>?</xmlFmt> +
-      </ser:UploadDocument> +
-   </soapenv:Body> +
-</soapenv:Envelope>+
  
-</XML>+<code> 
 +POST https://ws.melany.rs:8191/BEDIProcessor/BEDIProcessor HTTP/1.1 
 +Accept-Encoding: gzip,deflate 
 +Content-Type: text/xml;charset=UTF-8 
 +SOAPAction: "" 
 +Content-Length: 15877 
 +Host: ws.melany.rs:8191 
 +Connection: Keep-Alive 
 +User-Agent: Apache-HttpClient/4.1.1 (java 1.5) 
 + 
 +</code> 
 + 
 +Body 
 + 
 +<code> 
 + <soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ser=“http://services.balansedi.com/”> 
 +    <soapenv:Header/> 
 +    <soapenv:Body> 
 +        <ser:UploadDocument> 
 +            <!--Optional:--> 
 +            <docMessage> 
 +                <![CDATA[<ProcessPurchaseOrder revision=“8.0” environment=“Production” xsi:schemaLocation=“http://www.openapplications.org/oagis http://b2bdocs.agrokor.hr/schemas/oagis/8.0/BODs/ShowShipment.xsd http://agrokor.hr/agr http://b2bdocs.agrokor.hr/schemas/agr/oagis/8.0/UserArea/ShowShipment_UserArea.xsd” xmlns=“http://www.openapplications.org/oagis” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:agr=“http://agrokor.hr/agr” xmlns:mel=“https://www.melany.rs/mel”> 
 +  <ApplicationArea> 
 +      <CreationDateTime>2017-04-08T11:25:42Z</CreationDateTime> 
 +      <Sender> 
 +          <LogicalId>1111</LogicalId> 
 +      </Sender> 
 +      <UserArea> 
 +          <agr:Receiver> 
 +              <agr:LogicalId>2020202</agr:LogicalId> 
 +          </agr:Receiver> 
 +      </UserArea> 
 +  </ApplicationArea> 
 +  <DataArea> 
 +      <Process Acknowledge="Never"/> 
 +      <PurchaseOrder> 
 +          <Header> 
 +              <DocumentIds> 
 +                  <CustomerDocumentId> 
 +                      <Id>NPJ76/RC</Id> 
 +                      <Revision>1</Revision> 
 +                  </CustomerDocumentId> 
 +                  <SupplierDocumentId> 
 +                      <Id/> 
 +                  </SupplierDocumentId> 
 +              </DocumentIds> 
 +              <LastModificationDateTime>2017-04-08T11:25:42Z</LastModificationDateTime> 
 +              <DocumentDateTime>2017-04-08T11:25:42Z</DocumentDateTime> 
 +              <Description>6 / 17</Description> 
 +              <Priority/> 
 +              <ReasonCode/> 
 +              <NeedDeliveryDate>2017-04-09T11:25:42Z</NeedDeliveryDate> 
 +              <PaymentTerms> 
 +                  <TermId/> 
 +                  <Description/> 
 +              </PaymentTerms> 
 +              <UserArea> 
 +                  <agr:Comment/> 
 +                  <agr:OrderType/> 
 +              </UserArea> 
 +              <Parties> 
 +                  <BillToParty> 
 +                      <PartyId> 
 +                          <Id>1111</Id> 
 +                          <DUNS/> 
 +                      </PartyId> 
 +                      <Name/> 
 +                  </BillToParty> 
 +                  <ShipFromParty> 
 +                      <PartyId> 
 +                          <Id>1134</Id> 
 +                          <DUNS/> 
 +                      </PartyId> 
 +                      <Name>VP</Name> 
 +                      <Business> 
 +                          <Id/> 
 +                          <Name/> 
 +                      </Business> 
 +                  </ShipFromParty> 
 +                  <ShipToParty> 
 +                      <PartyId> 
 +                          <Id>408</Id> 
 +                          <DUNS/> 
 +                      </PartyId> 
 +                      <Name>Centar</Name> 
 +                      <UserArea> 
 +                          <agr:WarehouseGate> 
 +                              <agr:Id>408</agr:Id> 
 +                              <agr:DUNS/> 
 +                          </agr:WarehouseGate> 
 +                      </UserArea> 
 +                  </ShipToParty> 
 +                  <SoldToParty> 
 +                      <PartyId> 
 +                          <Id/> 
 +                          <DUNS/> 
 +                      </PartyId> 
 +                      <Name/> 
 +                  </SoldToParty> 
 +                  <RemitToParty> 
 +                      <PartyId> 
 +                          <Id/> 
 +                      </PartyId> 
 +                      <Name/> 
 +                      <Addresses> 
 +                          <AddressLine> 
 +                              <City/> 
 +                              <Country/> 
 +                              <PostalCode/> 
 +                          </AddressLine> 
 +                      </Addresses> 
 +                  </RemitToParty> 
 +                  <SupplierParty> 
 +                      <PartyId> 
 +                          <Id/> 
 +                          <DUNS/> 
 +                      </PartyId> 
 +                      <Name/> 
 +                  </SupplierParty> 
 +              </Parties> 
 +          </Header> 
 +      </PurchaseOrder> 
 +      <Line> 
 +          <LineNumber>1</LineNumber> 
 +          <OrderItem> 
 +              <ItemIds> 
 +                  <ItemId> 
 +                      <EANUCC13>3838089592836</EANUCC13> 
 +                      <Id mel:delimiter="~">19203~~crn</Id> 
 +                  </ItemId> 
 +              </ItemIds> 
 +              <Description>Artikal 1</Description> 
 +              <FeatureValue> 
 +                  <EffectivePeriod> 
 +                      <To>2017-04-09T11:25:42Z</To> 
 +                  </EffectivePeriod> 
 +                  <UOM/> 
 +              </FeatureValue> 
 +          </OrderItem> 
 +          <OrderQuantity uom="KOM">1</OrderQuantity> 
 +          <UnitPrice> 
 +              <Amount uom="KOM" currency="RSD">243.4</Amount> 
 +          </UnitPrice> 
 +          <UserArea> 
 +              <agr:TotalVolume uom="M3"/> 
 +              <agr:TotalNetWeight uom="KGM"/> 
 +              <agr:TotalGrossWeight uom="KGM"/> 
 +              <agr:ShippedQuantity uom="KOM"/> 
 +          </UserArea> 
 +      </Line> 
 +      <Line> 
 +          <LineNumber>2</LineNumber> 
 +          <OrderItem> 
 +              <ItemIds> 
 +                  <ItemId> 
 +                      <EANUCC13>3838080571978</EANUCC13> 
 +                      <Id mel:delimiter="~">A1204</Id> 
 +                  </ItemId> 
 +              </ItemIds> 
 +              <Description>Artikal 2</Description> 
 +              <FeatureValue> 
 +                  <EffectivePeriod> 
 +                      <To>2019-04-09T11:25:42Z</To> 
 +                  </EffectivePeriod> 
 +                  <UOM/> 
 +              </FeatureValue> 
 +          </OrderItem> 
 +          <OrderQuantity uom="KOM">2</OrderQuantity> 
 +          <UnitPrice> 
 +              <Amount uom="KOM" currency="RSD">113.2</Amount> 
 +          </UnitPrice> 
 +          <UserArea> 
 +              <agr:TotalVolume uom="M3"/> 
 +              <agr:TotalNetWeight uom="KGM"/> 
 +              <agr:TotalGrossWeight uom="KGM"/> 
 +              <agr:ShippedQuantity uom="KOM"/> 
 +          </UserArea> 
 +      </Line> 
 +  </DataArea> 
 +</ProcessPurchaseOrder> ]]> 
 +            </docMessage> 
 +            <!--Optional:--> 
 +            <xmlFmt>?</xmlFmt> 
 +        </ser:UploadDocument> 
 +    </soapenv:Body> 
 +</soapenv:Envelope>
  
-\\+</code>
  
  
  • kb/ws/edi_uploaddocument.txt
  • Last modified: 2022/09/21 14:18
  • by milano