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


Top 5 Contributors of the Month
sivanagamahesh
Post New Web Links

What s the difference of Endpoint Reference and Message Information Header in WS Addressing?

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :WCF
 
What s the difference of Endpoint Reference and Message Information Header in WS Addressing? Thanks aheadFrank Xu Lei--????,???? ???.NET????????????????????? Focus on Distributed Applications Development and EAI based on .NET   ???????:http://www.frankxulei.com/ ???????:http://www.cnblogs.com/frank_xl/ ??WCF?????? ??WCF??????


View Complete Post


More Related Resource Links

How do I autenticate requests using header information with webHttpBinding

  
I'm using ASIHttpRequest API to communicate with my WCF services. The WCF services are set up as webHttpBinding so I can communicate in basic JSON without SOAP. This is the code I'm using to talk with the service and pass along user credentials (iPhone; but just figure it places the username and password in the header like Digest or Basic):   NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com/top_secret/"]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setUsername:@"username"]; [request setPassword:@"password"];   I'm using a membership provider on the server side to authenticate my users. Is it possible to authenticate each request using the username and password sent in the above code? Please help I've been searching for a solution for a while.

Header for ultimate recipient is required but not present in the message

  
Hello All-I am getting error message shown below.I am using WSE 3.0/Vs 2005/x509. When my client try to access my webservice, they get error message shown below.Can anyone please help me on this. I am stuch on this issue and can not find a solution anywhere.Feel free to ask me if you have further questions.Thank you very much in adavnce.-Sandip <faultstring>System.Web.Services.Protocols.SoapHeaderException: Server unavailable, please try later ---> System.ApplicationException: WSE841: An error occured processing an outgoing fault response. ---> System.Web.Services.Protocols.SoapHeaderException: Microsoft.Web.Services3.Security.SecurityFault: Header http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for ultimate recipient is required but not present in the message. at Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion.RequireSoapHeaderFilter.ProcessMessage(SoapEnvelope envelope) at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope envelope) at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope requestEnvelope) at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp; abortProcessing)

Sql Server 2005 ( remove header information from query output file "Job 'bustd_Daily_Query_Output_1

  
Dear All,I have scheduled job for querying output & asve it into particuler folder....but in the top of file i getting the message like "Job 'bustd_Daily_Query_Output_13July09' : Step 1, 'Query1' : Began Executing 2009-07-13 16:32:06"I want to remove this & want output in txt file format without above header....RegardsRavendra Cindia

Difference between ComponentResourceKey and a URI dictionary reference?

  
Hi, Sorry if that title doesn't make sense. I'm learning WPF and looking for a way to declare brush resources (eventually styles) in a single place and use them throughout the application which will have the UI in several different class libraries. I have a class library project named Common that all of the UI class libraries can reference. The book I'm using says that the ComponentResourceKey markup extension is designed for this purpose in which you have to create a Themes folder containing a file named generic.xaml. I've found that I can also just create a resource dictionary named anything in my Common project and then merge it with each Window's resouce dictionary using pack uri syntax: <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/Common;component/OasisBrushes.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Window.Resources> What is the difference between the two approaches? Why be forced to use a specific path and file name when you can do it the second way? Additionally, is there a way to reference the resource globally for the class library project so that I don't have to put it in each window/control? Can a class library have an App.xaml? Thanks!

ws-addressing 'Action' required message part not signed exception

  
I have a WCF client calling a Java-based service. The service vendor is supporting WCF clients. The WCF client binding uses authenticationMode="MutualCertificate", messageVersion="Soap11WSAddressing10" and the message is signed and encrypted (SignBeforeEncrypt). WCF, in this case, is automatically signing all the ws-addressing ( <Action>, <MessageID> and <To> ) headers. The message gets to the service and comes back with what appears to be valid encrypted data in the response BUT the client is throwing a "The 'Action', 'http://www.w3.org/2005/08/addressing' required message part was not signed" exception (mscorlib). Questions: Is there a way to NOT sign the ws-addressing headers in the request message while still using both signing and encryption (X.509 certs)? If the client DOES sign the ws-addressing headers in the request, is there a way to configure WCF to accept UNsigned ws-addressing headers in the response? If the answer is NO on both questions, I guess I will have to ask the service vendor to sign the ws-addressing headers in the response. Thanks.

Null reference message Custom Error page

  
how come a Null session value that is called, doesn't get directed to the Custom Error Page?

How do I add additional information to email message

  
I have a contact form that has the standard email fields such as name, email, street address, city, state, and body.  This is being done with System.Net.Mail.  I understand how to use the body, to/from address, and subject.  I don't understand how to include the street address, city, and state with the email though.  I want this additional information to be sent with the email some how so the recipient can have access to it.  I assume this should be included with the body when the email is sent.  I don't understand the best way to so this though.  I thought about appending the values of these fields to the body of the email.  I don't know how to format this so it looks good though.  The formatting I want to do is very basic.  I would like each of these values to be on a separate line before or after the body of the email.  I'm not interested in colors or anything too fancy.   I prefer to send a plain text email, if possible, if these values can be included on their own line.Can anyone provide an example or a link to an article on this?  Do I have to use an html formatted email and create new lines with in the body for these fields?

Can't Add Service Reference in VS 2010 to a net.tcp endpoint

  
I've got a service running (well, it doesn't crash), but when I try to add a Service Reference to it, I keep getting Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. If the service is defined in the current solution, try building the solution and adding the service reference again. The pertinent parts of my config file are:   <netTcpBinding> <binding name="ReliableDuplexBinding" closeTimeout="00:00:10" openTimeout="00:00:10" receiveTimeout="00:00:30" sendTimeout="00:00:15" maxBufferPoolSize="1048576" maxBufferSize="262144" maxReceivedMessageSize="262144"> <readerQuotas maxDepth="33" maxStringContentLength="100000" maxArrayLength="131072" maxBytesPerRead="262144" maxNameTableCharCount="54000" /> <reliableSession inactivityTimeout="05:00:00" enabled="true" /> <security mode="None"> <transport> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> <behaviors> <serviceBehaviors> <behavior nam

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

