Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > I need an working example to create a contact in the user's folder

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon API  /

I need an working example to create a contact in the user's folder

[Schleicher, Holger]
Holger Schleich…
Newbie
Newbie
Posts: 51

MDaemon
RelayFax
SecurityGateway
Outlook Connector
SecurityPlus
WebAdmin
Holger Schleicher - 09:15am, May 13 2019

Dear list members,

we're trying to create a user in the public folder, based on the power shell script "CreateUserSample.ps1" in the samples folder. But whatever we try, we get an 401 Error back from the xml-api.

That's what we find in the logs:

190513 000010983 G Management Web Service (64bit) for MDaemon Messaging Server 19.0.0.1 Log file starting
190513 000010983 G 0x41350011 0x00000009
190513 000010983 G 0x41350010 C:\MDaemon\Data\MgmtWS.ini

There's no authentication error.

Does anyone has a working example to create a contact, including the auth-method used? We want to create contacts from our oracle database with either pl/sql, php or a script. Whatever works.

Kind regards,

Holger


DEHA Elektrohandelsgesellschaft mbH & Co. KG
Gesellschaft für Einkauf, Produktmanagement und Marketing
Weilmdorfer Str. 74/2
D-70839 Gerlingen

www.deha.de
www.tecselect.de
www.co2ntrol.de

Werden Sie unser Fan auf Facebook www.facebook.com/deha.elektrohandelsgesellschaft

Top-Job Top Arbeitgeber
Qualitätsmanagement nach ISO 9001:2015
----------------------------------------------------------------------------

Diese E-Mail wurde gesendet von DEHA Elektrohandelsgesellschaft mbH & Co. KG
Registergericht Stuttgart HRA 202313
persönlich haftende Gesellschafterin: Elektrohandelsgesellschaft mbH
Sitz Gerlingen Registergericht Stuttgart HRB 204585
Geschäftsführer: Dr. Klaus Schmidt, Birgit Collmer, Daniela Blickle

Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail drucken!
Please consider our environment before printing this email!


--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion. MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------




  (older msg: 2)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

md-api@mdaemon.com - May 13, 2019 12:17 pm (#3 Total: 10)  

Guest User  

Photo of Author
Posts: 1
Holger,

here are a request collection for Postman and a test environment for that. There are three working examples of XML APIs inside (tested with the latest release of MDaemon).

  1. install Postman
  2. import the attached environment (MD XML API Environment.postman_environment.json)
  3. import the attached collection (MD XML API Examples.postman_collection.json)
  4. configure the environment with your server data (PROTOCOL, HOSTNAME, PATH)
  5. configure the collection's default authentication credentials (it is already set to Basic)
  6. run a simple request like GetDomainList to be sure that all is set correctly
  7. customize the minimal CreateUser request to your needs (see body and pre-request script)

To create a new contact in a user's contact list, you likely need to write a request for Operation=ItemOperation, with

  • path=MAILBOX/Contacts
  • type=contact
  • action=put
  • ...

but I never used it. Sorry.

Regards,

Emanuele


On 13/05/2019 16:15, schleicher@deha.de wrote:
Dear list members,

we're trying to create a user in the public folder, based on the power shell script "CreateUserSample.ps1" in the samples folder. But whatever we try, we get an 401 Error back from the xml-api.

That's what we find in the logs:

190513 000010983 G Management Web Service (64bit) for MDaemon Messaging Server 19.0.0.1 Log file starting
190513 000010983 G 0x41350011 0x00000009
190513 000010983 G 0x41350010 C:\MDaemon\Data\MgmtWS.ini

There's no authentication error.

Does anyone has a working example to create a contact, including the auth-method used? We want to create contacts from our oracle database with either pl/sql, php or a script. Whatever works.

Kind regards,

Holger


DEHA Elektrohandelsgesellschaft mbH & Co. KG
Gesellschaft für Einkauf, Produktmanagement und Marketing
Weilmdorfer Str. 74/2
D-70839 Gerlingen

www.deha.de
www.tecselect.de
www.co2ntrol.de

Werden Sie unser Fan auf Facebook www.facebook.com/deha.elektrohandelsgesellschaft

Top-Job Top Arbeitgeber
Qualitätsmanagement nach ISO 9001:2015
----------------------------------------------------------------------------

Diese E-Mail wurde gesendet von DEHA Elektrohandelsgesellschaft mbH & Co. KG
Registergericht Stuttgart HRA 202313
persönlich haftende Gesellschafterin: Elektrohandelsgesellschaft mbH
Sitz Gerlingen Registergericht Stuttgart HRB 204585
Geschäftsführer: Dr. Klaus Schmidt, Birgit Collmer, Daniela Blickle

Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail drucken!
Please consider our environment before printing this email!


--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------



Attachments:

MD XML API Environment.postman_environment.json (1 KB) (136 Downloads)

MD XML API Examples.postman_collection.json (6 KB) (150 Downloads)




  (newer msg:7)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.