Tag: web services

Visual Studio 2010中缺lessAsp.Net Web服务应用程序

可能重复: VS 2010 Web服务项目模板丢失? 我想知道为什么Asp.Net Web服务应用程序在Visual Studio 2010中缺less。如果它在Visual Studio 2010中更新到新的东西是什么? 如果它下降,那我该如何完成这个任务?

使用JDK工具从.NET 2.0应用程序生成的WSDL生成Java SOAP Web服务客户端时出现问题

我正在尝试使用JDK 6工具wsimport为某些SOAP Web服务生成客户端。 WSDL是由.NET 2.0应用程序生成的。 对于.NET 3.X应用程序,它工作正常。 当我跑步 wsimport -keep -p mypackage http://myservice?wsdl 它显示了几个像这样的错误消息: [错误]具有相同名称的类/接口“mypackage.SomeClass”已被使用。 使用类定制来解决这个冲突。 线? 的http:// myservice?wsdl 当我使用Axis 1.4生成Web服务客户端时(使用Eclipse WebTools插件)。 有谁知道我能做些什么来使用wsimport工具? 我真的不明白“class级定制”是什么。

Java Web服务客户端基本authentication

我在Glassfish上创build了一个JAX-WS Web服务,它需要基本的HTTPauthentication。 现在我想为该Web Service创build一个独立的Java应用程序客户端,但是我不知道如何传递用户名和密码。 它与Eclipse的Web服务浏览器一起工作,并检查我find的线路: POST /SnaProvisioning/SnaProvisioningV1_0 HTTP/1.1 Host: localhost:8080 Content-Type: text/xml; charset=utf-8 Content-Length: 311 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: IBM Web Services Explorer Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Authorization: Basic Z2VybWFuOmdlcm1hbg== Connection: close <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://ngin.ericsson.com/sna/types/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <q0:listServiceScripts/> </soapenv:Body> </soapenv:Envelope> 如何使用java代码在此“授权”头中传递用户名和密码? 它是散列还是类似的东西? algorithm是什么? 没有安全性,我有一个独立的java客户端: SnaProvisioning myPort = new SnaProvisioning_Service().getSnaProvisioningV10Port(); myPort.listServiceScripts();

通过jQuery调用ASP.NET服务器端的方法

我试图通过jQuery从客户端调用服务器端方法。 我的代码如下: 服务器端: using System.Web.Services; [WebMethod()] //[ScriptMethod()] public static void SendMessage(string subject, string message, string messageId, string pupilId) { //Send message } 客户端: $("#btnSendMessage").live("click", function(){ var subject = $("#tbSubject").val(); var message = $("#tbMessage").val(); var messageId = $("#hdnMessageId").val(); var pupilId = $("#hdnPupilId").val(); $.ajax({ type: "POST", url: "./MessagePopup.aspx/SendMessage", data: ("subject=" + subject + "&message=" + message + […]

有没有人parsing过维基文库?

维基词典是涵盖多种语言的维基辞典。 它甚至有翻译。 我会有兴趣parsing它和玩数据,有没有人做过这样的事情? 有什么图书馆可以使用吗? (最好是Python。)

协议映射中的错误在IIS中托pipeWCF服务时

我使用VS 2010开发了一个简单的WCF服务。我通过添加应用程序在IIS的默认网站中托pipe并设置物理path 而我试图浏览.svc文件,它给了我以下错误: “ configuration节'protocolMapping'不能被读取,因为它缺less一个节声明 ” 我尝试了很多解决scheme,但是它不起作用 我创buildWCF服务库有一个App.config与此: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> </appSettings> <system.web> <compilation debug="true" /> </system.web> <!– When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. –> <system.serviceModel> […]

WCF:什么是ServiceHost?

正如我目前正在学习使用WCF服务,我经常遇到互联网上提到使用WCF服务时使用ServiceHost教程。 这个ServiceHost究竟是什么? 在我当前的项目中,我正在使用WCF服务,并从我的应用程序中引用它,并且每当我想从应用程序中使用它时,我只是像这样实例化其ServiceClient : new MusicRepo_DBAccess_ServiceClient(new InstanceContext(instanceContext), customBinding, endpointAddress); 然后从那个实例访问我的web方法( OperationContract s)(显然在使用方法之前打开它,然后用Open和Close ) 我的WCF服务是我的IIS中的主机,我只需从我的应用程序访问.svc实例化ServiceClient 。 那么ServiceHost为什么和在哪里使用?

setProperty必须被SOAPMessage的所有子类覆盖

我试图在JBoss 5.1.0的WAR应用程序中部署一些Web服务。 我已经使用JAX-WS工具wsgen从现有的wsdl创build源文件。 这创build了服务文件和@XmlType注释的类将充当请求和响应包装。 这个类在JBoss 4.2.3上运行良好,但是当转移到JBoss 5.1.0时,我得到了这个exception。 java.lang.UnsupportedOperationException:setProperty必须被SOAPMessage的所有子类覆盖 我的configuration: Windows XP SP3(但是在Vista以及Linux上也一样) Sun JDK 1.6.0_17 JBoss 5.1.0 GA为jdk6 提前致谢!

服务器不能识别HTTP Header SOAPAction的值

[SoapRpcMethod(Action = "http://cyberindigo/TempWebService/InsertXML", RequestNamespace = "http://cyberindigo/TempWebService/Request", RequestElementName = "InsertXMLRequest", ResponseNamespace = "http://cyberindigo/TempWebService/Response", ResponseElementName = "InsertXMLResponse", Use = System.Web.Services.Description.SoapBindingUse.Literal)] [WebMethod] public string InsertXML(string Jobs) { return "Hi"; } 当我使用XMLHttpRequest访问它时出现以下错误:服务器无法识别HTTP Header SOAPAction的值: http:// Cyber​​indigo / TempWebService / InsertXML

ASP.Net哪个用户帐户在IIS 7上运行Web Service?

我想知道哪个帐户运行我的Web服务/应用程序,以便我可以分配读/写访问该帐户。 我已经研究和看到大部分的资源提到ASPNET帐户,但在我的2008服务器上,没有任何名为ASPNET的帐户。 有消息说ASPNET正在被NETWORK SERVICE取代? 另外,我可以分配给另一个用户帐户来运行服务? 而如何做到这一点? 谢谢,