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
kb:ws:edi_uploaddocument [2019/06/28 08:26] aleksandarkb:ws:edi_uploaddocument [2022/09/21 14:18] (current) milano
Line 29: Line 29:
 ^Naziv^Vrsta^Opis| ^Naziv^Vrsta^Opis|
 |docMessage|String|Elektronski dokument, u XML zapisu određenog formata.| |docMessage|String|Elektronski dokument, u XML zapisu određenog formata.|
-|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) =====<code> +==== Primer funkcije (SOAP request) ==== 
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.balansedi.com/"> + 
-   <soapenv:Header/> +Header 
-   <soapenv:Body> +<code> 
-      <ser:UploadDocument> + 
-         <!--Optional:--> +POST https://<url>:<port>/<putanja> HTTP/1.1 
-         <docMessage><![CDATA[<?xml version="1.0" standalone="no"?> +Accept-Encoding: gzip,deflate 
-<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"> +Content-Type: text/xml;charset=UTF-8 
-    <ApplicationArea> +SOAPAction: "" 
-        <CreationDateTime>2017-04-08T11:25:42Z</CreationDateTime> +Content-Length: 15877 
-        <Sender> +Host: ws.melany.rs:8191 
-            <LogicalId>1111</LogicalId> +Connection: Keep-Alive 
-        </Sender> +User-Agent: Apache-HttpClient/4.1.1 (java 1.5) 
-        <UserArea> + 
-            <agr:Receiver> +</code> 
-                <agr:LogicalId>2020202</agr:LogicalId> + 
-            </agr:Receiver> +Body 
-        </UserArea> + 
-    </ApplicationArea> +<code> 
-    <DataArea> + <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.balansedi.com/"> 
-        <Process Acknowledge="Never"/> +    <soapenv:Header/> 
-        <PurchaseOrder> +    <soapenv:Body> 
-            <Header> +        <ser:UploadDocument> 
-                <DocumentIds> +            <!--Optional:--> 
-                    <CustomerDocumentId> +            <docMessage> 
-                        <Id>NPJ76/RC</Id> +                <![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"> 
-                        <Revision>1</Revision> +  <ApplicationArea> 
-                    </CustomerDocumentId> +      <CreationDateTime>2017-04-08T11:25:42Z</CreationDateTime> 
-                    <SupplierDocumentId> +      <Sender> 
-                        <Id/> +          <LogicalId>1111</LogicalId> 
-                    </SupplierDocumentId> +      </Sender> 
-                </DocumentIds> +      <UserArea> 
-                <LastModificationDateTime>2017-04-08T11:25:42Z</LastModificationDateTime> +          <agr:Receiver> 
-                <DocumentDateTime>2017-04-08T11:25:42Z</DocumentDateTime> +              <agr:LogicalId>2020202</agr:LogicalId> 
-                <Description>6 / 17</Description> +          </agr:Receiver> 
-                <Priority/> +      </UserArea> 
-                <ReasonCode/> +  </ApplicationArea> 
-                <NeedDeliveryDate>2017-04-09T11:25:42Z</NeedDeliveryDate> +  <DataArea> 
-                <PaymentTerms> +      <Process Acknowledge="Never"/> 
-                    <TermId/> +      <PurchaseOrder> 
-                    <Description/> +          <Header> 
-                </PaymentTerms> +              <DocumentIds> 
-                <UserArea> +                  <CustomerDocumentId> 
-                    <agr:Comment/> +                      <Id>NPJ76/RC</Id> 
-                    <agr:OrderType/> +                      <Revision>1</Revision> 
-                </UserArea> +                  </CustomerDocumentId> 
-                <Parties> +                  <SupplierDocumentId> 
-                    <BillToParty> +                      <Id/> 
-                        <PartyId> +                  </SupplierDocumentId> 
-                            <Id>1111</Id> +              </DocumentIds> 
-                            <DUNS/> +              <LastModificationDateTime>2017-04-08T11:25:42Z</LastModificationDateTime> 
-                        </PartyId> +              <DocumentDateTime>2017-04-08T11:25:42Z</DocumentDateTime> 
-                        <Name/> +              <Description>6 / 17</Description> 
-                    </BillToParty> +              <Priority/> 
-                    <ShipFromParty> +              <ReasonCode/> 
-                        <PartyId> +              <NeedDeliveryDate>2017-04-09T11:25:42Z</NeedDeliveryDate> 
-                            <Id>1134</Id> +              <PaymentTerms> 
-                            <DUNS/> +                  <TermId/> 
-                        </PartyId> +                  <Description/> 
-                        <Name>VP</Name> +              </PaymentTerms> 
-                        <Business> +              <UserArea> 
-                            <Id/> +                  <agr:Comment/> 
-                            <Name/> +                  <agr:OrderType/> 
-                        </Business> +              </UserArea> 
-                    </ShipFromParty> +              <Parties> 
-                    <ShipToParty> +                  <BillToParty> 
-                        <PartyId> +                      <PartyId> 
-                            <Id>408</Id> +                          <Id>1111</Id> 
-                            <DUNS/> +                          <DUNS/> 
-                        </PartyId> +                      </PartyId> 
-                        <Name>Centar</Name> +                      <Name/> 
-                        <UserArea> +                  </BillToParty> 
-                            <agr:WarehouseGate> +                  <ShipFromParty> 
-                                <agr:Id>408</agr:Id> +                      <PartyId> 
-                                <agr:DUNS/> +                          <Id>1134</Id> 
-                            </agr:WarehouseGate> +                          <DUNS/> 
-                        </UserArea> +                      </PartyId> 
-                    </ShipToParty> +                      <Name>VP</Name> 
-                    <SoldToParty> +                      <Business> 
-                        <PartyId> +                          <Id/> 
-                            <Id/> +                          <Name/> 
-                            <DUNS/> +                      </Business> 
-                        </PartyId> +                  </ShipFromParty> 
-                        <Name/> +                  <ShipToParty> 
-                    </SoldToParty> +                      <PartyId> 
-                    <RemitToParty> +                          <Id>408</Id> 
-                        <PartyId> +                          <DUNS/> 
-                            <Id/> +                      </PartyId> 
-                        </PartyId> +                      <Name>Centar</Name> 
-                        <Name/> +                      <UserArea> 
-                        <Addresses> +                          <agr:WarehouseGate> 
-                            <AddressLine> +                              <agr:Id>408</agr:Id> 
-                                <City/> +                              <agr:DUNS/> 
-                                <Country/> +                          </agr:WarehouseGate> 
-                                <PostalCode/> +                      </UserArea> 
-                            </AddressLine> +                  </ShipToParty> 
-                        </Addresses> +                  <SoldToParty> 
-                    </RemitToParty> +                      <PartyId> 
-                    <SupplierParty> +                          <Id/> 
-                        <PartyId> +                          <DUNS/> 
-                            <Id/> +                      </PartyId> 
-                            <DUNS/> +                      <Name/> 
-                        </PartyId> +                  </SoldToParty> 
-                        <Name/> +                  <RemitToParty> 
-                    </SupplierParty> +                      <PartyId> 
-                </Parties> +                          <Id/> 
-            </Header> +                      </PartyId> 
-        </PurchaseOrder> +                      <Name/> 
-        <Line> +                      <Addresses> 
-            <LineNumber>1</LineNumber> +                          <AddressLine> 
-            <OrderItem> +                              <City/> 
-                <ItemIds> +                              <Country/> 
-                    <ItemId> +                              <PostalCode/> 
-                        <EANUCC13>3838089592836</EANUCC13> +                          </AddressLine> 
-                        <Id mel:delimiter="~">19203~~crn</Id> +                      </Addresses> 
-                    </ItemId> +                  </RemitToParty> 
-                </ItemIds> +                  <SupplierParty> 
-                <Description>Artikal 1</Description> +                      <PartyId> 
-                <FeatureValue> +                          <Id/> 
-                    <EffectivePeriod> +                          <DUNS/> 
-                        <To>2017-04-09T11:25:42Z</To> +                      </PartyId> 
-                    </EffectivePeriod> +                      <Name/> 
-                    <UOM/> +                  </SupplierParty> 
-                </FeatureValue> +              </Parties> 
-            </OrderItem> +          </Header> 
-            <OrderQuantity uom="KOM">1</OrderQuantity> +      </PurchaseOrder> 
-            <UnitPrice> +      <Line> 
-                <Amount uom="KOM" currency="RSD">243.4</Amount> +          <LineNumber>1</LineNumber> 
-            </UnitPrice> +          <OrderItem> 
-            <UserArea> +              <ItemIds> 
-                <agr:TotalVolume uom="M3"/> +                  <ItemId> 
-                <agr:TotalNetWeight uom="KGM"/> +                      <EANUCC13>3838089592836</EANUCC13> 
-                <agr:TotalGrossWeight uom="KGM"/> +                      <Id mel:delimiter="~">19203~~crn</Id> 
-                <agr:ShippedQuantity uom="KOM"/> +                  </ItemId> 
-            </UserArea> +              </ItemIds> 
-        </Line> +              <Description>Artikal 1</Description> 
-        <Line> +              <FeatureValue> 
-            <LineNumber>2</LineNumber> +                  <EffectivePeriod> 
-            <OrderItem> +                      <To>2017-04-09T11:25:42Z</To> 
-                <ItemIds> +                  </EffectivePeriod> 
-                    <ItemId> +                  <UOM/> 
-                        <EANUCC13>3838080571978</EANUCC13> +              </FeatureValue> 
-                        <Id mel:delimiter="~">A1204</Id> +          </OrderItem> 
-                    </ItemId> +          <OrderQuantity uom="KOM">1</OrderQuantity> 
-                </ItemIds> +          <UnitPrice> 
-                <Description>Artikal 2</Description> +              <Amount uom="KOM" currency="RSD">243.4</Amount> 
-                <FeatureValue> +          </UnitPrice> 
-                    <EffectivePeriod> +          <UserArea> 
-                        <To>2019-04-09T11:25:42Z</To> +              <agr:TotalVolume uom="M3"/> 
-                    </EffectivePeriod> +              <agr:TotalNetWeight uom="KGM"/> 
-                    <UOM/> +              <agr:TotalGrossWeight uom="KGM"/> 
-                </FeatureValue> +              <agr:ShippedQuantity uom="KOM"/> 
-            </OrderItem> +          </UserArea> 
-            <OrderQuantity uom="KOM">2</OrderQuantity> +      </Line> 
-            <UnitPrice> +      <Line> 
-                <Amount uom="KOM" currency="RSD">113.2</Amount> +          <LineNumber>2</LineNumber> 
-            </UnitPrice> +          <OrderItem> 
-            <UserArea> +              <ItemIds> 
-                <agr:TotalVolume uom="M3"/> +                  <ItemId> 
-                <agr:TotalNetWeight uom="KGM"/> +                      <EANUCC13>3838080571978</EANUCC13> 
-                <agr:TotalGrossWeight uom="KGM"/> +                      <Id mel:delimiter="~">A1204</Id> 
-                <agr:ShippedQuantity uom="KOM"/> +                  </ItemId> 
-            </UserArea> +              </ItemIds> 
-        </Line> +              <Description>Artikal 2</Description> 
-    </DataArea> +              <FeatureValue> 
-</ProcessPurchaseOrder> +                  <EffectivePeriod> 
-]]></docMessage> +                      <To>2019-04-09T11:25:42Z</To> 
-         <!--Optional:--> +                  </EffectivePeriod> 
-         <xmlFmt>?</xmlFmt> +                  <UOM/> 
-      </ser:UploadDocument> +              </FeatureValue> 
-   </soapenv:Body>+          </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> </soapenv:Envelope>
 +
 </code> </code>
  
-\\+
  
  
  • kb/ws/edi_uploaddocument.1561710409.txt.gz
  • Last modified: 2019/06/28 08:26
  • by aleksandar