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

Monitor a service call from a proxy class

$
0
0

Hi web service gurus,

I'm trying to see the SOAP communication between my service and client.

The client calls the service, get's the WSDL and creates proxy classes. This I am able to redirect to a monitor port and see.

However, inside the WSDL is the address to the service, so when I do :

Service := Activator.CreateInstance(ServiceType);
Authenticate(Service);
MyMethod.invoke(Service, Parameters);

This communication, I don't see in my monitor anymore.

I've tried the following:

I've tried to call the createInstance with arguments like Activator.CreateInstance(ServiceType, Args) as the proxy classes I see if I feed the wsdl to visual studio seemed to have constructor with address, but that resulted in cannot find constructor.

I've tried when creating the proxy classes give an alternate address, like

ServiceDescription := ServiceDescription.Read(RequestStream);
ServiceDescriptionImporter := ServiceDescriptionImporter.ServiceDescriptionImporter();
ServiceDescriptionImporter.AddServiceDescription(ServiceDescription,'url','');

Where url is a app settings key, I've added the following to the client config file:

<appSettings><add key="url" value=http://myserver:8082/path/myMonitor /></appSettings>

But then I get a strange error:

A call to System.CodeDom.Compiler.CompilerResults.CompiledAssembly failed with this message: Could not load file or assembly 'file:///C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\vaj0dfsn.dll' or one of its dependencies. The system cannot find the file specified.

where the dll name is random. Probably something went wrong and the proxy classes weren't built.

For monitoring I've used pocketsoap's tcptrace and membrane's http monitor that act as a middleman. More known software like soapUI (fails to authenticate) and fiddler and MS Message Analyzer (were not able to see the sessions no matter how hard I tried) did not work at all. I'm on windows 8.1.

Appreciate your help and comments/ideas.


System.web.Services.protocols.SoapException:The system cannot find the file specified

$
0
0

Hi Team,

I am using Asp.net 2015 (4.6.0 framework), the local IIS 7.0 & Sql server 2008.  The asp.net application would call JAVA web service which compare 2 files and give results are passed to asp.net application and finally display the result in Front end.  So i am using 2 bootstrap file upload  and send 2 files to java we service by creating proxy class.  Now i am getting "System.web.Services.protocols.SoapException: Firstfile.pdf The system cannot find the file specified".  Here firstfile.pdf is the first file name.

Can some one help me on this?

Thanks & regards,

Anand Rajagopal

I would like to create service reference to a WCF Rest Service

$
0
0

 Hi

I have a rest service but I would like to create a service reference of a web service. I have a project which created a reference to a WCF Rest Service but I don't know how

it created the reference... In this case, the host has a svc: Interfacesweb.svc which has an interface with soap:InterfacesWeb and a interface with rest:

IInterfacesWebRest

This is the web config of the service:

