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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

No Response from Web service

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ADO.Net

Hi All,

Recently we have upgraded(added new fields and different namespace) the web service, from biztalk we are invoking the new webservice but biztalk is built using old wsdl file and references.

When I invoke directly new web service using old message it working fine and getting response. But when we invoke from biztalk we are gettig no response and orchestration is dehydrated.

I assume if I correct the name space that will solve the problem.

Please let me know your thoughts.





View Complete Post

More Related Resource Links

Foundations: Build a Queued WCF Response Service


With queued calls in Windows Communication Foundation you can perform work in a disconnected manner by sending messages through Microsoft Message Queuing. Juval Lowy explains.

Juval Lowy

MSDN Magazine February 2007

Web Service that will receive xml request and send xml response


I am trying to create a web service that can do the following functionality:

Request XML 

<?xml version="1.0" encoding="UTF-8"?>
<Authentication UserName="test" Password="test" MyId="0987">

Response XML - After authenticating request xml from client send them back the following response:

<?xml version="1.0" encoding="UTF-8"?>
   <Test MyId="0987">
       <TestType id="11"></TestType>
       <TestType id="22"></TestType>

How can I create web service to do this.

Post the SAML Response in an HTML form to the assertion consumer service

Hi,   Can anyoner please help me in how to post the SAML Response in an HTML form to the assertion consumer service. I have generated the saml reponse and want to send the same to the re-directing url.  

creating a sample web service response

I am trying to simulate a sample web service payload similar to that which i will receive one the webservice is live. Can anyone help me simulate this?Criteria for my response will be:a bool pass or failstring - messageand the object (in this case in the form of a list)heres the class I am to populate with sample data: public class WebServiceCollectionResponse { private List<Object> _returnObjects; public bool Success { get; set; } public string Message { get; set; } public List<Object> ReturnObjects { get { if (_returnObjects != null) return _returnObjects; else return new List<object>(); } set { _returnObjects = value; } } } How can I use this class to put sample data in it? Lets say I want to put customers in the list 'ReturnObjects'?Thanks for your time.

REST Web service,not getting response


Hi ,

I have to call a REST web service method that is deployed remotely on a machine and i use VPN to connect through that url. It works fine when i use the browser to view the output of the web service method but i am unable to get the response in the code as i get an exception. The response status message is OK but when i try to read the response content from the streamreader i get the exception "ex = {"Unable to read data from the transport connection: The connection was closed."}". The content length is -1 in the HttpWebReponse object. Here is the code

        HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("");

        //apply this url when working with the software
       // HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://localhost:1901/metascan_rest/scanner?method=getengineinfo");
        request.Method = "GET";
        WebResponse res = request.GetResponse();

        string status = ((HttpWebResponse)res).StatusDescription;

        Stream stream = res.GetResponseStream();
        StreamReader reader = new StreamReader(stream);

          //this is where the exception occurs
            string output = reader.ReadToEnd();

Web Service Response Question: < and > getting converted to > and >


Hi there,

I created a asmx web service which returns a string as response. The return response is as follows:

<?xml version="1.0" encoding="utf-8" ?> 
 <string xmlns="https://xyz.com"> <result>Success</result></string> 
 But when the client is doing http post they are getting the following response on their side:
<?xml version="1.0" encoding="utf-8" ?> 
 <string xmlns="https://xyz.com"> &lt;result&gt;Success&lt;/result&gt;</string> 
What should i be doing so that the client sees < and > instead of &lt; and &gt; ?

MTOM-enabled WCF service sends document inline in SOAP response


I'm running a WCF service that has messageEncoding="Mtom" in the config file. The WCF service however, in its SOAP response sends the document as a Base 64 encoded document inline and not as a <xop:include.....> reference outside the SOAP. I'm not sure what I'm doing wrong. Please guide me.


Desired Format:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_F862C3E04D9E35266C1256303956115; type="application/xop+xml"; start="0.urn:uuid:F862C3E04D9E35266C1256303956116@apache.org"; start-info="application/soap+xml"; action="urn:ihe:iti:2007:RetrieveDocumentSetResponse"
Date: Fri, 23 Oct 2009 13:19:11 GMT

Content-Type: application/xop+xml; charset=UTF-8; type=&

