MMS附件未正确发送

时间:2018-06-26 09:19:56

标签: soap mms javax.xml mm7 mms-gateway

我正在尝试通过mm7发送彩信

我正在创建一个SOAP请求

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
 <SOAP-ENV:Header>
  <mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3" SOAP-ENV:mustUnderstand="1">vas00001-sub
  </mm7:TransactionID>
 </SOAP-ENV:Header>
 <SOAP-ENV:Body>
  <SubmitReq xmlsn="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3">
   <MM7Version>5.6.0</MM7Version>
   <SenderIdentification>
    <VASPID>test</VASPID>
    <VASID>test</VASID>
   </SenderIdentification>
   <Recipients>
    <To>
     <Number>654654</Number>
     <RFC2822Address displayOnly="true">654654@OMMS.com</RFC2822Address>
    </To>
   </Recipients>
   <ServiceCode/>
   <LinkedID>mms00016661236</LinkedID>
   <MessageClass>Informational</MessageClass>
<TimeStamp>2018-06-26T08:39:00-05:00</TimeStamp>
   <DeliveryReport>true</DeliveryReport>
   <ReadReply>false</ReadReply>
   <Priority>Normal</Priority>
   <Subject>Test</Subject>
<ContentClass>text</ContentClass>
        <DRMContent>true</DRMContent>



   <ChargedParty>Sender</ChargedParty>
   <DistributionIndicator>false</DistributionIndicator>
   <Content allowAdaptations="false" href="cid:A0"/>
  </SubmitReq>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

我正在发送此肥皂消息并附加一个文本文件为

  InputStream is = new ByteArrayInputStream(soap.getBytes());
        SOAPMessage message = MessageFactory.newInstance().createMessage(null, is);
String mese = "fdghskl;df86590FDHDGDG";
        AttachmentPart attachment1 = message.createAttachmentPart();
        attachment1.setContent(mese, "application/smil");
        // attachment.setContent(stringContent, "application/smil");
        attachment1.setContentId("Test");
        message.addAttachmentPart(attachment1);

彩信发送正确,但是我与彩信发送的附件未正确反映在手机中,下载需要花费很多时间 形成请求并发送请求时,如果我有任何错误,请告诉我。

0 个答案:

没有答案