<?xml version="1.0"?><configuration>  <configSections>    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />    <section name="secureSettings" type="System.Configuration.NameValueSectionHandler" />  </configSections>  <log4net>    <appender name="LogFileAppender" type="log4net.Appender.FileAppender">      <param name="File" type="log4net.Util.PatternString" value="D:\Logs\Aplicaciones\VNInterfacesWeb\\Log_%property{LogName}.txt"/>      <appendToFile value="true" />      <encoding value="utf-8" />      <layout type="log4net.Layout.PatternLayout">        <param name="ConversionPattern" value="%d [%t] %-5p %c %m%n"/>      </layout>    </appender>    <root>      <level value="ALL" />      <appender-ref ref="LogFileAppender" />    </root>  </log4net>    <system.web>    <compilation debug="true" targetFramework="4.0" />  </system.web>  <system.serviceModel>    <services>      <service name="Ws.InterfacesWeb.InterfacesWeb">        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="InterfacesWeb.Binding"                  name="InterfacesWeb" contract="Ws.InterfacesWeb.IInterfacesWeb">        </endpoint>      <endpoint name ="RESTEndPoint"                  contract ="Ws.InterfacesWeb.IInterfacesWebRest"                  binding ="webHttpBinding"                  address ="rest"                   bindingConfiguration="InterfacesWebRest.Binding"                  behaviorConfiguration ="restbehavior"/>      </service>    </services>    <bindings>      <webHttpBinding>        <binding name="InterfacesWebRest.Binding"                 maxBufferPoolSize="2147483647"                 maxReceivedMessageSize="4194304">          <readerQuotas maxDepth="2147483647"                         maxStringContentLength="2147483647"                        maxArrayLength="2147483647"                         maxBytesPerRead="2147483647"                         maxNameTableCharCount="2147483647" />          <security mode="None">            <transport clientCredentialType="None" />          </security>        </binding>      </webHttpBinding>            <wsHttpBinding>        <binding name="InterfacesWeb.Binding"                  maxBufferPoolSize="2147483647"          maxReceivedMessageSize="2147483647">          <readerQuotas maxDepth="2147483647"                         maxStringContentLength="2147483647"                        maxArrayLength="2147483647"                         maxBytesPerRead="2147483647"                         maxNameTableCharCount="2147483647" />          <security mode="None">            <transport clientCredentialType="None" />          </security>        </binding>        <binding name="main" closeTimeout="00:10:00" openTimeout="00:10:00"          receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false"          transactionFlow="false" hostNameComparisonMode="StrongWildcard"          maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"          messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"          allowCookies="false">          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"            maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />          <reliableSession ordered="true" inactivityTimeout="00:10:00"            enabled="false" />          <security mode="None">            <transport clientCredentialType="Windows" proxyCredentialType="None"              realm="" />            <message clientCredentialType="Windows" negotiateServiceCredential="true" />          </security>        </binding>        <binding name="main1">          <security mode="None" />        </binding>        <binding name="main2">          <security mode="None" />        </binding>        <binding name="main3">          <security mode="None" />        </binding>        <binding name="main4">          <security mode="None" />        </binding>        <binding name="main5">          <security mode="None" />        </binding>        <binding name="main6">          <security mode="None" />        </binding>        <binding name="main7">          <security mode="None" />        </binding>      </wsHttpBinding>    </bindings>    <client>      <endpoint behaviorConfiguration="ManagementServiceBehaviour"        binding="wsHttpBinding" bindingConfiguration="main" contract="ComerciosReference.IBackendService"        name="ComerciosWSHttpBinding_IBackendService">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint behaviorConfiguration="ManagementServiceBehaviour"        binding="wsHttpBinding" bindingConfiguration="main" contract="TerminalesReference.IBackendService"        name="TerminalesWSHttpBinding_IBackendService">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint behaviorConfiguration="ManagementServiceBehaviour"        binding="wsHttpBinding" bindingConfiguration="main" contract="OperacionesReference.IBackendService"        name="OperacionesWSHttpBinding_IBackendService">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint behaviorConfiguration="ManagementServiceBehaviour"        binding="wsHttpBinding" bindingConfiguration="main" contract="ConsultasReference.IBackendService"        name="ConsultasWSHttpBinding_IBackendService">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint behaviorConfiguration="ManagementServiceBehaviour"        binding="wsHttpBinding" bindingConfiguration="main" contract="InterfacesWebReference.IBackendService"        name="InterfacesWebWSHttpBinding_IBackendService">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint behaviorConfiguration="ManagementServiceBehaviour"        binding="wsHttpBinding" bindingConfiguration="main" contract="InterfaceReference.IBackendService"        name="InterfaceWSHttpBinding_IBackendService">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint address="http://localhost:8732/Terminales" binding="wsHttpBinding"        bindingConfiguration="main1" contract="TerminalesReference.IBackendService"        name="main">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint address="http://localhost/Interfaces" binding="wsHttpBinding"        bindingConfiguration="main2" contract="InterfaceReference.IBackendService"        name="main1">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint address="http://localhost:8732/InterfacesWeb" binding="wsHttpBinding"        bindingConfiguration="main4" contract="InterfacesWebReference.IBackendService"        name="main3">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint address="http://localhost:8732/Comercios" binding="wsHttpBinding"        bindingConfiguration="main3" contract="ComerciosReference.IBackendService"        name="main2">        <identity>          <dns value="localhost" />        </identity>      </endpoint>      <endpoint address="http://localhost:8732/Operaciones" binding="wsHttpBinding"        bindingConfiguration="main5" contract="OperacionesReference.IBackendService"        name="main4">        <identity>          <dns value="localhost" />        </identity>      </endpoint>    </client>    <behaviors>      <endpointBehaviors>        <behavior name="ManagementServiceBehaviour">          <dataContractSerializer maxItemsInObjectGraph="2147483646"/>        </behavior>          <behavior name="restbehavior">          <webHttp/>        </behavior>      </endpointBehaviors>            <serviceBehaviors>        <behavior>          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false"/>          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->          <serviceDebug includeExceptionDetailInFaults="true"/>          <dataContractSerializer maxItemsInObjectGraph="2147483646"/>        </behavior>      </serviceBehaviors>    </behaviors>    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />  </system.serviceModel> <system.webServer>    <modules runAllManagedModulesForAllRequests="true"/>  </system.webServer>  <appSettings>    <!--Funcion Seguridad-->    <add key="user" value="USRSEG"/>    <add key="pass" value="usrseg"/>    <!--Ruta del Archivo Bindings-->    <add key="rutaArchivoBindings" value="D:\Discovery\Bindings.txt"/>        <!--Bindings Address-->    <add key="InterfacesWeb" value="ServiceAgents.InterfacesWeb"/>    <add key="Interface" value="ServiceAgents.Interfaces"/>    <add key="Comercios" value="ServiceAgents.Comercios"/>    <add key="Consultas" value="ServiceAgents.Consultas"/>    <add key="Operaciones" value="ServiceAgents.Operaciones"/>    <add key="Terminales" value="ServiceAgents.Terminales"/>        <!--Carga Masiva - Información de los servidores-->    <add key="NombreServidorWebOrigen" value="SERVIDORWEBORIGEN" />    <add key="NombreServidorLinuxBatch" value="SERVIDORLINUXBATCH" />    <!--Carga Archivo Cambios Masivos-->    <add key="CodigoProcesoCargaCambioMasivo" value="CMCM" />    <!--Sftp-->    <add key="SftpServidor" value="10.118.252.243" />    <add key="SftpPuerto" value="22" />    <add key="SftpUsuario" value="sgcidesa" />    <add key="SftpRutaArchivoDestino" value="/home/sgcidesa/file_in/" />    <add key="SftpRutaArchivoDescarga" value="/home/sgcidesa/file_out/" />        <add key="RutaArchivoOrigenCambiosMasivos" value="C:\FTPs\LocalUser\sgci\file_in\" />    <add key="RutaArchivoCargaCambiosMasivos" value="C:\FTPs\LocalUser\sgci\file_out\" />    </appSettings>  <secureSettings>    <add key="SftpPassword" value="desa" />  </secureSettings> </configuration>