WCF Exception "Message security verification failed" only with header!

  
Hi, I've got a WCF service doing Username authentication. I authenticate with AD and authorize using AzMan on AD. I'm hosting the service in IIS 6 and its running in an app pool that runs in a domain account that has read rights on the AD. I have a custom header that goes both ways. Everything works well until I assign the custom header to return. If I never assign the custom header to return everything is ok but if I do assign the custom header to return I get the error:- Message security verification failed.Duplicate attribute found. Both 'u:Id' and 'u:Id' are from the namespace 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'. Line 1, position 520. I've got service level message tracing and I can see the secure conversation stuff happening and the messages going across the interface.   If anyone has any ideas I'd be most appreciative.   Thanks,   Andy

Security processor was unable to find a security header in the message

  

Hi,

Recently on one of my machines, my client (WCF client) is having problem talking to WCF server. Both server and client are running on the same machine. The machine is Windows7 64 bit machine. It used to work fine until recently. The same software is working fine on all other machines with exactly same configuration. I am really confused here. Could someone please let me know what could be the problem?

Exception Type:

System.ServiceModel.Security.MessageSecurityException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Message:

Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties. This can occur if the service is configured for security and the client is not using security.

Stack Trace: System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessageCore(Message& message, TimeSpan timeout) System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessage(Message& message, TimeSpan timeout) System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message& message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates) System.ServiceModel.Channels.SecurityChannelListener

There was no endpoint listening at that could accept the message. T

  

Hi Experts,

I getting the error which specified in the title.

My Application Details:

I developed a VSTO Word 2007 add-in application which consumes WCF web service and render report in word document.

I deployed my VSTO Word 2007 add-in application using Click Once  technology.

WCF Service is hosted in IIS7 my IIS7 server is configured in a load balancer environment.

This application was released to production and running successfully for all clients as of.

But one of my new client is facing problem and getting the following error "There was no endpoint listening at <http://app.domain.com/api.svc.> that could accept the message. This is often caused by an incorrect address or SOAP action. "

This issue is not coming for any other clients except this new client.

 

This is a urgent requirement and need to fix ASAP, experts please help me 

 

