I have a simple object I'm trying to serialize using DataContractSerializer.
In my unit test, I'm trying to verify the xml contains the right value for the product/sku node.
My product class:
[DataContract(Namespace = "http://foo.com/catalogue/")
partial class Product
{
[DataMember(Name = "sku")]
public virtual string ProductSKU...
I've generated some service references to Amazon, and I was wondering if there was a good, quick way to generate mocks against the whole thing, or I instead I have to implement a mock binding, and do it that way
...
I'm getting a bit frustrated by the lack of consistency within the different forms of serialization in .NET:
DataContractSerializer - uses new attributes OR old [Serializable] attributes, but the serializer itself does not implement IFormatter where some of the other WCF serializers do. Opt IN.
NetDataContractSerializer - uses new attr...
Hi,
I am implementing wcf web service hosting in IIS with basicHttpBinding those should be accesseble by .net 2.0 client like accessing ASMX services.
Any body can help with details & with few example/sample code.
thanks
nRk
...
i want to send xml file with userid and pass over HTTPs and then send all other xml file on HTTP using POST method and get the response as a xml file back. in ASP.NET (with vb.net preferred)
The url to which i want to send my xml file is:http://www.hostelspoint.com/xml/xml.php
exect xml file pettern is:
<?xml version="1.0" encoding="U...
How can I return a HTTP 401 from a WCF service?
...
Hi,
When moved to Windows 7 platform a WCF call from ASP.NET project throws exception
ex {"HTTP could not register URL http://+:9100/Jfc.Dealing.OrderProvider.BLClient.svc/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)."} System.Exception {System.ServiceMode...
When using a WSHttpBinding in WCF with reliableSessions enabled, my service reference updates itself to:
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="true">
</reliableSession>
I cannot add the maxRetryCount attribute to the reliableSession as long as the binding is configured as a WSHttpBinding.
Now my questi...
I have a BizTalk 2006 app which has a sendport using MSMQ.
I have also a WCF winforms hosting app with several WCF services (in the development environment, in production I use a windows service as hosting).
One of the WCF services that I created has a MSMQIntegrationBinding (due to the fact that BizTalk is not a WCF service, so NetMS...
So somebody (ok it was me) didn't realize you need to close WCF proxies after using them.
How bad is this? What kind of problems can it cause.
Is there just a delay in closing resources because of garbage collection - or should I really worry about things like premature app pool recycling?
I actually have far more ASMX than WCF proxi...
I have a WCF REST service which needs to return both Static and some filtered data based on what parameters were passed in by the clients(which are fat windows clients)
Since the data store which feeds this service doesnt change too often, I wanted to cache this data on the service(Server side caching), The data store is an Azure Table,...
I've a Windows based application using a WCF service hosted in IIS of development server. I'm calling a method defined in the service to run an SSIS package at the SQL database. The method returns success or failure to the client based on whether the package is executed successfully or not.
The package gets executed at the database succ...
Hi,
I have a question. Is it possible to replace dataContractSerializer in Windows Communication Foundation with my own serializer. If it is possible, how can I achieve this?
...
I have a WCF service that I expose using different endpoints, one of which uses NetNamedPipeBinding. The other endpoints use a custom username/password validator to authenticate users, but as far as I can tell, this is not supported by NetNamedPipeBinding.
How can I add a custom username/password authentication mechanism to a NetNamedP...
I'm using WCF service in my application. I need to return a custom object in the service class.
The method is as follows:
IService.cs:
[OperationContract]
object GetObject();
Service.cs
public object GetObject()
{
object NewObject = "Test";
return NewObject;
}
Whenever i make a call to the service, it throws an exception with t...
Hi,
I'm currently trying to create a ToString - extension method for FaultException, that can also deal with FaultException<>.
The problem I have is, that I want to include the details without using reflection.
What I currently have is:
if (ex.GetType() == typeof(FaultException<>))
{
var prop = ex.GetType().GetProperty("Detail");
...
We want to receive a GET request in www.contoso.com/Service(123) and based on some logic (token information in a custom header) redirect the request to www.contoso.com/Data/123.xml or to www.contoso.com/123_bak.xml without the client being aware of the redirection
...
Hi,
Can I add Custom SOAP header in WCF incomming/outgoing messages in basicHttpBinding, like we can add custome authenticatino header in ASMX web services? Those custome SOAP header should be accessble using .net 2.0/1.1 web service clients (accessible by WSDL.EXE tool) .
Thanks
nRk
...
I'm trying to call a WCF service from within another service, in part using an example I found here on StackOverflow which implements ChannelFactory.
I've created a separate console app project within my solution for testing (VS 2008, btw),
namespace MyService.Test
{
class Program
{
static void Main(string[] args)
...
Hello,
Please help me,
how to change endpoint address programatically in the client site?
Thanks
...