This is the app.config of the client:

<?xml version="1.0" encoding="utf-8" ?><configuration>  <system.serviceModel>    <bindings>      <wsHttpBinding>        <binding name="InterfacesWeb" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:05:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">          <security mode="None" />        </binding>      </wsHttpBinding>    </bindings>    <client>      <endpoint address="http://localhost:1725/InterfacesWeb.svc" binding="wsHttpBinding"        bindingConfiguration="InterfacesWeb" contract="InterfaceServiceReference.IInterfacesWeb"        name="InterfacesWeb" />    </client>    <behaviors>      <endpointBehaviors>        <behavior name="ManagementServiceBehaviour">          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>                  </behavior>      </endpointBehaviors>    </behaviors>  </system.serviceModel></configuration>

This is the configuration of the reference:

image

I know that rest doesn't expose the metadata since it doesn't have WSDL.

The item does not exit in the project directory in "Service Reference"

$
0
0

Hi

I created a "Service Reference" to a WCF project, but I not sure why the wizard creates references with files which are not in the disk.

This is my example..

image

Web Service getting url and soap data - Design question

$
0
0

Hi

I'm currently updating an old (over 5 years) web Service (can't do much about the consumer side as that is fixated).

The Service has the following layout for one of its methods:

public string ServiceProc(string programName, string code, string requestcode, int datalength, short timeout)

Inside that method parts of the URL itself were decoded and include a user id and some other data (userId, nextUrl, Codepage).

Back then  WebService.Server.UrlDecode was used to decode the Url itself.

Now what I'm not so sure about is how it Looks These days. Do I still have to use those old design methods (and classes), or is there any way to use a more modern Approach like MVC 4 there?