Service not available, closing transmission channel. The server response was: #4.x.2 Too many messag

Hi there,

I have a multithreaded mail app that is getting this error occasionally. It's a SmtpException. I'm resending the email later and it goes through OK from what I can tell. The network admin beside me is telling me this Exchange will respond with this message if I try to send more than 1000 messages in one connection.

Each thread (of which there are 4 per server) is creating it's own instance on the SmtpClient object and is never sending more than 200 messages through this at once (e.g. each thread retrieves a batch of 200 messages maximum). I'm sending around 10-200 messages a second depending on time of day.

I've looked at the System.Net.Mail assemblies using Reflector and it looks like the .NET framework does some connection pooling under the covers which may be part of the cause although I can't tell for sure.

So, with all this in mind, can someone point out some possible things to watch out for or dos and don'ts around this? The SmtpClient object doesn't have a explicit close method so I could hazard a guess and say that the connection to the smtp server isn't being closed when the object goes out of scope. Throughts on this?

Weird application behavior -- Action required to trigger service response otherwise the application



I am a WCF beginner and is trying out with a basic host service with callbacks to the client.

My code works wonders if my client app is a console.exe but when I transferred the code to a Windows Form app, the application will freeze.  But if I right click on the form window task bar, the code suddenly goes through and it would work...

Is there anything wrong with this?

The service is hosted on IIS

Here is my Service code:


[ServiceContract(CallbackContract = typeof





  ConcurrencyMode = ConcurrencyMode.Reentrant)]
 Chat : IChat


How to remove multiref- style formatting from the SOAP web service response?



I am about to write a C# web service that will replace an ATL based web service. The existing client (ATL based C++ client) needs to be working with my C# web service without changing the client codes.

Now from the WSDL from ATL web service, I noticed that it uses RPC style, so I have used SoapRpcMethodAttribute for all my web methods. Now the methods that have some out parameters and returns an array, I have taken a snap shot of the response (using Fiddler) from ATL web sever. Which looks like following:



 <?xml version="1.0" encoding="utf-8" ?> - <soap:Envelope xmlns:soap="

Cannot get response from HTTPS request by a Windows service


When I use a web request to get response from a URL address which is based on SSL.

ServicePointManager.CheckCertificateRevocationList = true;
var webReq = (HttpWebRequest)WebRequest.Create("https://www.live.com");
var webResp = (HttpWebResponse)webReq.GetResponse();

I will get one of the following exception information.

  • {System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
       at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.

Adding namespace prefix to web service request & response

Hello all,

I have a simple webservice, "HelloWorld" with one parameter. If I look at the SOAP request generated for this webservice it shows me this:

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

WCF Tip: Using Properties in Service Contracts

you'll notice all of the Service Contracts are implemented with interfaces containing only methods. For the longest time I thought that's all that was supported, until I thought about it a little more. In C# land, properties are simply wrappers around a get method and set method, so why wouldn't we be able to use properties in a service contract? Well the answer is we can.

Realizing a Service-Oriented Architecture with .NET

This article is meant to be a practical discussion guide to building a .NET application in a service-oriented architecture. We will consider real-world goals, real-world obstacles, and experience-based solutions. I quickly concede the approaches discussed here are not exhaustive or infallible. This paper is focused on application development, not application integration. We will specifically consider architectural issues and component design issues.

The Potential of Web Services

Web Service for uploading documents into SharePoint

WS UploadService is a web service written for Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 and is meant for uploading documents into SharePoint. I have just uploaded the zip file to GotDotNet.com so it will take some time before the zip file appears in the list of downloads. For the time being, you can download the zip file from the following location

Creating and Using an ASP.NET Web Service in Visual Web Developer

In addition to letting you create Web pages, Microsoft Visual Studio also lets you create Web services that use ASP.NET XML. Creating a Web service in Visual Studio is similar to creating a Web page. You can also use the Microsoft Visual Web Developer Web development tool to reference and use Web services that are in a Visual Web Developer solution, on your local computer or in a local or external UDDI directory. In this walkthrough, you will create the Web service in one solution and use it in another.

Tasks illustrated in this walkthrough include:

Creating a simple XML Web service in Visual Web Developer.

Creating a separate Web site that uses the Web service.
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