I recently came across code of the following structure:
FooService.cs
FooService.svc
Default.aspx
Content of the files:
[FooService.cs]
using System.ServiceModel;
namespace FooService
{
[ServiceContract]
public class FooService
{
static FooEngine engine = new FooEngine();
[OperationContract]
pu...
so,
I've got something like this:
there's an ASP.NET application (1) that references WCF service (2) that references .NET application (3). (1) creates query gives it to (2), (2) gets some info from (3), processes it and returns it back to the (1).
And here's the issue - there's DataContract class for request (that is used by both (2) an...
Hi,
A colleague of mine is attempting to consume a web service that has been developed using WCF.
The error received is:
IWAB0014E Unexpected exception occurred.
java.lang.NullPointerException
at com.ibm.ast.ws.jaxws.creation.command.DetermineWsImportExtensionCommand.buildServiceStructure(Unknown Source)
at com.ibm.ast.ws.jaxws...
I have the following MessageContracts to use as a request:
<MessageContract(WrapperName:="get")> _
Public Class GetRequest
Inherits BaseAuthenticatedRequest
Protected _typeName As cEnum.eType
Protected _id As Integer
<MessageBodyMember()> _
Public Property TypeName() As cEnum.eType
...
<MessageBodyMember()...
I have 4 classes:
BaseStreamParameter
[DataContract]
[KnownType(typeof(StreamParameter))]
[KnownType(typeof(RepeatableStreamParameter))]
public class BaseStreamParameter
{
private bool pIsRepeatable;
[DataMember]
public bool IsRepeatable
{
get { return pIsRepeatable; }
set { pIsRepeatable = value; }
}...
All my service methods use a facade to talk to the business logic. This means that in the facade the DataContracts (I'm using WCF) are translated to entities (Entity Framework) and then passed on to the business layer. The problem I'm facing right now is that I want to put certain validation logic in the business logic, but this keeps fr...
I would like to code a REST based HTTP API which is accessible from .NET and any other language like for example Python.
Should I use WCF for this? Or will that make the other languages harder to interop with my API?
I want the server to carry no state at all, and I want to be able to take advantage of HTTP persistent connections becau...
I'm a .Net developer, I focus mainly on the system logic rather than UI stuff, and I actually know zero about PHP so please excuse any ignorance!
We are looking at using a marketing/SEO/design agency to aid us in launching a website, and they use Magento. However we have a completely bespoke order fulfilment system, which already exists...
I have a client (that isn't very flexible in the SOAP it sends) which generates SOAP similar to the following from a method with signature void Test(int[] test):
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="h...
I'm using MessageContracts to define my web method signatures and return types. Such as:
<MessageContract(WrapperName:="get")> _
Public Class GetRequest
Inherits BaseAuthenticatedRequest
Protected _typeName As cEnum.eType
Protected _id As Integer
<MessageBodyMember()> _
Public Property TypeName() As cEnum.eType
...
I implemented a generic way to get the object by id from Entities defined in Entity Framework.
But the problem is the object I got has a very weird type like this {System.Data.Entity.DynamicProxies.MyEntity_C71732021C3A9D6A58BDB6087D29E98CFDE09DA9D53AF0892AFB7918AEF7E61F}
And WCF will fail when serialize this object as the type of MyE...
I'm using WCF and netmsmqbinding. my environment is window 2003 server. the wcf servcie is hosting as a window service. thank you in advance for your help.
...
I am trying to come up with some tactics for hooking the connection event whenever an instance is created in my WCF server.
I decorated my class like this:
[ServiceBehavior( InstanceContextMode = InstanceContextMode.PerCall , ConcurrencyMode = ConcurrencyMode.Multiple , Namespace="http://mystuff/test" )]
So I was wondering if there was...
I have a WCF service that is load balanced on multiple boxes. We have setup host headers in IIS for the service website so that the host name, not the machine name, will show up in the WSDL (like this: http://forums.asp.net/p/1096811/1659596.aspx).
Now we have a requirement that an internal process needs to be able to hit a page on eac...
I'm just starting with .NET data storage and I'm confused by so many different technologies... This is a learning project. You don't need to go on reading, I need to make an architecture proposal first... Thanks so far
My scenario:
e.g. a local app that can store and tag images.
The user can choose if he want to
store his data loca...
I have a DataContract that looks like:
[DataContract(Name = User.Root, Namespace = "")]
public class RegisterUser
{
[DataMember(Name = User.EmailAddress)]
public string EmailAddress { get; set; }
[DataMember(Name = User.UserName)]
public string UserName { get; set; }
[DataMember(Name = User.Password)]
pub...
locally I am not having any issues running a silverlight application. site comes up just fine. we deploy our code to our test environment and our site (or access to our data) stops working. I dont think our svc file is being recognized. I am leaning towards an issue with the endpoints. Im fairly new to wcf and service references. below i...
We're using Silverlight 4 and Ria Services, but we also need to expose a regular WCF service to the client, ideally from the same Ria services website.
I suspect this is because of DomainServiceHttpModule or due to the fact that the service is expecting binary coming back from the client instead of a SOAP message.
Has anyone had any su...
Good afternoon
When developing a WCF service, I think we can't access current page request and HTTP Session information without using the class attribute:
[AspNetCompatibilityRequirements(
RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
So, if we are not using this attribute, we could pass to our WCF methods many ob...
I am trying to comsume a self-hosted WCF service which simply returns a String in JSON format. It takes a very long time around 2-3 minutes to get the response on Android Device, where as on any other computer it works fine. Could anyone help me on this? Thanks in Advance.
Below is my code to access the service.
try{
HttpClient http...