(MVC I've seen for URL only things already, but in this case ist a bit of a mix between URL and Soap data Transfer, so I'm not sure if ist possible at all that way or not)

C# oasis Username token

$
0
0

Hello,

I,m working in a web service that need to use the oasis username token validation in the service header.

Our a service use SoapHeader  protocol but we need to chage it to use the oasis protocol.

Is there any example available that use the oasis that can be used as reference.

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd

Thanks

ASMX store username and password on Web.config

$
0
0

Hi there, 

My Web Service is connecting to another web service  which needs authentication. 

This is NOT a windows authentication, so I have hard coded the username and password at the moment. 

This is obviously not a good practice. 

How do I store the username and password for a proprietary system please ?

What section should I add to Web.config and how do I retrieve the data. 

Kind regards, 

Peter

How to create proxy when MEX and httpGetEnabled="false"

$
0
0

i read this post https://social.msdn.microsoft.com/Forums/vstudio/en-US/f13eb54c-19b9-43e1-ad70-adadbe463e9b/regarding-disable-mex-endpoints-wcf?forum=wcf

suppose for some reason i do not want to allow user to create proxy for my web site if they know the service endpoint.

so tell me what i need to distribute to my trusted client which they can use to interact my wcf service.

if possible please share a small application with code and config section.


How to implement digest auth for wcf proxy creation

$
0
0

is it possible when user try to create proxy then a digest related credentials window will appear. just like this image

i have read this post https://forums.asp.net/t/2110258.aspx if possible check how @Chris Zhao answer.

thanks

IIS Thread Usage for WCF and Db Connections

$
0
0
<div class="container"> <div class="body">

I am running a rest interface(using ApiController class) using the ASP.NET 4.6 and IIS 7.5.   The rest interfaces are making a WCF asynch call out to a web service to log all the incoming and outgoing request and response strings for tracking purposes.  The C# code is accessing an Oracle database using the ODP.net 4.112.3.0.

Under normal load everything works fine on the site in production.  However, when a huge spike in traffic comes (14k requests within 10 minutes) we start to see long response times from the initial request/response logging web service we have and then we see database timeouts.  The database team sees no connection issues on the db server.  I know the async logging WCF calls get pushed to the CLR threads to be run.  My question is are the threads in IIS that are being used to make the outbound wcf asynch web service call the same threads that are used to access the database and thus causing the database timeouts?  If so how can I determine what the max threads are on each machine and how to optimize the usage of the threads?

</div> </div>

Rest Services

$
0
0

Hi,

If we are using REST to create services what application architecture shall that be built in.

Would we built a 3 tier or n tier architecture. And what all would its be components.

Thanks 

WCF Web service Security error: "At least one security token in the message could not be validated"

$
0
0

Hello, 

I have this service to wich I,m trying to implement the   docs.oasis-open.org username token security. I modify my service file and now when I call it from a client it display the following error:

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">a:FailedAuthentication

At least one security token in the message could not be validated.

I suppose this error is because I do not have any logic to manage the token. Is there any example that explain how I can manage the token that is send to the service valide it and confirm it as good so then the service execute.

This is my service config:

<services>

      <service name = "WcfService1.Service1">

        <endpoint address="" binding="customBinding"

         bindingConfiguration="customBindingOasis" contract="WcfService1.IService1">

          <headers>

            <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

              <wsse:UsernameToken>

                <wsse:Username>USERNAME</wsse:Username>

                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD</wsse:Password>

              </wsse:UsernameToken>

            </wsse:Security>

          </headers>

       </endpoint>

      </service>

    </services>

    <bindings>

      <customBinding>

        <binding name ="customBindingOasis">

          <security authenticationMode="UserNameOverTransport" includeTimestamp="false"

              messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">

            <secureConversationBootstrap />

          </security>

          <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"

            messageVersion="Soap12" writeEncoding="utf-8">

            <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

              maxBytesPerRead="4096" maxNameTableCharCount="16384" />

          </textMessageEncoding>

          <httpsTransport manualAddressing="false" maxBufferPoolSize="524288"

            maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"

            bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

            keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"

            realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"

            useDefaultWebProxy="true" requireClientCertificate="false" />

        </binding>

      </customBinding>

  </bindings>

    <protocolMapping>

      <remove scheme ="https"/>

      <add binding="customBinding" scheme ="https"/>

    </protocolMapping>

