web-services

Webservice test isolation - but when to verify the webservice itself?

妖精的绣舞 提交于 2019-12-25 13:08:12
问题 I am isolating my webservice-related tests from the actual webservices with Stubs. How do you/should i incorporate tests to ensure that my crafted responses match the actual webservice ones (i don't have control over it)? I don't want to know how to do it, but when and where? Should i create a testsuite-testsuite for testdata testing?... 回答1: I would use something like this excellent tool Storm 回答2: If you can, install the service in a small, completely controlled environment. Drawback: You

RAD - How to add username token for JAX RPC in websphere application server admin console

故事扮演 提交于 2019-12-25 12:47:02
问题 I have created web services and trying to add security part of it. I'm using RAD and wondering how to add the username token in the webservices.xml extension tab? Any help is appreciated. Thanks. 回答1: A comment was added by @parthkansara asking about how to do this for a JAX-WS application. I'm answering that comment as an additional answer to this topic since there aren't enough characters to do so in the comment field. You can add a WS-Security Policy and Bindings for a JAX-WS application

Linq to SQL - Dirty Reads after Updating - WCF Service

微笑、不失礼 提交于 2019-12-25 12:21:32
问题 I have a dbml file (linq to sql) to connect to my database. I have a manager that uses a generic repository (for each entity) to talk to the dbml. A manager uses the Repo to do work (CRUD operations). A WCF wraps the manager and exposes the it to the outside world (so my application can use it). DB <--> IRepository< Entity, DataContext> <--> IManager(IRepo, IRepo...) <--> WCFService(IManager) I've tested the manager, it works fine every time. The problem is the WCF. I'll read data (e.g.

Windows 8.1 App - HttpWebRequest working only once

扶醉桌前 提交于 2019-12-25 12:20:30
问题 I've a problem with my simple windows store app. I'm connecting to SharePoint and query his REST services to get the information I need. Actually I'd like to create a sort of "SharePoint Browser" so that a user can navigate the List structure of SharePoint browsing with the APP. Actually I get the security token from SharePoint and use it in all the calls without any problem. My call is something like: var bldr = new UriBuilder(_uri.ToString()); bldr.Path += _listDataSvc + (String

Regarding WCF SOAP based web service and servlets

我只是一个虾纸丫 提交于 2019-12-25 12:09:23
问题 I am new to WCF SOAP based services. I have a webpage which takes 3 fields and validates them in Javascript. After validation it sends them to a servlet. Now, in servlet I need to call a web service which is a WCF based SOAP service. How should I proceed? Is it possible to make the call? 回答1: Yes, it's possible to call, it doesn't matter it's a WCF web service. You just need to write a client to call the web service and use the client from within your servlet code. There are enough SOAP web

HttpWebRequest The request was aborted: Could not create SSL/TLS secure channel

岁酱吖の 提交于 2019-12-25 11:57:25
问题 I have deveoped asp.net web application and running it using iisexpress in local. I want to call webservice which require two wayssl. I have client certificate, installed in my local machine, given full control to Network_service, loggedin user using certificate mmc. Calling service using following code ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType

Can not pass Serialized object from android to C# web Service

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 11:56:30
问题 I want to send an object from android app to c# web service by ksoap2. The webService method get a ReceptionCommitItem object. this object defined in C# webService as blew : [Serializable] [XmlType(TypeName = "RCI")] public class ReceptionCommitItem { [XmlAttribute(AttributeName = "Id")] public int ReceptionNumber { get; set; } [XmlAttribute(AttributeName = "St")] public ReceptionStatuses NewStatus { get; set; } [XmlAttribute(AttributeName = "PRN")] public string PartRequestNumber { get; set;

Java SOAP-WS client horror

∥☆過路亽.° 提交于 2019-12-25 10:25:26
问题 It's looking amazingly difficult to use any of the most used soap services framework (at least those I've tried) and come up with this kind of soap request <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bencws.foobar.com/doc/2008-01-01/" xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"> <soap:Header xmlns:foo="http://safe.foobar.com/doc/2007-01-01/" xmlns:oof="http://www.w3.org/2005/08/addressing"> <foo:AccessKeyId>0PKRFZMV7GRJ11N791R2</foo

Svcutil download

江枫思渺然 提交于 2019-12-25 09:59:14
问题 I've Micorosft Windows SDK on my machine but i dont have this folder :C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin. Also, the utility svcUtil.exe for generating web service proxy is missing. Where can i download just svcUtil.exe file? Thanks. 回答1: Thanks marc_s for your comment inputs: You need to have .NET 3.0 or newer, and the Windows SDK 6.0 or higher. You cannot download just svcutil.exe separately. – marc_s 来源: https://stackoverflow.com/questions/5337085/svcutil-download

Svcutil download

你说的曾经没有我的故事 提交于 2019-12-25 09:58:24
问题 I've Micorosft Windows SDK on my machine but i dont have this folder :C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin. Also, the utility svcUtil.exe for generating web service proxy is missing. Where can i download just svcUtil.exe file? Thanks. 回答1: Thanks marc_s for your comment inputs: You need to have .NET 3.0 or newer, and the Windows SDK 6.0 or higher. You cannot download just svcutil.exe separately. – marc_s 来源: https://stackoverflow.com/questions/5337085/svcutil-download