MM7Client.Deliver method does not include the MM7Version

MMS library for .NET

Moderator: alt

Post Reply
Bazilio
Posts: 3
Joined: Thu Jun 05, 2014 9:53 am

MM7Client.Deliver method does not include the MM7Version

Post by Bazilio » Thu Jun 05, 2014 10:09 am

Hi, we are testing the methods of InetLab MM7 library. Operator accepts only Delivery requests, and returns delivery response.
We are trying to use the MM7Client.Deliver method, but it doesn't add the MM7Version tag to the output. Here is the code:

Code: Select all

 
            MM7Client client = new MM7Client(tbUrl.Text);
            client.MM7Version = "5.3.0";
            client.AuthId = tbAuthId.Text;
            client.AuthSecret = tbAuthPw.Text;
            client.VASPID = tbVASPID.Text;
            client.VASID = tbVASID.Text;
            client.SenderAddress = tbSenderAddress.Text;
            client.ServiceCode = tbServiceCode.Text;       

           DeliverRequest req = client.CreateDeliverRequest();

            req.Recipients.To.Add(tbTo2.Text);
            req.MM7Version = "5.3.0";                
            req.Subject = "Test";
            req.Priority = Priorities.Normal;                
            req.ContentHref = "/mms/mm7/mm7client";
            req.TransactionID = DateTime.Now.Ticks.ToString();
            req.LinkedID = DateTime.Now.Ticks.ToString();
            req.ReplyChargingID = "0";
            req.Sender = new Address(AddressTypes.ShortCode, "43434343");

           var resp = client.Deliver(mes, req);
And the operator gets this on input:

Code: Select all

<?xml version=\"1.0\" encoding=\"utf-8\"?>
<env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\">
<env:Header>
	<mm7:TransactionID env:mustUnderstand=\"1\" xmlns:mm7=\"http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0\">635375677680979306</mm7:TransactionID>
</env:Header>
	<env:Body>
		<DeliverReq xmlns=\"http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0\">
			<MMSRelayServerID>fe80::18ed:39ea:3f57:fe70%13</MMSRelayServerID>
			<LinkedID>635375677680979306</LinkedID>
			<Sender><ShortCode>43434343</ShortCode></Sender>
			<TimeStamp>2014-06-05T12:22:48+03:00</TimeStamp>
			<Priority>Normal</Priority>
			<Subject>Test</Subject>
			<Recipients><To><Number>+7 927 2050101</Number></To></Recipients>
			<ReplyChargingID>0</ReplyChargingID>
			<Content href=\"cid:/mms/mm7/mm7client\" />
		</DeliverReq>
	</env:Body>
</env:Envelope>
As you can see there is no MM7Version, but we set it twice. Can you tell us what is wrong?

Bazilio
Posts: 3
Joined: Thu Jun 05, 2014 9:53 am

Re: MM7Client.Deliver method does not include the MM7Version

Post by Bazilio » Thu Jun 05, 2014 10:12 am

What we need, is the

Code: Select all

<MM7Version>5.3.0</MM7Version>
tag, somewere after

Code: Select all

<DeliverReq xmlns=\"http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0\">

alt
Site Admin
Posts: 728
Joined: Tue Apr 25, 2006 9:45 am

Re: MM7Client.Deliver method does not include the MM7Version

Post by alt » Fri Jun 06, 2014 8:18 am

fixed in the version 0.7.2

Bazilio
Posts: 3
Joined: Thu Jun 05, 2014 9:53 am

Re: MM7Client.Deliver method does not include the MM7Version

Post by Bazilio » Fri Jun 06, 2014 9:10 am

Thank you, checked, its working.

Post Reply