web service asp.net

$
0
0

Hello,
a question :
Can I consume an asp.net web service with my PrestaShop platform?

thank you .

WCF hosted in WAS

$
0
0

Hello,

Can anyone provide a simple WCF sample for WCF service hosted in WAS, using named pipes, especially code for hosting application, but also basic examples for the interface and the implementation classes, project template type, and where should be place custom setting in the code, not in the web.cofing. The WAS sample on the MSDN site is very very unclear, primitive and incomprehensible and mostly they suggests the usage of some tool to generate the code. I do not want to use tool to generate my code. I want to write my own code with custom configuration on order to know what exactly it doing and why something happens. Thanks!

 

.

Methods of Wcf Rest are not found

$
0
0

Hi

I have an app which is publish in https: https://www.vnbackoffice.cert.com.pe/InterfacesWeb/InterfacesWeb.svc

But when I want access to the rest method I can not. The result is: HTTP ERROR 400. For example: https://www.vnbackoffice.cert.com.pe/InterfacesWeb/InterfacesWeb.svc/Rest/CRM_ConsultarCargosComercios/20161230/20171219/-1

It works fine with http: https://www.vnbackoffice.cert.com.pe/InterfacesWeb/InterfacesWeb.svc/Rest/CRM_ConsultarCargosComercios/20161230/20171219/-1

I am going to include the webconfig of the service:

