SPML(スサービス提供のマークアップ言語)/C#.Net 助けてください!
質問
いほど頭を助けることができるのでっていう任務は、上記ず十分な資源を助けてくれます。こちら詳細:
当社のアイデンティティ管理ソフトウェアを提供するSPML(ソープ)'飼料"の変更ユーザー entitities
(ばっこ)をSPMLドライバーポストエリアをオンラインダウンロードにてこのサーバが送信されるこれらの変更点
なメカニズムの解明るURLはその過程に掲載された情報(XML)
ポイント3のが私のビット.わからない何を書き出します。Asmx?Aspx?Ashx?コモドール64カセットテープ?話を聞いてみると、どうやらSPMLドライバーニーズにつき200対応しまう場合に処理しいもんです。あるものである、ということをしていただき、また少なくなってきている?
いず、ポインター及び指導-助言えますので、新しい趣味というよろしくお願いいたします。
感謝。
編集..............
いったシーソープドライバかの目的試験)のポxmlをaspxページを、消費のポストに保存する形式をサポートしています。おかげJン(下) http://www.eggheadcafe.com/articles/20011103.asp のためのキックが始まります。
ソープドライバー(ページでは荷重)
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());
}
ソープリーダー(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オブジェクトです。こちらは簡単な例(簡単なんでも数少ない必要としない認証)
以下のコードを返すだけで、XMLオブジェクトを含むAppSetting.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 localhost