Ok, got it to where I read the stream, parse it and extract text and images from it. I do have a new problem, the binary data request sent from the iPhone is posted as the body of http post request. Everything works fine as long as the request doesn't exceed 65535 bytes. When it does exceed, the Wcf method doesn't even get called or invoked at all. I am not sure to where the problem might be.
Here is my web.config
<?xmlversion="1.0"?><configuration><system.web><compilationdebug="true"targetFramework="4.0"/><httpRuntimemaxRequestLength="524288"/> //made this # bigger, didn't work
Found it. It's my mistake, I have my WCF hosted in localhost IIS7.5, but The changes I applied to my web.config in my project were not translated to the web.config that is being consumed under IIS7.5.
Thanks for the help and for hanging in with my many posts. You did steer me to the correct solution by inheriting a custom stream object to handle images and file uploads within one request, but I might rethink this approach, and stick with the 'more standard' REST approach of one stream parameter, even though this may require multiple http requests to achieve the same thing - depending on performance. But, I know both ways and I can use either.
For the first time I am daring to ask a question on codeproject, so please bear with me.
I wish to write a WCF service on which various clients will be posting data. Based on the data received, the Windows work flow will start transitioning states (as opposed to sequential one).
The Expense Reporting sample is way too heavy and am unable to get that running.
So any step-by-step resource which I can refer to get the integration of WCF and WF in 4.0?
- I created HelloWorld WCF service.
- I followed instructions to host it on IIS 7.0
I can do this fine: localhost:4567/Service1.svc
I can do this fine: 192.168.1.101:4567/Service1.svc
This still shows port# though, I want to be able to do something like this without the need to specify the port: localhost/Service1.svc. so I can access it from my other machine 192.168.1.102. How can I set it up that way on my local machine? The end goal is to access my local machine from iOS and read JSON data.
My reference.cs file shows error. The proxy class has been generated but an error shows as "The type of namespace name 'NameValueCollection does not exist in the namespace' "System.Collection.Specialized". This error occur in Proxy file Reference.cs.
Before anybody answers let me point deep down to what is causing this. I am creating XMLMembershipProvider. My class inherits the membership provider and have implemented all its method including Initialize method which take two parameters one of which is NameValueCollection. All methods are now consume in WCF but NameValueCOllection is incompatible with WCF,s serialization and cannot pass through WCF serialization. The error message is as such because WCF incorrectly marked for its CollectionDataContract serialization, but then choked because it had no Add(object) method.
I cannot use Dictionary here because i finally have to initialize the provider with base.initialize(string, NameValueCollection).
Can someone show me the getaround to this problem. Also if anybody knows the procedure of contacting the Microsoft WCF team, please let me know. I don't think there is enough flexibility the use of NameValueCollection in WCF - Nightmare
I have a wcf applicaion that alows multiple clients to conect to the host and register their intrest in broadcats messages then when they close they unregister this all works fine i have a dummy loop running in the wcf host that sends a test message out to all the registered clients over their call back chanel. Now comes the question i need to call the broadcatd method inside my wcf host from the code that is hosting it!! hope that makes sense. It is curently in a command line app i will move be moving it to a windows service at a later time.
Any help pointing me in the right direction would be aprecited.
Hi all, I have a WCF service and I have tags like
-- Some Data Here --
-- Some Data Here --
And I tested my service in SoapUI, but it is showing contracts with some extension as:
-- Some Data Here --
-- Some Data Here --
But I want my contracts appear as they are in contracts.
If somebody can give the solution, Thanks in advance.
I am using [MessageContract]
I have to call a WCF service to transform an image. Since an image is a stream (can be large) I want to have a method in which I can send a stream as well as couple of parameters (image transformation information) to a method. How can I define the method signature for the operation contract? Note that I am making a jason call and use an Http post method to send the image. So that I don’t have .
so that you dont have to care?
there is a lot of discusses out there why you should handle image-transformation on client machines... If you really need to do this on server-side, you should at least be able to write an handler for for this web-op-.#
this is my 1st que on this site...hope u would undrstand...
currently i m working in dot net 1.1 and i want to Encrypt the xml file...
now i have code for it but it is in uppper version...
so can it possible to use it in .net 1.1...?
if yes then how??
I'm currently busy with preparing for the 70-513 MCPD exam, and learning how to use WCF. In my study I created an overview of all the out-of-the-box bindings for WCF. Can you guys please review this overview, and give me some pointers if the overview isn't sufficient enough? Thanks in advance!
just wandering if i can get some assistance with a small wcf client problem. I have build a wcf server app created a proxy and app.config file with svcutil.exe i can use this proxy in a comand line client for testing and this all works fine. But now i wish to implament the client behind a widows forms application but as soon as i add exsting file and select the proxy.vb file i sudenly have 100 errors in the error window and the designer for my form crashes and i cant do a thing untill i remove the file. How do i create a forms application and use my generated proxy that as far as i can tell works perfectly. Am i doing something wrong. Any assistance greatly apreciated
Why do you copy the file from one project to an other?
I don't know vb.net but in C# just click right on refrences in the project tree an select "add service refrence". The select your service and all needed files are created.
We were just following the example MSoft gave but there example has everything in the same solutio. But it was easy to host the server and connect to it remotely and get the meta data and build the proxy with the service reference tool.
i have used your application and its awesome.
it worked properly but when i import your complete project into my project then Client side started giving error about "no end point" but Host is working properly.what to do with Client??
This sounds like you are trying to respond to an article. The best way to do that is on the forum at the bottom of the actual article. The author of the particular article you are referring to might not even visit this forum.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
I have a Server 2003 machine at home. I want to host a WCF service that I can access from my office. I know how to create the service. I just don't what's involved in setting up my server to host it. Is it just a port that I need to open. Any help is appreciated.
I'm putting together a prototype. I have 2 PC's with a WCF service running on one, and I want to consume it from the other. What do I have to do to expose the service so I can access it from the other PC?
I have a wcf service setup for windows authentication. I have a silverlight application that allows users to navigate the web pages based on Active Directory windows authentication and there group roles. The problem I am having is that my wcf service does not allow for role based group security. Because of this, any active directory user is able to call any of the wcf service's web method no matter what their group role is. I need to setup my wcf service to only allow users in certain roles to call a subset of the services web methods. Please help.
Last Visit: 31-Dec-99 18:00 Last Update: 30-Aug-16 9:06