<?xml version="1.0"?><configuration><configSections><section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /><section name="secureSettings" type="System.Configuration.NameValueSectionHandler" /></configSections><log4net><appender name="LogFileAppender" type="log4net.Appender.FileAppender"><param name="File" type="log4net.Util.PatternString" value="D:\Logs\Aplicaciones\VNInterfacesWeb\\Log_%property{LogName}.txt"/><appendToFile value="true" /><encoding value="utf-8" /><layout type="log4net.Layout.PatternLayout"><param name="ConversionPattern" value="%d [%t] %-5p %c %m%n"/></layout></appender><root><level value="ALL" /><appender-ref ref="LogFileAppender" /></root></log4net><system.web><compilation debug="true" targetFramework="4.0" /></system.web><system.serviceModel><services><service name="Ws.InterfacesWeb.InterfacesWeb"><endpoint address="" binding="wsHttpBinding" bindingConfiguration="InterfacesWeb.Binding"
                  name="InterfacesWeb" contract="Ws.InterfacesWeb.IInterfacesWeb"></endpoint><endpoint name ="RESTEndPoint"
                  contract ="Ws.InterfacesWeb.IInterfacesWebRest"
                  binding ="webHttpBinding"
                  address ="rest"
                  bindingConfiguration="InterfacesWebRest.Binding"
                  behaviorConfiguration ="restbehavior"/></service></services><bindings><webHttpBinding><binding name="InterfacesWebRest.Binding"
                 maxBufferPoolSize="2147483647"
                 maxReceivedMessageSize="4194304"><readerQuotas maxDepth="2147483647"
                        maxStringContentLength="2147483647"
                        maxArrayLength="2147483647"
                        maxBytesPerRead="2147483647"
                        maxNameTableCharCount="2147483647" /><security mode="None"><transport clientCredentialType="None" /></security></binding></webHttpBinding><wsHttpBinding><binding name="InterfacesWeb.Binding"
                 maxBufferPoolSize="2147483647"
                 maxReceivedMessageSize="2147483647"><readerQuotas maxDepth="2147483647"
                        maxStringContentLength="2147483647"
                        maxArrayLength="2147483647"
                        maxBytesPerRead="2147483647"
                        maxNameTableCharCount="2147483647" /><security mode="None"><transport clientCredentialType="None" /></security></binding><binding name="main" closeTimeout="00:20:00" openTimeout="00:20:00"
              receiveTimeout="00:20:00" sendTimeout="00:20:00" bypassProxyOnLocal="false"
              transactionFlow="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
              messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
              allowCookies="false"><readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
            maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /><reliableSession ordered="true" inactivityTimeout="00:20:00"
            enabled="false" /><security mode="None"><transport clientCredentialType="Windows" proxyCredentialType="None"
              realm="" /><message clientCredentialType="Windows" negotiateServiceCredential="true" /></security></binding><binding name="main1"><security mode="None" /></binding><binding name="main2"><security mode="None" /></binding><binding name="main3"><security mode="None" /></binding><binding name="main4"><security mode="None" /></binding><binding name="main5"><security mode="None" /></binding></wsHttpBinding></bindings><client><endpoint behaviorConfiguration="ManagementServiceBehaviour"
        binding="wsHttpBinding" bindingConfiguration="main" contract="ComerciosReference.IBackendService"
        name="ComerciosWSHttpBinding_IBackendService"><identity><dns value="localhost" /></identity></endpoint><endpoint behaviorConfiguration="ManagementServiceBehaviour"
        binding="wsHttpBinding" bindingConfiguration="main" contract="TerminalesReference.IBackendService"
        name="TerminalesWSHttpBinding_IBackendService"><identity><dns value="localhost" /></identity></endpoint><endpoint behaviorConfiguration="ManagementServiceBehaviour"
        binding="wsHttpBinding" bindingConfiguration="main" contract="OperacionesReference.IBackendService"
        name="OperacionesWSHttpBinding_IBackendService"><identity><dns value="localhost" /></identity></endpoint><endpoint behaviorConfiguration="ManagementServiceBehaviour"
        binding="wsHttpBinding" bindingConfiguration="main" contract="ConsultasReference.IBackendService"
        name="ConsultasWSHttpBinding_IBackendService"><identity><dns value="localhost" /></identity></endpoint><endpoint behaviorConfiguration="ManagementServiceBehaviour"
        binding="wsHttpBinding" bindingConfiguration="main" contract="InterfacesWebReference.IBackendService"
        name="InterfacesWebWSHttpBinding_IBackendService"><identity><dns value="localhost" /></identity></endpoint><endpoint behaviorConfiguration="ManagementServiceBehaviour"
        binding="wsHttpBinding" bindingConfiguration="main" contract="InterfaceReference.IBackendService"
        name="InterfaceWSHttpBinding_IBackendService"><identity><dns value="localhost" /></identity></endpoint><endpoint address="http://localhost:8732/Terminales" binding="wsHttpBinding"
        bindingConfiguration="main1" contract="TerminalesReference.IBackendService"
        name="main"><identity><dns value="localhost" /></identity></endpoint><endpoint address="http://localhost/Interfaces" binding="wsHttpBinding"
        bindingConfiguration="main2" contract="InterfaceReference.IBackendService"
        name="main1"><identity><dns value="localhost" /></identity></endpoint><endpoint address="http://localhost:8732/Operaciones" binding="wsHttpBinding"
        bindingConfiguration="main5" contract="OperacionesReference.IBackendService"
        name="main4"><identity><dns value="localhost" /></identity></endpoint><endpoint address="http://localhost:8732/InterfacesWeb" binding="wsHttpBinding"
        bindingConfiguration="main4" contract="InterfacesWebReference.IBackendService"
        name="main3"><identity><dns value="localhost" /></identity></endpoint><endpoint address="http://localhost:8732/Comercios" binding="wsHttpBinding"
        bindingConfiguration="main3" contract="ComerciosReference.IBackendService"
        name="main2"><identity><dns value="localhost" /></identity></endpoint></client><behaviors><endpointBehaviors><behavior name="ManagementServiceBehaviour"><dataContractSerializer maxItemsInObjectGraph="2147483646"/></behavior><behavior name="restbehavior"><webHttp/></behavior></endpointBehaviors><serviceBehaviors><behavior><!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --><serviceMetadata httpGetEnabled="true" httpsGetEnabled="false"/><!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --><serviceDebug includeExceptionDetailInFaults="true"/><dataContractSerializer maxItemsInObjectGraph="2147483646"/></behavior></serviceBehaviors></behaviors><serviceHostingEnvironment multipleSiteBindingsEnabled="true" /></system.serviceModel><system.webServer><modules runAllManagedModulesForAllRequests="true"/></system.webServer><appSettings><!--Funcion Seguridad--><add key="user" value="USRSEG"/><add key="pass" value="usrseg"/><!--Ruta del Archivo Bindings--><add key="rutaArchivoBindings" value="D:\Discovery\Bindings.txt"/><!--Bindings Address--><add key="InterfacesWeb" value="ServiceAgents.InterfacesWeb"/><add key="Interface" value="ServiceAgents.Interfaces"/><add key="Comercios" value="ServiceAgents.Comercios"/><add key="Consultas" value="ServiceAgents.Consultas"/><add key="Operaciones" value="ServiceAgents.Operaciones"/><add key="Terminales" value="ServiceAgents.Terminales"/><!--Carga Masiva - Información de los servidores--><add key="NombreServidorWebOrigen" value="SERVIDORWEBORIGEN" /><add key="NombreServidorLinuxBatch" value="SERVIDORLINUXBATCH" /><!--Carga Archivo Cambios Masivos--><add key="CodigoProcesoCargaCambioMasivo" value="CMCM" /><!--Sftp--><add key="SftpServidor" value="10.118.252.243" /><add key="SftpPuerto" value="22" /><add key="SftpUsuario" value="sgcidesa" /><add key="SftpRutaArchivoDestino" value="/home/sgcidesa/file_in/" /><add key="SftpRutaArchivoDescarga" value="/home/sgcidesa/file_out/" /><add key="RutaArchivoOrigenCambiosMasivos" value="C:\FTPs\LocalUser\sgci\file_in\" /><add key="RutaArchivoCargaCambiosMasivos" value="C:\FTPs\LocalUser\sgci\file_out\" /></appSettings><secureSettings><add key="SftpPassword" value="desa" /></secureSettings></configuration>

 


