Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all 555 articles
Browse latest View live

Visual Studio 2010 Error when updating External Webservice URL

$
0
0

 Hi,

I am getting the following error message when I am trying to update the web service URL.

The vendor had changed the tags in their web service and asked us to update. When I tried to update the wsdl in order to generate the classes with updated tags

by right clicking under web reference and update web reference and getting the error.

Also tried to add the service just to try and still get the same error.

Using Visual Studio 2010

Here are the error details.

There was an error downloading <<vendor URL>>?WSDL'.

The request was aborted: Could not create SSL/TLS secure channel.

Metadata contains a reference that cannot be resolved:<<vendor URL>>?WSDL'.

Could not establish secure channel for SSL/TLS with authority '<<vendor URL>> without ?WSDL

The request was aborted: Could not create SSL/TLS secure channel.


ASP.NET Windows Authentication Impersonation connecting to webservice

$
0
0

Hi

Not sure exactly which group this belongs to. It's a question about ASP.NET and webservice authentication.

I have a Dynamics NAV Webservice that I use in my intranet solution (web solution). I want to access this webservice as the logged-on-user.

The website is using Windows authentication and when I enable impersonate it works fine on my computer both on IIS and IIS Express. I access the webservice as the logged on user (and not as the Application Pool Identity). Perfect!

System.Security.Principal.WindowsIdentity.GetCurrent().Name shows my username as it should. If I change impersonate to false, the WindowsIdentity changes to the application pool. As I expect.

Then I publish this site to another server on the same domain and the same setup gives me the error: "The remote server returned an error: (403) Forbidden." when connecting to the web service. So it seems this server is not passing on my credentials to the webservice for some reason. System.Security.Principal.WindowsIdentity.GetCurrent().Name still shows my username, as it should, so the impersonate is doing something at least.

Why is my computer using impersonate as I expect and the server isn't?

I have tried Kerberos and NTLM on the webservice, but both work on my computer and not on the server.

The webserver is running Win 2012 R2 with IIS 8.5

My local computer is running Win 10 1703 with IIS 10

How to add a payment option to my website.

$
0
0

HI All,

I never worked on any eCommerce/payment related web applications.

I have a web application based on .Net 3.5. Now I want some payment option so that user can use their credit/debit/internet banking for payment and the amount should go to manager's account. Manager's account may be a paypal/paytm/e-wallet or a simple bank account.

How can I add this module.

Please let me know any reference, link or any resource based on .Net framework.

Thanks

How to support the ASP.NET session in WCF calls?

$
0
0

Hi there

The question is answered, probably, here:

https://blogs.msdn.microsoft.com/wenlong/2010/02/20/using-asp-net-sessions-from-wcf/

but that code is all around the OperationContext.Current, which is not NULL only for a given code example.

In my case the system creates all proxies automatically and all I do is calling things like:

LoginServiceReference.LoginClient wc = new LoginServiceReference.LoginClient();
LoginServiceReference.IDTWebUserDTO user = wc.DoLogin(model.Login, model.Password);

It works Ok, but as you may see, the LoginClient is created for me automatically. When calling wc.DoLogin there is no way to get into its context to obtain the OperationContext. For sure, I can modify the generated proxy, but next time the system will re-generate it. Bad approach.

For me the OperationContext.Current is always NULL here. How to get the ASP.NET session ID (as the blogger does in his InitialInvoke() method) and how to assign it (as in his Invoke2() method) ?

Maybe you can suggest other technics to maintain the ASP.NET session for WCF communication?

Thanks.

Problem in hosting a WCF service by Windows Service

$
0
0

Hi,

I have created a simple wcf service. I have already debug the wcf service separately, it's okay then. I have hosted it by a windows service. But when I install the windows service in my computer and tried to start the windows service, it can't be start. It's getting the following exception.

Service cannot be started. System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:8080/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). ---> System.Net.HttpListenerException: Access is denied
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan ...



Although I have started my visual studio as an administrator and also the visual studio developer command window during the service installation. I have also register the base address of the service by using the command "netsh http add urlacl url=http://+:8080/MyUri user=DOMAIN\user". None of those process can't solve the exception. Please suggest me a way to solve the exception.

Concurrent number of client connections in asp.net (Asmx) web service

