web-services

How to upload a file to a SOAP web service?

陌路散爱 提交于 2020-01-13 03:39:46
问题 I have a .p12 file that I want to upload to a SOAP web service, so that my application can make requests to get it later. How do I upload this file? I don't necessarily want this in my application code, since it's something I only want to do once. But, if it matters, I am using Java. 回答1: You should take a look at MTOM, if the service supports it. If it accepts file attachments, then it probably uses MTOM. Not sure what you mean by keeping it out of application code, but how you go about

Protect .net Web Service URL

☆樱花仙子☆ 提交于 2020-01-13 03:36:06
问题 I have created Web Service using Asp.net 3.5. Now it's working perfectly in live windows server, and giving me perfect xml while invoking it using some url like : http://www.somedomain.com/Service.asmx?op=fetchData Now My question is when I am accessing url like : http://www.somedomain.com/Service.asmx it's listing my created web services. What if I don't wanna list down the available web services to end users. Thanks in advance... 回答1: If you just want to disable the service help page then

ASMX Web Service - Return user defined class with properties

隐身守侯 提交于 2020-01-13 03:19:12
问题 Hey, I am trying to return a user defined class from a web method. The class has properties and/or methods. Given the following web method: [WebMethod] public List<MenuItem> GetMenu() { List<MenuItem> menuItemList = new List<MenuItem>(); menuItemList.Add(new MenuItem()); menuItemList.Add(new MenuItem()); menuItemList.Add(new MenuItem()); return menuItemList; } Now, suppose this web service is consumed by adding a web reference in a newly created console application. The following code is used

Asp.Net 3.5 Routing to Webservice?

帅比萌擦擦* 提交于 2020-01-12 18:23:09
问题 I was looking for a way to route http://www.example.com/WebService.asmx to http://www.example.com/service/ using only the ASP.NET 3.5 Routing framework without needing to configure the IIS server. Until now I have done what most tutorials told me, added a reference to the routing assembly, configured stuff in the web.config, added this to the Global.asax : protected void Application_Start(object sender, EventArgs e) { RouteCollection routes = RouteTable.Routes; routes.Add( "WebService", new

Asp.Net 3.5 Routing to Webservice?

旧城冷巷雨未停 提交于 2020-01-12 18:22:05
问题 I was looking for a way to route http://www.example.com/WebService.asmx to http://www.example.com/service/ using only the ASP.NET 3.5 Routing framework without needing to configure the IIS server. Until now I have done what most tutorials told me, added a reference to the routing assembly, configured stuff in the web.config, added this to the Global.asax : protected void Application_Start(object sender, EventArgs e) { RouteCollection routes = RouteTable.Routes; routes.Add( "WebService", new

Asp.Net 3.5 Routing to Webservice?

蓝咒 提交于 2020-01-12 18:21:10
问题 I was looking for a way to route http://www.example.com/WebService.asmx to http://www.example.com/service/ using only the ASP.NET 3.5 Routing framework without needing to configure the IIS server. Until now I have done what most tutorials told me, added a reference to the routing assembly, configured stuff in the web.config, added this to the Global.asax : protected void Application_Start(object sender, EventArgs e) { RouteCollection routes = RouteTable.Routes; routes.Add( "WebService", new

Posting huge datasets to a webservice from excel VBA

时光毁灭记忆、已成空白 提交于 2020-01-12 17:40:54
问题 Hello fellow Excel vba coders I have this great macro in my excel sheet, where i compile XML based on the rows the user puts in - after this it post the xml to a webservice. You can have a look at my code below - It is fairly simple: Set XMLHttpRequest = New MSXML2.XMLHTTP With XMLHttpRequest .Open "POST", URL, False .setRequestHeader "Content-Type", "text/xml; encoding='utf-8'" .setRequestHeader "Content-Length", strLength .send strXML End With Right now it works great when there is less

The test form is only available for requests from the local machine

跟風遠走 提交于 2020-01-12 17:39:11
问题 Why is it that for some of my web-services, I get test forms so I can see the generated xml data, but for other web-services, I get a message saying The test form is only available for requests from the local machine. ? Both times, I am connecting to the URL of the web-service from a client side browser and all web-services are created with C#, .NET-3.5. 回答1: I googled for "The test form is only available for requests from the local machine." There were many results, and the consensus is to

Difference between SoapClient request and Soap curl request in php

倾然丶 夕夏残阳落幕 提交于 2020-01-12 14:01:42
问题 I am very confused with Soap curl request I found here an example SOAP request in PHP with CURL and Soap request using SoapClient PHP http://php.net/manual/en/class.soapclient.php My question and doubts are First - does these both fill the same purpose. Second - Is there any performance difference if they are used for same purpose. Thanks in advance 回答1: You are right that they fill the same purpose. Though, the SoapClient has a lot of functionality for supporting SOAP requests built in and

get data from ksoap2 in android

独自空忆成欢 提交于 2020-01-12 11:04:32
问题 please tell me how to retrieve multiple array of data in ksoap2 Result. actually let me explain. i have a web service of employee search. when i search by name it gives me Multiple Records. one record contain name, last name, phone, address etc and there are total 30,40 records. in other cases where we just recieve one output result we can use the following code in ksoap2 SoapObject result=(SoapObject)envelope.getResponse(); //get response String text = result.getProperty("response").toString