Configure WCF service hosted in WAS in code

$
0
0

How should this error being understanding? What is wrong?

The protocol 'net.pipe' is not supported.

Is it possible to configure a WCF service in the code behind instead in the web.config.?

the code is:

 public static void Configure(ServiceConfiguration config)

        {

            ExeConfigurationFileMap cfMap;

            cfMap = new ExeConfigurationFileMap() { ExeConfigFilename = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "web.config") };

            var cf = ConfigurationManager.OpenMappedExeConfiguration(cfMap, ConfigurationUserLevel.None);

            config.LoadFromConfiguration(cf);

            config.EnableProtocol(new NetNamedPipeBinding(NetNamedPipeSecurityMode.None));

            Binding wsBinding = new WSHttpBinding();

            Binding npBinding = new NetNamedPipeBinding();

            config.AddServiceEndpoint(typeof(IBTPPSvc), wsBinding, "http://localhost/SomeDirectory/Service1");

            config.AddServiceEndpoint(typeof(IBTPPSvc), npBinding, "net.pipe://localhost/SomeDirectory/Service1");

}

How to log all web services requests & responses in XML file or database table (XML Format)

$
0
0

Hi,

I am looking for code snippet for the below requirement. Kindly help me on this.

 How to log all web services requests & responses in XML file or database table (XML Format) using ASP.NET C#

Integration using web services

$
0
0

I have main system, and 6 other systems.

the 6 systems need to inquire info from the main system. and write info to the main system.

so how many web services required to do that. and how i can determine what the type of the required web service WCF or REST?

another question what is the requirements in all systems to do integration ? backend? front end?

i am appreciate your help ! 

Web Service deployment

$
0
0

Can anyone recommend a Web Service Deployment (non Azure, WCF just a standard Web service) tutorial for .Net Framework 4.5 in VS?  I looked around on Google but I couldn't seem to find what I wanted. Thanks.

Cannot Publish Web Service

$
0
0

I am, for the first time, trying to Publish my
Web Service to IIS. I am using VS2015.

On the first Publish entry screen, I filled out:

Publish method: Web Deploy
Server: USER\SQLEXPRESS
Site name: WebServiceTest2 (the name of the project)
User name: dave
Password: ********
Destination URL: http://localhost:58079/WebServiceTest2

On another page, I entered "Data Source=USER\SQLEXPRESS;User ID=User\David;Password=********" for ApplicationDbContext


When I hit the Validate Connection button, I get the error that "Invalid URI, the hostname
could not be parsed".

Can anyone help?

Viewing all 555 articles
Browse latest View live


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