$
0
0

I have developed an asmx web service that serves the data from the Oracle database to front end clients (clients are using .net based desktop application).

the number of concurrent clients will be 1000, service will be responsible for serving this client calls for not only retrieving data from the database but also performing some business login and manipulating data in the database server.

is it safe to use this asmx web service to handle such a number of clients? and will my service will be efficient enough to timely serve these # of clients?

Creating Soap Request in c#

$
0
0

HI

I am trying to consume a service .

Can any one help me how to generate a soap request as follows.

 i want to construct a class and then serialize the class using soap formator and then post it to my service. I tried with the some online help but could not able to generate the required soap xml.

i am bit confused about the implementation .Can any one help me on this.

Thanks

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:iot="http://services.singp.com><soapenv:Header/><soapenv:Body><iot.performService><iot.input><iot.gsh><![CDATA[<header xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://services.singp.com"><GUID></GUID><CustID></CustID><RequestName></RequestName><TimeStamp>2017-06-09T10:49:03.49-05:00</TimeStamp></header>
            ]]></iot.gsh><iot.Body><![CDATA[<CustStatus xmlns="http://services.singp.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><CustStatusAttributes><CustID>str1234</CustID><Action>str1234</Action></CustStatusAttributes><CustStatusInformation><ClientOrderNumber>745</ClientOrderNumber></CustStatusInformation></CustStatus>

            ]]></iot.Body></iot.input></iot.performService></soapenv:Body></soapenv:Envelope>

New to Web Service

$
0
0

Trying to create a web service for auto complete extender. Saw some tutorials but can't get it to work

<ajx:AutoCompleteExtender ID="AC1" runat="server" ServiceMethod="FindItemId" MinimumPrefixLength="2" CompletionInterval="100" EnableCaching="false" CompletionSetCount="10" TargetControlID="TextBox1" FirstRowSelected="false" ServicePath="~/FindItemId.asmx"></ajx:AutoCompleteExtender>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for FindItemId
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
 [System.Web.Script.Services.ScriptService]
public class FindItemId : System.Web.Services.WebService
{
	public FindItemId()
	{

	}

	[WebMethod]
    public static List<string> GetItemId(string prefixText, int count)
	{
		using (SqlConnection conn = new SqlConnection())
		{
			conn.ConnectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
			using (SqlCommand cmd = new SqlCommand())
			{
				cmd.CommandText = "SELECT ItemId FROM CoItems where ItemId like @SearchText + '%'";
				cmd.Parameters.AddWithValue("@SearchText", prefixText);
				cmd.Connection = conn;
				conn.Open();
				List<string> Items = new List<string>();
				using (SqlDataReader sdr = cmd.ExecuteReader())
				{
					while (sdr.Read())
					{
						Items.Add(sdr["ItemId"].ToString());
					}
				}
				conn.Close();
				return Items;
			}
		}
	}
}

<Services><asp:ServiceReference Path="~/FindItemId.asmx" /></Services>

How is it supposed to work?


WCF: define which webservice can be accessed

$
0
0

Hello,

 I have created an application, with a layer that has multiple wcf(web services). Let's say WebService1, Webservice2, Webservice3, Webservice4, and Webservice5.

Webservice1, 2 and 3 can be called with same certificate. The issue is the caller to Webservice1, can also access Webservice2 and 3.

What I want is the caller to Webservice1, use only Webservice1 and be denied access to Webservice2 and 3, keeping same certificate.

What are the options?

Thanks in advance

Al

Creating a WCF service form a SOAP 1.1 WSDL

$
0
0

I have been trying to create a service from a supplied WSDL for an API that we need to hook into. The way this works is that we have to create the service for the API to call into and send back information to the caller. I used svcutil to create the service contract and discovered that all the Action  properties were blank, which meant that it would not compile. This then lead me to this post https://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/dispatch-by-body-element and on checking, I found that indeed the soapAction in the WSDL for all functions was blank. I added the three classes from the example link into my project , added the DispatchByBodyElementBehavior property, added a default method and set the other OperationContractAttribute properties as per the article. The service then compiles and runs. However, if I try and create a client for it from the service I created using Visual Studio or svcutil , it has no functions. Also if I use the WCF Test Client (by starting the VS project with the .svc file selected), I get an error message "The contract 'IViatorWCFService' in client configuration does not match the name in service contract, or there is no valid method in this contract." I have checked "always regenerate config when launching services" and refreshed but no change. The problem is possibly  to do with the wild cards for ReplyAction , which is what the article indicated was required. I have tried leaving a question ion the original article, but have had no reply. I have also contacted the supplier of the wsdl (Viator) but at this stage have not had any replies. The code for the interface is below. There are a bunch of other classes and properties from the WSDL, but I have not pasted those here. I am new to WCF , so I'm struggling to work out what he issue is

 Help !

