- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
很抱歉,我实际上是在寻求帮助,但我的任务是处理上述问题,但找不到任何足够的资源来帮助我。详情如下:
该公司拥有身份管理软件,可为用户实体的更改提供 SPML (SOAP)“提要”
(如果我做对了)SPML 驱动程序向发送这些更改的服务器上的 URL 发出 POST 请求
该 URL 下的任何内容都必须处理发布的信息 (XML)
第三点是我的点。我不知道该写什么。阿斯姆?阿斯普克斯? Ember ? Commodore 64 盒式磁带?显然 SPML 驱动程序需要一个 200 响应——它无论如何都会在处理发生时得到它,不是吗?还有什么我没有得到的吗?
任何帮助、指点、指导或建议我放弃并获得新的爱好,将不胜感激。
谢谢。
编辑......
有一个简单的 soap 驱动程序(出于测试目的)将 xml 发布到 aspx 页面,然后依次使用 POST 并保存 xml。感谢 J Benjamin(下)和 http://www.eggheadcafe.com/articles/20011103.asp启动。
SOAP 驱动程序(在页面加载时工作)
protected void Page_Load(object sender, EventArgs e)
{
XmlDocument doc = new XmlDocument();
doc.Load(MySite.FileRoot + "testing\\testxml.xml");
HttpWebRequest req =
(HttpWebRequest)WebRequest.Create("http://localhost/mysite/testing/reader.aspx");
req.ContentType = "text/xml; charset=\"utf-8\"";
req.Method = "POST";
req.Headers.Add("SOAPAction", "\"\"");
Stream stm = req.GetRequestStream();
doc.Save(stm);
stm.Close();
WebResponse resp = req.GetResponse();
stm = resp.GetResponseStream();
StreamReader r = new StreamReader(stm);
Response.Write(r.ReadToEnd());
}
SOAP READER(读取调用时发布的 xml)
protected void Page_Load(object sender, EventArgs e)
{
String Folderpath = "c:\\TestSOAP\\";
if (!Directory.Exists(Folderpath))
{
Directory.CreateDirectory(Folderpath);
}
Response.ContentType = "text/xml";
StreamReader reader = new StreamReader(Request.InputStream);
String xmlData = reader.ReadToEnd();
String FilePath = Folderpath + DateTime.Now.ToFileTimeUtc() + ".xml";
File.WriteAllText(FilePath, xmlData);
下一步是尝试使用 SPML 服务(这是一个 Java 驱动的 Novell 类型的东西)——如果我有任何问题,我会在这里回复!!
谢谢大家..:)
最佳答案
也许我误解了,但这听起来与我在网络服务中处理 URL 的方式相似。我们正在处理基于 URL 的逻辑,执行逻辑,将其包装在 XML 中并使用 XML 对象进行响应。这是一个简单的示例(简单的意思是少数不需要身份验证的示例之一)
下面的代码只是返回一个包含 AppSetting 的 XML 对象。 XML 响应也在下方(删除了一些标识值)。
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "External/Application/{ApplicationGUID}/APIHost/")]
public Response GetAPIHostName(Request request, string ApplicationGUID)
{
Response response = new Response();
try
{
APIHost apiHost = new APIHost
{
APIHostname = System.Configuration.ConfigurationManager.AppSettings["PlayerAPIHostname"]
};
response.ResponseBody.APIHost = apiHost;
response.ResponseHeader.UMResponseCode = (int) UMResponseCodes.OK;
}
catch (GUIDNotFoundException guidEx)
{
response.ResponseHeader.UMResponseCode = (int)UMResponseCodes.NotFound;
response.ResponseHeader.UMResponseCodeDetail = guidEx.Message;
}
catch (Exception ex)
{
UMMessageManager.SetExceptionDetails(request, response, ex);
if (request != null)
Logger.Log(HttpContext.Current, request.ToString(), ex);
else
Logger.Log(HttpContext.Current, "No Request!", ex);
}
response.ResponseHeader.HTTPResponseCode = HttpContext.Current.Response.StatusCode;
return response;
}
/"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 200 200 本地主机
关于c# - SPML (service provisioning markup language)/C#.Net 请帮忙!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4089048/
有没有更简单的写法? div.markup h1,div.markup h2,div.markup h3,div.markup h4{color:#f00;} 最佳答案 恐怕答案是否定的。能够执行
与 MarkupSafe , 在 Jinja 和 Flask 中使用,添加一个 str 对象和一个 Markup 对象返回一个 Markup 对象: >>> from flask import Mar
想知道你们大多数人在 django 1.5+ 中使用哪个重组包? from django.contrib.markup.templatetags.markup import restructuredt
LaTeX 有 %,html 有
我想在restructuredText中使用一些符号;我怎样才能做到这一点? (例如Markdown中的→产生list of standard HTML character entities
赞 this similar question ,但是对于纺织品,是否可以指示纺织品,标题应该编号? 所以 h1. first section h1. second section h2. subse
我正在使用Sphinx为Python程序生成HTML文档。 我想使用带有特定标题的通用admonition指令(参见http://docutils.sourceforge.net/docs/ref/r
我正在尝试为浏览器(Firefox 或 IE 或 Chrome)开发插件/扩展。这样做的目的是插件/扩展应该识别我自己的自定义标签之一。 例如: ... ... 如
在 Stack Overflow ,我可以为键盘快捷键使用标记,例如 Ctrl+Alt+F2对于 Ctrl+Alt+F2。 在 Confluence 中是否也可以进行类似的操作? ?如果是,如何? 最
我想尝试根据用户在搜索框中输入的词来确定用户的个性特征。下面是一个例子: 搜索词 : “电脑” 检测到的个性/描述 : 分析的、逻辑的、系统的、有条理的 我知道这项任务非常重要。我以前使用过 Word
rst 有没有办法自动 header 编号?那是这样的: #. Some Section =============== ... #. Some Subsection ----------------
例如,现在我有一个自己动手的解决方案,它使用包含如下 block 的数据文件: PlayerCharacter Fighter Hitpoints 25 Strength 10 Start
RDFa、微格式和微数据提供了包含语义标记的简单方法。还有其他类似的技术吗? 谢谢 最佳答案 RDFa 和微数据并没有做非常不同的事情。所有三种格式都以不同的方式做大致相同的事情,RDFa 和微数据非
我正在尝试使用以下代码创建一个正确嵌套的列表(遵循 Sphinx 和 docutils 文档): 1. X a. U b. V c. W 2. Y 3. Z 我预计这会产生两个 OL,但我
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭5 个月前。 社区 5 个月前审核了是否重新开放
所以,我正在尝试使用 JointJS 创建一个 ERD 工具,并希望创建一个带有类似标记的自定义链接 这个想法是在链接中间有一个菱形,我知道我可以用一个元素和两个链接来做到这一点,但我真的希望能够在
我正在寻找一种管理文章内链接的策略。文章的正文保存在数据库中,并在页面组装期间拉出。什么都应该保存在数据库中才能轻松定义和管理链接? 一些纯粹主义者认为标记永远不应该存储在数据库中。有些人认为适度就好
我正在创建一套用 Kotlin 编写的仪器测试,它将影响大量 Web API。我计划将这些测试实现到我们的 CI/CD 过程中。话虽如此,我想为每个测试添加详细的文档,用于可维护性、验证场景覆盖率等。
我去了这个网站:http://www.ignitionmedia.com.au/在横幅下面的首页上是“WEB DESIGN”、“WEB DEVELOPMENT”和“WEBSITE PROMOTION”
我可以使用如下的 HTML 时间标签吗? 9:09 PM 我的困惑在于“PM”,我是否可以像这样指定它或者时间仅用于显示 24 小时制。 最佳答案 根据 the W3C definition of t
我是一名优秀的程序员,十分优秀!