我正在为visual phone 2012 for windows phone工作windows phone项目.我正在尝试通过添加使用PHP NuSOAP webservice Service reference.
在这里,我关注了这个示例应用 通常,VS将Reference.cs在添加webservice时创建文件.你可以看到reference.cs文件字典的内容(样本)应用HERE
该Reference.cs我的我的项目的web服务的这里.在我的Reference.cs文件中,接口SomeMobileServicePortType为空.
在第19行.
public interface SomeMobileServicePortType {
}
Run Code Online (Sandbox Code Playgroud)
因此,我没有获得任何webservice方法来访问我的项目.但是在其中添加引用时Add service Refernce dialogue显示PHP NuSOAP webservice中包含的方法.
我创建了webservice类的新实例..
ServiceReference1.SomeMobileServicePortTypeClient client = new ServiceReference1.SomeMobileServicePortTypeClient();
Run Code Online (Sandbox Code Playgroud)
PHP webservice有什么问题.我尝试了一些更多的webservices [特别是asmx,我没有得到任何样本的PHP NuSOAP webservice来试试]哪些工作正常.任何人都可以告诉我如何使用C#使用PHP NuSOAP服务.
================================================== ================================
编辑:
我们正在使用NuSOAP PHP webservice.
我相信Webservice没有问题.我现在无法共享WSDL文件.
在这里,我得到了在C#中使用PHP NuSOAP解释的示例.我试过这个 webservice链接.这个参考也没有给出任何方法.这样的界面是空的.
public interface HirdWebExamplePortType { }
Run Code Online (Sandbox Code Playgroud)
所以我的猜测是在使用NuSOAP服务时,它无法在IDE Visual Studio中运行. 这是我的示例Windows Phone项目.请试试这个并建议我做错了什么.
我想AES/CBC/Nopadding在c#Windows Phone 8应用程序中解密加密Sting .我的字符串在IsolatedSorage.我粘贴了垃圾桶HERE.
从这篇文章我使用AesManaged类来解密.但是如何设置填充,NoPadding因为默认情况下填充设置为PKCS7从这里开始.
string fileName = "titlepage.xhtml";
if (fileStorage.FileExists(fileName))
{
IsolatedStorageFileStream someStream = fileStorage.OpenFile(fileName, System.IO.FileMode.Open, FileAccess.Read);
using (StreamReader reader = new StreamReader(someStream))
{
str1 = reader.ReadToEnd();
MessageBox.Show(str1);
try
{
string text = Decrypt(str1, "****************", "****************");
MessageBox.Show(text);
}
catch (CryptographicException cryptEx)
{
MessageBox.Show(cryptEx.Message, "Encryption Error", MessageBoxButton.OK);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "General Error", MessageBoxButton.OK);
}
}
}
public string Decrypt(string dataToDecrypt, string password, …Run Code Online (Sandbox Code Playgroud) 我XmlDocument()用于解析文件,如*.opf*,用于我的EpubReader应用程序.
<item id="W01MB154" href="01MB154.html" media-type="application/xhtml+xml" />
<item id="W000Title" href="000Title.html" media-type="application/xhtml+xml" />
Run Code Online (Sandbox Code Playgroud)
同
<itemref idref="W000Title" />
<itemref idref="W01MB154" />
Run Code Online (Sandbox Code Playgroud)
这些值在同一个文件中..
在这里我知道了item的标签中id的值,之后我想知道href元素的值.
我需要做的是比较值IDREF在elemnt 的itemref用的元素值标签ID的标签项目.在这里我知道id值是W01MB154.
简单地说,我想知道id的下一个值是href元素,使用XmlDocument(),
如果有人意识到这种情况,请帮帮我.
谢谢,
我在Windows商店开发中使用HTML/Javascript在Windows IF中加载本地HTML文件(Windows 8).我正在尝试从Iframe获取Swipe事件.
我试过这个样本和这个.我休养了包含一个div元素的鼠标滚轮方案.对于Iframe,它不起作用.
我的代码:
<body>
<iframe id="iframe_Id" src="split.html" style="height:768px; width:1366px;" onload="Load();"></iframe>
</body>
Run Code Online (Sandbox Code Playgroud)
function Load() {
var elt = document.getElementById("iframe_Id");
elt.style.backgroundColor = "#f3f3f3";
var gobj = new MSGesture();
// Defining gesture object for Pen, mouse and touch
gobj.target = elt;
elt.gesture = gobj;
elt.gesture.pointerType = null;
// Creating event listeners for gesture elements
elt.addEventListener("MSPointerDown", onPointerDown, false);
elt.addEventListener("MSGestureTap", onTap, false);
elt.addEventListener("MSGestureHold", onHold, false);
elt.addEventListener("MSGestureChange", onGestureChange, false);
// Mouse Wheel does not generate onPointerUp
elt.addEventListener("MSGestureEnd", onGestureEnd, false); …Run Code Online (Sandbox Code Playgroud) 我正在使用C#开发Windows 8应用程序。在这里,我使用FilePicker从所需位置选择文件,我知道从本地驱动器中选择的文件路径。
我想使用文件作为存储文件。
StorageFile Newfile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(Path); // Path is file path
StorageFile file = await KnownFolders.PicturesLibrary.GetFileAsync(Path);
Run Code Online (Sandbox Code Playgroud)
但这仅适用于我的项目所在的位置,以及另一个用于从图片库加载文件的位置。谁能给我正确的方法。
谢谢。
我正在寻找所需的输出,这是我能得到它的正确位置.
我在c#中有两个List作为ids1list,ids2list
ids1list:
Title
nen154
source
ids2list:
tittl
Title
nen154
WTOC
source
style
Run Code Online (Sandbox Code Playgroud)
我将这两者比较为 var result = ids1list.Intersect(ids2list).ToList();
结果我在这里得到共同的价值我想要ids2list的索引哪个是ids1list中的常用值
一些建议我这样,
ids1list.Select(s => new
{
Id = s, Index = ids2list.IndexOf(s)
});
Run Code Online (Sandbox Code Playgroud)
但它还没有对我有用,任何人都可以给我适当的解决方案.因为我来到这里.
c# ×5
aes ×1
encryption ×1
iframe ×1
javascript ×1
list ×1
parsing ×1
php ×1
soap ×1
windows-8 ×1
winjs ×1
xmldocument ×1