Many thanks in advance

 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace = "http://toursgds.com/api/01", ConfigurationName = "Custom.ViatorWebService.IViatorWCFService"), DispatchByBodyElementBehavior]
    public interface IViatorWCFService
    {
        [OperationContractAttribute(Action = "*", ReplyAction = "*")]
        void DefaultOperation();

        // CODEGEN: Generating message contract since the operation cancelBooking is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(ReplyAction = "*"), DispatchBodyElement("cancelBooking", "http://toursgds.com/api/01")]
        [System.ServiceModel.FaultContractAttribute(typeof(Custom.ViatorWebService.Error), Action = "", Name = "RequestError")]
        [System.ServiceModel.XmlSerializerFormatAttribute()]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourAvailabilityBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TransactionStatus))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourOptionsBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RequestResponseBase))]
        Custom.ViatorWebService.BookingCancellationResponse1 cancelBooking(Custom.ViatorWebService.BookingCancellationRequest1 request);

        // CODEGEN: Generating message contract since the operation sendBookingNotification is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(ReplyAction="*"), DispatchBodyElement("sendBookingNotification", "http://toursgds.com/api/01")]
        [System.ServiceModel.FaultContractAttribute(typeof(Custom.ViatorWebService.Error), Action = "", Name = "RequestError")]
        [System.ServiceModel.XmlSerializerFormatAttribute()]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourAvailabilityBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TransactionStatus))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourOptionsBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RequestResponseBase))]
        Custom.ViatorWebService.BookingNotificationResponse1 sendBookingNotification(Custom.ViatorWebService.BookingNotificationRequest1 request);

        // CODEGEN: Generating message contract since the operation getTourList is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(ReplyAction="*"), DispatchBodyElement("getTourList", "http://toursgds.com/api/01")]
        [System.ServiceModel.FaultContractAttribute(typeof(Custom.ViatorWebService.Error), Action = "", Name = "RequestError")]
        [System.ServiceModel.XmlSerializerFormatAttribute()]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourAvailabilityBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TransactionStatus))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourOptionsBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RequestResponseBase))]
        Custom.ViatorWebService.TourListResponse1 getTourList(Custom.ViatorWebService.TourListRequest1 request);

        // CODEGEN: Generating message contract since the operation getAvailability is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(ReplyAction="*"), DispatchBodyElement("getAvailability", "http://toursgds.com/api/01")]
        [System.ServiceModel.FaultContractAttribute(typeof(Custom.ViatorWebService.Error), Action = "", Name = "RequestError")]
        [System.ServiceModel.XmlSerializerFormatAttribute()]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourAvailabilityBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TransactionStatus))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourOptionsBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RequestResponseBase))]
        Custom.ViatorWebService.AvailabilityResponse1 getAvailability(Custom.ViatorWebService.AvailabilityRequest1 request);

        // CODEGEN: Generating message contract since the operation amendBooking is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(ReplyAction="*"), DispatchBodyElement("amendBooking", "http://toursgds.com/api/01")]
        [System.ServiceModel.FaultContractAttribute(typeof(Custom.ViatorWebService.Error), Action = "", Name = "RequestError")]
        [System.ServiceModel.XmlSerializerFormatAttribute()]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourAvailabilityBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TransactionStatus))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourOptionsBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RequestResponseBase))]
        Custom.ViatorWebService.BookingAmendmentResponse1 amendBooking(Custom.ViatorWebService.BookingAmendmentRequest1 request);

        // CODEGEN: Generating message contract since the operation getBatchAvailability is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(ReplyAction="*"), DispatchBodyElement("getBatchAvailability", "http://toursgds.com/api/01")]
        [System.ServiceModel.FaultContractAttribute(typeof(Custom.ViatorWebService.Error), Action = "", Name = "RequestError")]
        [System.ServiceModel.XmlSerializerFormatAttribute()]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourAvailabilityBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TransactionStatus))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourOptionsBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RequestResponseBase))]
        Custom.ViatorWebService.BatchAvailabilityResponse1 getBatchAvailability(Custom.ViatorWebService.BatchAvailabilityRequest1 request);

        // CODEGEN: Generating message contract since the operation makeBooking is neither RPC nor document wrapped.
        [System.ServiceModel.OperationContractAttribute(ReplyAction="*"), DispatchBodyElement("makeBooking", "http://toursgds.com/api/01")]
        [System.ServiceModel.FaultContractAttribute(typeof(Custom.ViatorWebService.Error), Action = "", Name = "RequestError")]
        [System.ServiceModel.XmlSerializerFormatAttribute()]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourAvailabilityBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TransactionStatus))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(TourOptionsBase))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RequestResponseBase))]
        Custom.ViatorWebService.BookingResponse1 makeBooking(Custom.ViatorWebService.BookingRequest1 request);
    }

