I try to develope a scrit who can send and receive mesage with MSMQ.

Does anybody have already do that ?

So far my code go like this :

The part who try send and check the message:

PHP Code:
   def _transmit(selfxml):
        
requestMSMQ win32com.client.Dispatch("MSMQ.MSMQQueueInfo")
        
#        requestMSMQ.FormatName = "DIRECT=OS:" + self._connectString
        
requestMSMQ.FormatName "DIRECT=TCP:10.11.41.188\private$\test_JPGA"
        
requestQueue requestMSMQ.Open(MQ_SEND_ACCESSMQ_DENY_NONE)
        
        
replyMSMQ win32com.client.Dispatch("MSMQ.MSMQQueueInfo")
#        replyMSMQ.FormatName = "DIRECT=OS:" + self._connectString + "_admin"
        
replyMSMQ.FormatName "DIRECT=TCP:10.11.41.32\private$\Queue_Retour"#+"_admin"
        
ReplyQueue replyMSMQ.Open(MQ_SEND_ACCESSMQ_DENY_NONE)
        
        
message win32com.client.Dispatch("MSMQ.MSMQMessage")
        
message.Ack MQMSG_ACKNOWLEDGMENT_FULL_RECEIVE
        message
.AdminQueueInfo ReplyQueue
        message
.MaxTimeToReceive 10
        message
.Journal MQMSG_JOURNAL MQMSG_DEADLETTER
    
        message
.Label str(self._completed.Format("%Y-%m-%d %H:%M:%S"))
        
message.Body xml
        message
.Delivery MQMSG_DELIVERY_RECOVERABLE  
        message
.Send(requestQueue)
        
        
replyMessage ReplyQueue.Receive(ReceiveTimeout=10000)

        
RequestQueue.Close()
        
ReplyQueue.Close()
        
ReplyMSMQ.Delete()

        if 
ReplyMessage is None:
            
self._raise("Failed to receive transmission confirmation."
Thank for your help