MM_Ordre_modul


Click here for a complete list of operations.

placeOrder

Opretter online ordre

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 /ws4/xmlordre.asmx HTTP/1.1
Host: www.mmd.dk
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://mmd.dk/ws4/placeOrder"

<?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>
    <placeOrder xmlns="http://mmd.dk/ws4/">
      <login>
        <konto>string</konto>
        <bruger>string</bruger>
        <password>string</password>
        <testmode>int</testmode>
      </login>
      <ordrehoved>
        <reference>string</reference>
        <rekvisition>string</rekvisition>
        <lev_navn>string</lev_navn>
        <lev_attention>string</lev_attention>
        <lev_adresse>string</lev_adresse>
        <lev_adresse2>string</lev_adresse2>
        <lev_postnr>string</lev_postnr>
        <lev_postby>string</lev_postby>
        <lev_land>string</lev_land>
        <lev_type>string</lev_type>
        <lev_email>string</lev_email>
        <lev_mobil>string</lev_mobil>
        <afs_navn>string</afs_navn>
        <afs_adresse>string</afs_adresse>
        <afs_adresse2>string</afs_adresse2>
        <afs_postnr>string</afs_postnr>
        <afs_postby>string</afs_postby>
        <afs_land>string</afs_land>
        <fxlgeseddelpapir>int</fxlgeseddelpapir>
        <dellev>int</dellev>
        <droppoint_id>string</droppoint_id>
        <droppoint_name>string</droppoint_name>
        <droppoint_address>string</droppoint_address>
        <droppoint_addressnumber>string</droppoint_addressnumber>
        <droppoint_postno>string</droppoint_postno>
        <droppoint_city>string</droppoint_city>
        <droppoint_country>string</droppoint_country>
      </ordrehoved>
      <ordrelinier>
        <Ordrelinie>
          <varenummer>string</varenummer>
          <jeresvarenummer>string</jeresvarenummer>
          <antal>int</antal>
          <pris>decimal</pris>
        </Ordrelinie>
        <Ordrelinie>
          <varenummer>string</varenummer>
          <jeresvarenummer>string</jeresvarenummer>
          <antal>int</antal>
          <pris>decimal</pris>
        </Ordrelinie>
      </ordrelinier>
    </placeOrder>
  </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>
    <placeOrderResponse xmlns="http://mmd.dk/ws4/">
      <placeOrderResult>
        <Status>string</Status>
        <Besked>string</Besked>
        <Ordrenummer>int</Ordrenummer>
        <Reference>string</Reference>
        <Fragt>decimal</Fragt>
        <Varebelob>decimal</Varebelob>
      </placeOrderResult>
    </placeOrderResponse>
  </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 /ws4/xmlordre.asmx HTTP/1.1
Host: www.mmd.dk
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>
    <placeOrder xmlns="http://mmd.dk/ws4/">
      <login>
        <konto>string</konto>
        <bruger>string</bruger>
        <password>string</password>
        <testmode>int</testmode>
      </login>
      <ordrehoved>
        <reference>string</reference>
        <rekvisition>string</rekvisition>
        <lev_navn>string</lev_navn>
        <lev_attention>string</lev_attention>
        <lev_adresse>string</lev_adresse>
        <lev_adresse2>string</lev_adresse2>
        <lev_postnr>string</lev_postnr>
        <lev_postby>string</lev_postby>
        <lev_land>string</lev_land>
        <lev_type>string</lev_type>
        <lev_email>string</lev_email>
        <lev_mobil>string</lev_mobil>
        <afs_navn>string</afs_navn>
        <afs_adresse>string</afs_adresse>
        <afs_adresse2>string</afs_adresse2>
        <afs_postnr>string</afs_postnr>
        <afs_postby>string</afs_postby>
        <afs_land>string</afs_land>
        <fxlgeseddelpapir>int</fxlgeseddelpapir>
        <dellev>int</dellev>
        <droppoint_id>string</droppoint_id>
        <droppoint_name>string</droppoint_name>
        <droppoint_address>string</droppoint_address>
        <droppoint_addressnumber>string</droppoint_addressnumber>
        <droppoint_postno>string</droppoint_postno>
        <droppoint_city>string</droppoint_city>
        <droppoint_country>string</droppoint_country>
      </ordrehoved>
      <ordrelinier>
        <Ordrelinie>
          <varenummer>string</varenummer>
          <jeresvarenummer>string</jeresvarenummer>
          <antal>int</antal>
          <pris>decimal</pris>
        </Ordrelinie>
        <Ordrelinie>
          <varenummer>string</varenummer>
          <jeresvarenummer>string</jeresvarenummer>
          <antal>int</antal>
          <pris>decimal</pris>
        </Ordrelinie>
      </ordrelinier>
    </placeOrder>
  </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>
    <placeOrderResponse xmlns="http://mmd.dk/ws4/">
      <placeOrderResult>
        <Status>string</Status>
        <Besked>string</Besked>
        <Ordrenummer>int</Ordrenummer>
        <Reference>string</Reference>
        <Fragt>decimal</Fragt>
        <Varebelob>decimal</Varebelob>
      </placeOrderResult>
    </placeOrderResponse>
  </soap12:Body>
</soap12:Envelope>