Configure WCF to Publish DLL which is named Shared Data

$
0
0

I want to ask you something. last year i worked company and 4 team working one Project.  when they publish web service, Data contract dlls were being loading Shared Data. Now when i was published all data contract dlls is not load in shared data. i dont remember exatly. when then copy shared dll's to MVC bin all dlls update automaticaly.  I think when i publish my Data contract as shared data everything will be done.  I'm sorry for not remembering what this team did. How can i configure web service for publish data contract  as Shared Data. 

How to Automatic Update Service Rerefence

$
0
0

Web create private company project. We use ASP.NET C# MCV tecnology.  Project using the web service when connect to the database. Now we keep going projectsmoothly. But when we changed web service code and copy compiled ddl to project bin directory, then projectdisown the changed web service dll. Therefore whenservice dll changed i always click Services / Update Service Reference button. For now i can click because project is run in my local computer. Following monts  we load the project to the remote server. In this case when we change web service dll we will always copy compiled project and web service ddl to remove server. I heard some people was configure their project for updated web service dll automatically. How can i configure my project for update web service dll automatically or what should i do

Web Service Updatea

questions about which dot net library and methods to use

$
0
0

I need to send XML to a home grown web server on port 80 that "sort of kind of" understands XML serialization.  Will eventually need to be able to write to many of them at the same time. (up to 1000) 

The HTTP protocol for the home grown server is tight and not an issue, but I will need to use  their library for the XML parsing and serialization.

What library/approach for web should I use for the HTTP communication? 

thanks

WSDL - generation of proxy classes

$
0
0