Thanks in advance,

 


Error Message PowerPivot Excel on SharePoint : "Excel was unable to get necessary information about

  

Hello everybody:

I get the error message “Excel was unable to get necessary information about this cube. The cube might have been reorganized or changed on the server” when I open the excel on the sharePoint site and the PowerPivot Datasource is already refreshed successfully on schedule.

I describe my steps more clearly.

  • Step1. Create Excel pivot tables and charts by using PowerPivot datasource which connects to SQL Server.
  • Step2. Publish Excel to SharePoint site. The Analysis Server will build a PowerPivot cube in "VertiPaq" StorageEngineMode automatically and the cube name including an "uniqueindentifier" in the end.
  • Step3. Schedule PowerPivot refresh plan on SharePoint and the successful result comes out soon. After PowerPivot refreshed the "uniqueindentifier" will be changed to another one automatically.
  • Step4. When I open excel on the SharePoint I will get the error message again. If I click the "ok" then Excel will really Refresh.

Now I have tried two ways:

  1. Locale setting: Doesn't work. It seems not to be the cause of my problem because it won't happen if my excel's datasource is connecting to DB or Cube directly.

    difference between Add Reference and Add Services Reference in WCF

      

     

     

    I have created a WCF Services called wcfProcess1 and hosted thru WcfSvcHost

    I am consuming the wcfProcess1 in another windows program by calling by adding as Add Reference, DLL of the wcfProcess1 from Bin folder and not by adding as Add Services Reference.

    Is this correct way to do?

    By adding the DLL Reference as Add Reference i am still able to consume the wcfProcess1

    What are the advantages and disadvantages of it?

     What is the difference between Add Reference and Add Services Reference in the client program when consuming the wcfProcess1?

      

    Regards,

    Thomas

     


What is the difference between Add Reference and Add Services Reference

  

I have created a WCF Services called wcfProcess1 and hosted thru WcfSvcHost I am consuming the wcfProcess1 in another windows program by calling by adding as Add Reference, DLL of the wcfProcess1 from Bin folder and not by adding as Add Services Reference. Is this correct way to do? By adding the DLL Reference as Add Reference i am still able to consume the wcfProcess1 What are the advantages and disadvantages of it? What is the difference between Add Reference and Add Services Reference in the client program when consuming the wcfProcess1?

Regards,

Thomas


Detecting Bounces with return-path message header

  
Hello,

I am coding an application that sends out automated emails for my company's clients, and tracks data (opens, click throughs, etc).  I am having problems trying to figure out how to track bounce messages though.  The From and ReplyTo email addresses are the clients (i.e. info@clientdomain.org, and contactus@clientdomain.org).  Currently, Bounce messages are being sent to the From email address.  In order to track and record the bounces in my company's database, I need to have the bounces instead sent to my company's domain (i.e. bounce@mycompany.com).

I am using C#, and the builtin System.Net.Mail code libraries to send SMTP messages through our company's Exchange Server (2003).  The code I am using looks something like this:

Code Snippet

MailMessage message = new MailMessage();
message.From = new MailMessage("info@clientdomain.org");
message.ReplyTo = new MailMessage("contactus@clientdomain.org")
message.To.Add(new MailMessage("customer1@blahblahblah.com"));
message.Subject = subjectString;
message.Body = bodyString;

SmtpClient client = new SmtpClient();
client.Host = emailServerHostName
client.Port = emailServerPort
client.Credentials = emailServe

Adding SOAP header to a SOAP message

  
Hi guys I am a bit of newbie to SOAP message handling here....
I just want to quote my example here and ask for some assistance...I have been scratching my (bald) head for a couple of days on this and get quite panic....

I have a SQL server Integration Service (SSIS) 2005 package that uses Visual Studio 2005 VB script to consume a third-party WCF Web service in proxy class .  The third party company generated a proxy class in VB for me and I copied and pasted the code into my SSIS VB script task.  For your information, SSIS 2005 is .NET 2.0 framework based.

Here is the beginning of the proxy class:
 
Namespace abc.xxx.xxxxxxx.Client.xxxxx
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038"), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCa
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