.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

setting message sizes for wcf web service

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :.NET Framework
 
Hi.    I am working on silverlight application that communicates with wcf web service. I have function on service side that takes string as parameter. like:    [OperationContract ]          bool DoSomeServiceWork (string imputText );    when i call this function (using auto generated proxy) asynchronously with string smaller than certain size (around 1000 chars) everything works fine.    As soon as string size gets larger, i get exception "The remote server returned an error: NotFound ."    Now it seems to me that problem is in message size so i tried to change maximum buffer, maximum message size everywhere in the confing files i could find them, but nothing helps.  It come to me that obviously i don't know what I'am doing so can someone help me out here ?    (i found in different forums many posts regarding maximum message size but nothing helped, most of them are suggesting changing values in various confing files but it seems it doesn't work, and there is nowhere explanation what those numbers actually change, because its obviously not parameter size for a function) I'm completely missing something out here. sending few kb to web service suppose to be easy, and I'm getting crazy here.    btw can somebody please give complete instructions


View Complete Post


More Related Resource Links

Setting message sizes for wcf web service

  
Hi.    I am working on silverlight application that communicates with wcf web service. I have function on service side that takes string as parameter. like:    [OperationContract ]          bool DoSomeServiceWork (string imputText );    when i call this function (using auto generated proxy) asynchronously with string smaller than certain size (around 1000 chars) everything works fine.    As soon as string size gets larger, i get exception "The remote server returned an error: NotFound ."    Now it seems to me that problem is in message size so i tried to change maximum buffer, maximum message size everywhere in the confing files i could find them, but nothing helps.  It come to me that obviously i don't know what I'am doing so can someone help me out here ?    (i found in different forums many posts regarding maximum message size but nothing helped, most of them are suggesting changing values in various confing files but it seems it doesn't work, and there is nowhere explanation what those numbers actually change, because its obviously not parameter size for a function) I'm completely missing something out here. sending few kb to web service suppose to be easy, and I'm getting crazy here.    btw can somebody please give complete instructions

Design: Place XML Message Design Ahead of Schema Planning to Improve Web Service Interoperability

  

Web Services are all about exchanging data in the form of XML messages. If you were about to design a database schema, you probably wouldn't let your tool do it for you. You'd hand-tool it yourself to ensure maximum efficiency. In this article, the author maintains that designing a Web Service should be no different. You should know what kind of data will be returned by Web Service requests and use the structure of that data to design the most efficient message format. Here you'll learn how to make that determination and how to build your Web Service around the message structure.

Yasser Shohoud

MSDN Magazine December 2002


Windows Service Suddenly Stops with no logged message

  
Background: I have a windows service which hosts some wcf services and multithreading has been used there heavily. I'm using Enterprise Library to log messages, handled and unhandled.  AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;  private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)         {             Logger.Error("An unhandled exception has been thrown.", (Exception)e.ExceptionObject);         } Problem: The problem is that randomly my windows service stops on production and I get no log messages saying that the services stopped or what exception details. Question: I haven't created any new AppDomain explicitly. Shouldn't all the threads run in the same default CurrentDomain? if so, why nothing gets logged when the service stops suddenly? Thanks in advance.    

WCF - Java web service interop - Signed outgoing message not accepted

  
Hi, I try to sign a message using a certificate and a private key to call a java (JBoss) web service, but the server refuses to accept my signed message. It only echoes back the same message that I've sent. I have successfully signed the outgoing message using the certificate, and the structure of the message look alright when I compare it to an exampel message supplied by the web service creator. I use a custom binding declared as shown below <binding name="FSACustomServiceBinding"                  closeTimeout="00:01:00"                  openTimeout="00:01:00"                  receiveTimeout="00:10:00"                  sendTimeout="00:01:00">           <textMessageEncoding             messageVersion="Soap11" />           <security             authenticationMode="MutualCertificate"             requireDerivedKeys="false"             keyEntropyMode="ClientEntropy"        &nb

WCF TCP-IP End Point Error : The message could not be dispatched because the service at the endpoint

  
"The message could not be dispatched because the service at the endpoint address 'net.tcp://192.168.237.129:9000/TerritoryMgt.svc' is unavailable for the protocol of the address." This is the Exception I am getting when I am trying to access my WCF Service with 'TCP-IP' end point. My Service Web.Config file is as follows. <system.serviceModel>     <bindings>       <webHttpBinding>         <binding name="JsonWebBinding">           <security mode="TransportCredentialOnly">             <transport clientCredentialType="Windows"></transport>           </security>         </binding>       </webHttpBinding>     </bindings>     <services>       <service behaviorConfiguration="SampleBehaviour" name="SeP.Library.ServiceLibrary.TerritoryMgt">         <endpoint address="" behaviorConfiguration="jsonEndPointBehaviour" binding="webHttpBinding" bindingConfiguration="JsonWebBinding"                &nbs

Setting process priority on C# 3.5 service project

  
Hi all,
  I'm working on a windows service that uses WCF with names pipes and Quartz.net to perform process scheduling.  Everything is running well, except I've hit a snag.  I have one process that's quite I/O intensive, and it kills my server while it runs.  Unfortunately, I'm legacied in to some of the architecture, so the process is as optimized as I can get it.  As a result of this, I have 2 questions.

1. Each of my jobs are encapsulated within a class.  Each of these classes are instanciated and run by Quartz in it's own thread.  When the Job starts, I have the following code in the Execute function

  /// <summary>
        /// Called by the <see cref="T:Quartz.IScheduler"/> when a <see cref="T:Quartz.Trigger"/>
        ///             fires that is associated with the <see cref="T:Quartz.IJob"/>.
        /// </summary>
        /// <remarks>
        /// The implementation may wish to set a  result object on the 
        ///             JobExecutionContext before this method exits.  The result itself
        ///             is meaningless to Quartz, but may be informative to 
        ///             <see cref="T:Quartz.IJobListener"/>s or 
        ///             <see cref="T:Quartz.ITriggerListener"

Parser Error Message: Could not create type 'Service'.

  

My web service works fine on my local machine but when i put it on the server it throw this error:

Parser Error Message: Could not create type 'Service'.

I don't know how to fix this.


Setting up a Digest Authentication WCF service and consuming it

  

I have a WCF service that had been using NTLM authentication, but needed to recently switch it to digest authentication. The service is running on both an XP Professional machine, as well as a 2003 Server machine, both experiencing the same issues.

 

To set-up the digest authentication, I created the following in my web.config servicemodel section:

 

 

<bindings>
	<webHttpBinding>
		<binding name="NtlmConnect" maxBufferSize="147483647" maxBufferPoolSize="147483647" 

Service Broker Queue message activates stored Proc as SA but the stored proc is unable to access oth

  

I have a queue whose activation I defined as below

ALTER QUEUE SomeInitiatorQueue
WITH ACTIVATION
( STATUS = ON,
PROCEDURE_NAME = usp_SomeProc,
MAX_QUEUE_READERS = 30,
EXECUTE AS OWNER)

Now I am trying to access another database in usp_SomeProc as below

Select SomeColumn SomeOtherDb.dbo.SomeTable

Here I am getting this error "The server principal "sa" is not able to access the database "SomeOtherDb" under the current security context."

It never allows unless I grant all permissions on the database to all.

what is the solution?


Error message setting up System DSN: Setup routines not found. Please reinstall driver.

  

Hi,

I'm running W2K3 SP1.  The MDAC Configuration Checker reports MDAC 2.8 SP2.  The only discrepancy is MSADCO.DLL, where the expected version is 2.82.1830.0 and my actual version is 2.82.2651.0 (svr03_sp1_gdr.060301-1546).

The error message I'm getting when I use the ODBC Administrator dialog to set up a new entry is: "The setup routines for the SQL Server ODBC driver could not be found.  Please reinstall the driver."

This is followed by a dialog titled: "Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed."  The body text of the dialog is "Component not found in the registry."

Does anyone have any idea how I can repair this?

Thanks,


BasicHttp binding service failing when receiving a message with a To soap header

  

My WCF service is exposed through a basicHttp binding.

 

When I receive the following message

 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://biztalk01:81/StuffServices.svc</To> </s:Header> <s:Body> <ns0:GetMyStuff xmlns:ns0="http://example.com/stuff" xmlns:ns1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <ns0:inputArray> <ns1:string>80220</ns1:string> </ns0:inputArray> </ns0:GetMyStuff > </s:Body> </s:Envelope>

it gives a fault back, but if I try in soapUI to send the exact same request without the To header (deleting the "<To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none" >http://biztalk01:81/StuffServices.svc "), then it works fine and returns the correct response.

Do I have any way to make my service handle that request including a To header correctly?

I tried changing my binding to a CustomBinding as described here : http://blog.irm.se/blogs/eric/archive/2008/07/04/WS_2D00_Addressing-and-WCF.aspx

but that only resulted in the IIS worker proc

'Metadata publishing for this service is currently disabled' message with WCF service

  

Whenever I try to add a web reference to the WCF service in my project, I get an error:

'The HTML document does not contain Web service discovery information.
There was an error downloading 'http://localhost/OFTestSite/Service.svc/$metadata'.
The request failed with HTTP status 400: Bad Request.'

When I browse Service.svc directly from the IIS, the page opens with the statement 'Metadata publishing for this service is currently disabled.'

I followed all the steps correctly to make metadata publishing enabled, but still I get the same message and I'm not able to add the web refernce.

Could anyone please help me? 

(I am using VS 2010 Professional on Windows XP machine with IIS 5.1)


How do I receive a message from a WCF Service Library?

  

WCF = [W]orlds most [C]onfusing [F]ramework.

My environment...

  • Visual Studio 2008
  • WCF 3.5

 I have the following projects

  • Host [Windows Forms App]
  • Library DLL [WCF Service Class and Interface]
  • Client [Windows Forms App]

Well what is ultra confusing is how I'm supposed to access the message received in the host application. 

 My service class dll couldn't be simpler...

<ServiceContract(SessionMode:=SessionMode.Allowed)> _
Public Interface IApplicationMessage

 <OperationContract(IsOneWay:=True)> _
 Sub SendMessage(ByVal Message As String)

End Interface


<ServiceBehavior(ConcurrencyMode:=ConcurrencyMode.Reentrant, InstanceContextMode:=InstanceContextMode.Single)> _
Public Class ApplicationMessage
  Implements IApplicationMessage
  

There was no endpoint listening at http://localhost/Service.svc that could accept the message. This

  

Hello Firends,

I have configured wcf service on my loal machine's IIS and it's running fine when I bowse .svc file.

But when I am running local web application after ading local wcf service's  reference to web application, it is showing following error message,even though affter adding endpoint correclty.

"There was no endpoint listening at http://localhost/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."

Can anybody please tell me, how can I solve this issue?

Thanks and regards,

Vikas


Every second event log is filled with info message:The search service stopped the filter daemon beca

  

My event log is filled with the following information message every second:

The search service stopped the filter daemon because it was consuming too many resources. A new daemon will automatically be started, and no user action is required.

Is this normal? I'm runnind x64 bit OS, x64 WSS3.0, IFILTER x64 from Adobe


POZERUGA

Setting of sharepoint 2010 custom WCF service "web.config" file for both HTTP and HTTPS

  

Hi,

        I have created a custom SharePoint 2010 WCF service that is deployed to 14\ISAPI\MYService folder. The issue i am facing is that this service should be accessible from all Web applications, that can be HTTPS (i.e. SSL) enabled or normal HTTP. If i am making in web.config file for web application that has HTTPS enabled, then it fails for Web applications having normal HTTP configuration. My requirement is that when this WCF service is deployed it should accessible from all web applications that can be HTTPS or HTTP both. I went through number of blogs and tried whatever option they had suggested but none of them worked for me :(. Here are some of the blog that i tried:-

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend