View Complete Post
As I promised last time, in this month's column I'll walk through the process of defining and invoking a generic or template function under C++\CLI. A function template or a generic function begins with the template or generic keyword followed by its parameter list.
Stanley B. Lippman
MSDN Magazine October 2005
Dealing with error handling between T-SQL and a calling application, evaluating when a field's value has changed, and creating auditing tables in SQL ServerT are all common issues that developers must tackle.
MSDN Magazine April 2004
I'm attempting to host a WCF service and Silverlight client on Apache Web Server, and I'm running into some issues. The Silverlight client is a simple web page that calls a WCF service, but I'm having problems:
Are there any specific steps to make a WCF service hostable on Apache Web Server? Should I be able to invoke a WCF web service from Silverlight on an Apache Web Server? I've setup both clientaccesspolicy.
I have a web forms page with a button that involkes a __doPostBack callback to the page. I would like to invoke this manually - by "manually" I mean from outside the webpage, for example by using wget. Is there a way or an example of the best way to do this, please?
I've written a custom WCF service and hosted it in SharePoint. Accessing the MEX endpoint works fine. However, when I try to invoke the WCF service from my client code, I get the following error:
'A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - Either a required impersonation level was not provided, or the provided impersonation level is invalid.)'.
This exception gets thrown even before my WCF service gets invoked. Attaching a debugger, I see the following stack trace associated with the exception:
00000000`0c2dd7d0 000007fe`e7589b95 System_Data_ni!System.Data.SqlClient.SqlConnection.OnError(System.Data.SqlClient.SqlException, Boolean)+0xd4
00000000`0c2dd810 000007fe`e7b7cd3b System_Data_ni!System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(System.Data.SqlClient.TdsParserStateObject)+0xf5
00000000`0c2dd870 000007fe`e758c4ee System_Data_ni!System.Data.SqlClient.TdsParserStateObject.WriteSni()+0x5f77ab
00000000`0c2dd8f0 000007fe`e758bf29 System_Data_ni!System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()+0xae
00000000`0c2dd950 000007fe`e757a1c7 System_Data_ni!System.Data.SqlClient.TdsParser.TdsExecuteRPC(System.Data.SqlClient._SqlRPC, Int32, Boolean, System.Data.Sql.SqlNotificationRequest, System.Data.SqlClient.TdsParserState
i am currently challenging a problem that suddenly started to happen in my production environment when invoking a WS method from a windows-service .NET app.
The windows service is waiting for requests incoming through MQ, unwraps these requests from an "MQ XML packet" and redirects these requests to the web service. This web service has only one web method, which is kind of "main entry point" for the
underlying backend application.
This monday approx. 30% of attempts to invoke that web method are failing with message: The underlying connection was closed: Unable to connect to the remote server.
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object?! parameters)
at MyWebService.GetResponse(String requestMessage, String& responseMessage)
I am consuming an ASP.Net webservice from a simple .Net application byadding a web reference. However when I invoke the web method, we see acouple of soap error entries in the application event log with theresult that the http request is not successfully completed.
We even tried to invoke the web method directly from the asmx page inIE providing in the required parameters. We still get the same errors.
Please note this problem is intermittent and does not happendeverytime.
The following are the event log entries:
Soap error: XML Parser failed at linenumber 0, lineposition 0, reasonis: The download of the specified resource has failed.Soap error: Soap client is not initialized.Soap error: One of the parameters supplied is invalid..Soap error: Loading of the WSDL file failed.
Sometimes we get a little different kind of event log entries as givenbelow:
aspnet_wp.exe (PID: 2228) stopped unexpectedly.Soap error: One of the parameters supplied is invalid..
Soap error: Loading of the WSDL file failed.
Soap error: XML Parser failed at linenumber 0, lineposition 0, reasonis:The system cannot locate the object specified.
We fail to understand as to where is the problem. We can easily browseto the wsdl file successful
I have problem described under following link: mvcrouting
Can someone give me some clues how to deal with that ?
Here's my problem:
I have an asp.net app that invokes a java/axis based webservice through a wsdl file provided by my customer.
But, as i had no access to this webservice at the dev time, i've created a fake .net based webservice, with the same methods, returning some valid data, so i'd be able to test the integration interface.
The problem is, when i add the service reference on my app, pointing to my fake webservice (.net), it's class has a certain name, and when i point it to my customer's wsdl file, it's class has a different name.
Generated class name when i add the service reference by: - .NET fake webservice = "TransferenciaEndpointSoapClient" - wsdl file of the java/axis webservice = "TransferenciaEndpointClient"
I want the class i've created in my fake webservice to keep the same name of the wsdl, when i add the service reference on my app.
I tried to add a "web reference" instead of a "service reference", but it did not work. I also tried to change the name of the class on the "Reference.cs" file, it works on my environment, but it doesn't when i put the generated bin on my customer's environment. I'd like to sol
Been doing research for a whlie now and while I suspect I passed right by the answer, it wasn't obvious -- so, figured a direct question is best
I have a situation where I have multiple vendors I do business with and the list can change. I'd like to be able to create a new workflow for each vendor where I want to support custom steps. Let's say it is placing an order, and I have a default
process that involves manual work.
I envisioned a file (say XML) where I can have a name which represents the workflow I want to invoke.
In my main workflow I wanted to have a parallel activity that sent a message to all of the vendor workflows (on my machine) and waited for them all to finish before moving on.
So, my questions
1. What do I need to do to send a message to this vendor specific workflow? I have it's name and I can build out a URI based on the name. In other words, how can I make this work
2. Does this vendor workflow just have to reply to the receive to indicate "I'm done" to the main workflow
Thanks in advance for pointers, etc.
I have created a WebService in C# which accept 2 parameters.
What I want is to call the invoke the webservice from either
1. An Oracle Form
2. by just clicking on a url and pass the parameters throu the URL
Is it possible?
If so, please help me.