I`ve got the following URLs for accessing web service:
WSDL URL http://77.79.218.70/platform_webservices.php/wsdl
Location http://77.79.218.70/platform_webservices.php

When I try to use svcutil to generate proxy classes I get the following error

SvcUtil.exe http://77.79.218.70/platform_webservices.php/wsdl

Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.6.1055.0]
Copyright (c) Microsoft Corporation.  All rights reserved.

Attempting to download metadata from 'http://77.79.218.70/platform_webservices.php/wsdl' using WS-Metadata Exchange or DISCO.
Error: Nie można zaimportować elementu wsdl:portType
Szczegóły: Podczas wykonywania rozszerzenia importu WSDL zgłoszono wyjątek: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Błąd: Nie można odnaleźć definicji getIVRSListRequest. Brak opisu usługi z obszarem nazw .
Nazwa parametru: name
Ścieżka XPath do źródła błędu: //wsdl:definitions[@targetNamespace='http://www.example.org/ResellerAPI/']/wsdl:portType[@name='PlatformAPI']

Error: Nie można zaimportować elementu wsdl:binding
Szczegóły: Wystąpił błąd podczas importowania elementu wsdl:portType, od którego zależy element wsdl:binding.
Ścieżka XPath do wsdl:portType: //wsdl:definitions[@targetNamespace='http://www.example.org/ResellerAPI/']/wsdl:portType[@name='PlatformAPI']
Ścieżka XPath do źródła błędu: //wsdl:definitions[@targetNamespace='http://www.example.org/ResellerAPI/']/wsdl:binding[@name='NewBinding']

Error: Nie można zaimportować elementu wsdl:port
Szczegóły: Wystąpił błąd podczas importowania elementu wsdl:binding, od którego zależy element wsdl:port.
Ścieżka XPath do wsdl:binding: //wsdl:definitions[@targetNamespace='http://www.example.org/ResellerAPI/']/wsdl:binding[@name='NewBinding']
Ścieżka XPath do źródła błędu: //wsdl:definitions[@targetNamespace='http://www.example.org/ResellerAPI/']/wsdl:service[@name='PlatformAPI']/wsdl:port[@name='ResellerAPISOAP']

Generating files...
Warning: No code was generated.
If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or services
or because all contracts/services were discovered to exist in /reference assemblies. Verify that you passed all the metadata documents to the tool.

Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.

How can I make it working in that case?

Operation 'ProcessRequestForMessage' in contract 'IRequestHandler' specifies Method '*' on the WebGetAttribute/WebInvokeAttribute.

$
0
0

Hello,

I have created WCF data service Framework 4.6.1 and EF6. I am getting below error when i try to publish the service. Appreciate your inputs as i am new to this:

Operation 'ProcessRequestForMessage' in contract 'IRequestHandler' specifies Method '*' on the WebGetAttribute/WebInvokeAttribute, but the only allowed values for Method are GET or POST. Other values are not supported by 'System.ServiceModel.Description.WebScriptEnablingBehavior'. 

My code looks like:

[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class MyService : DataService<ObjectContext>
    {

        public static void InitializeService(IDataServiceConfiguration config)
        {
            config.SetEntitySetAccessRule("*", EntitySetRights.All);
            config.UseVerboseErrors = true;
        }

        protected override ObjectContext CreateDataSource()
        {
            var context = new RegistryContext();
            var objectContext = ((IObjectContextAdapter)context).ObjectContext;
            objectContext.ContextOptions.ProxyCreationEnabled = false;

            return objectContext;
        }
    }

Config file looks like:

<system.serviceModel><services><service name="Services.MyService"><endpoint address="" behaviorConfiguration="Services.MyServiceAspNetAjaxBehavior"
          binding="webHttpBinding" contract="System.Data.Services.IRequestHandler" /></service></services><behaviors><endpointBehaviors><behavior name="Service.MyServiceAspNetAjaxBehavior"><enableWebScript /></behavior></endpointBehaviors><serviceBehaviors><behavior name=""><serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /><serviceDebug includeExceptionDetailInFaults="false" /></behavior></serviceBehaviors></behaviors><protocolMapping><add binding="basicHttpsBinding" scheme="https" /></protocolMapping><serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /></system.serviceModel>

 


Which Template to use for creating WCF Data Service

$
0
0

Hello ,

I am using VS 2017 community edition to develop WCF Data Service but i dont see any specific project template for that. Can anyone suggest me which template to use for the same?

Best for web site templates?

$
0
0

i am currently in the process of making an website and i was just curious what is the best web site on internet for web design templates.

Generate Client fails using DataSvcUtil

$
0
0

Hello,

I am trying to generate Client manually using DataSvcUtil.exe. The command is getting executed but it is failing to generate client. Below is my command and screen shot:

"%windir%\Microsoft.NET\Framework\v4.0.30319\DataSvcUtil.exe /dataservicecollection /version:2.0 /language:CSharp /out:D:\Downloads\MyService.cs /uri:http://localhost:9999/MyService.svc/

How to track and audit every call to web service

$
0
0
I have an webservice.sln and one of my application call that web methods in many of the asmx.cs files in the webservice.sln Say (Save and Update Web Methods in each of the asmx.cs pages). I want to audit these method calls. Is there a generic way to put this audtitMethod() instead of putting it in all the Save and Update methods IN EACH ASMX.CS FILES?

MaxReceivedMessageSize in Rest Web services

$
0
0

I am new to Rest web services & trying to figure out. I created a client application by consuming  web service ,  loop through a list object that has around 500,000 items & call API  for each record. Here is the error message i got & i know i need to change MaxReceivedMessageSize in app.Config file but i am trying to figure out what this message actually means??

Error: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. 

Viewing all 555 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>