如何删除< string>在短信中 [英] How to remove <string> in SMS

查看:79
本文介绍了如何删除< string>在短信中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个BizTalk解决方案,一旦他们的电话已在我们的系统中注册,它将向我们的客户发送一条SMS.不幸的是,SMS会在其中包含XML标签.

I have a BizTalk solution that would send an SMS to our client once their phone has been registered in our system. Unfortunately the SMS would contain XML tags in it like this.

<字符串>您的PIN码是1234./string>

< string>Your PIN is 1234.< /string>

如何删除<短信中的string>标记?我确保业务流程中的消息类型正确,并且我的构造消息形状中包含以下代码.

How can i remove the < string> tag in the SMS? I have made sure the Message Type in my Orchestration is correct and that I have the below code in my Construct Message shape.

strCellNos = classHelper.getElement(SendSMStoCustomerRequest, "cell_number");
strSMS = classHelper.getElement(SendSMStoCustomerRequest, "message");
msg_SendSMStoCustomer.parameter = strSMS;
msg_SendSMStoCustomer(SMTP.Subject) = "Test Message for " + strCellNos ;
msg_SendSMStoCustomer(SMTP.From) = "noreply@none.com";
msg_SendSMStoCustomer(SMTP.SMTPHost) = "SMTPHOST";
msg_SendSMStoCustomer(SMTP.EmailBodyText) = strSMS ;
msg_SendSMStoCustomer(SMTP.EmailBodyTextCharset)="UTF-8";
msg_SendSMStoCustomer(SMTP.SMTPAuthenticate) = 0;

推荐答案

在这里,我将从MSDN重复我的回答.

I'll repeat my answer from MSDN here.

只需在管道中使用平面文件架构和平面文件汇编器,将传出的消息视为平面文件即可.

Just treat the outgoing Message as a Flat File using a Flat File Schema and the Flat File Assembler in the Pipeline.

相信我,这非常非常容易.您正在尝试的所有这些事情都是为了解决您本来不应该存在的问题.

Trust me, this is very, very easy. All these things you're trying are to fix problems you shouldn't even have in the first place.

请退后一步,并在开始时将msg_SendSMStoCustomer创建为平面文件类型.然后,它将保证有效,我向你保证.

Please, take a step back and create msg_SendSMStoCustomer as a Flat File Type in the beginning. Then, it will just work, I promise you.

这篇关于如何删除&lt; string&gt;在短信中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