none
this Operation is not supported in WCF Test Client

    Question

  • Hello,

     Actually i implemented WCF service in IIS Host

    Using WCF Test Client tool I get this error: "this Operation is not supported in WCF Test Client".

    http://desbiz:49615/GestionProvision.svc

    Using wsdl in IExplorer all is ok.

    http://desbiz:49615/GestionProvision.svc?wsdl


    The contract is:

    namespace

     

    Security.Provision.ServiceContracts.Interfaces

    {

    [

    ServiceContract(Namespace = "http://Security.Provision")]

     

    public interface IProvision

    {

    [

    OperationContract]

     

    RespuestaProvision CrearUsuario(PeticionUsuarioProvision peticion);

    [

    OperationContract]

     

    RespuestaProvision ModificarUsuario(PeticionUsuarioProvision peticion);

    [

    OperationContract]

     

    RespuestaProvision BajaUsuario(PeticionUsuarioProvision peticion);

    [

    OperationContract]

     

    RespuestaProvision HabilitarDeshabilitarUsuario(PeticionUsuarioProvision peticion);

    [

    OperationContract]

     

    RespuestaProvision SavePuestoTipo(PeticionPuestoTipoProvision peticion);

    [

    OperationContract]

     

    RespuestaObtenerEmpleado GetEmpleado(PeticionUsuarioProvision peticion);

    }

    }




    May i know the reason.

    Thanks in advance.

    Regards,
    Monday, February 22, 2010 10:27 AM

Answers

  • Hi,

    The Exception type cannot be serialized, you may encounter the error even create proxy to access the service.
    One solution would be creating entity to store exception information.

    Thanks,
    Mog Liang
    • Marked as answer by Mog Liang Monday, March 01, 2010 1:03 AM
    Wednesday, February 24, 2010 2:56 AM

All replies

  • Hi,

    The following is a list of features not supported by WCF Test Client:

    Are you using any one of these?

    Regards
    Dnana

    Monday, February 22, 2010 10:48 AM
  • Hi all,

    I think haven't those features of your list.

    In my DataContracts  I have System.Exception type, and enumerations.


    [

    DataContract(Namespace = "http://Security.Provision")]

     

    public class MensajeError

    {

    [DataMember(Order = 0)]

     

    public string Codigo { get; set; }

     

    [DataMember(Order = 1)]

     

    public string Mensaje { get; set; }

    [

    DataMember(Order = 2)]

     

    public Exception InnerException { get; set; }

    }

    and enumerations


    [

    DataContract(Namespace = "http://Security.Provision")]

     

    public enum TipoUsuario

    {

    [

    EnumMember]

    Neutral = 0,

    [

    EnumMember]

    Empleado = 1,

     

    [

    EnumMember]

    EmpleadoExterno = 2,

     

    [

    EnumMember]

    Colaborador = 3,

     

    [

    EnumMember]

    EntidadExterna = 4

    }

    and the following config:


    <

     

    services>

    <

     

    service behaviorConfiguration="GestionProvisionBehavior" name="Security.Provision.Host.GestionProvision">

    <

     

    endpoint address="" binding="wsHttpBinding" bindingNamespace=http://Security.Provision

     

     

    bindingConfiguration="wsHttpBinding_IProvision"

     

     

    contract="Security.Provision.ServiceContracts.Interfaces.IProvision">

    <

     

    identity>

    <

     

    dns value="localhost" />

    </

     

    identity>

    </

     

    endpoint>

    <

     

    endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

    </

     

    service>

     

    </

     

    services>

     

     



    <

     

    bindings>

     

    <

     

    wsHttpBinding>

    <

     

    binding name="wsHttpBinding_IProvision" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">

    <

     

    readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" />

    <

     

    reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />

    <

     

    security mode="Message">

    <

     

    transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />

    <

     

    message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />

    </

     

    security>

    </

     

    binding>

     </

     

    wsHttpBinding>

    <behaviors>

    <

     

    serviceBehaviors>

    <

     

    behavior name="GestionProvisionBehavior">

    <

     

    serviceMetadata httpGetEnabled="true"/>

    <

     

    serviceDebug includeExceptionDetailInFaults="true"/>

    <

     

    dataContractSerializer/>

     

    </

     

    behavior>

    </

     

    serviceBehaviors>

    </

     

    behaviors>

     

     



    Thanks in advanced

    Monday, February 22, 2010 11:10 AM
  • Hi,

    The tool has some drawbacks. the best thing I suggest is you can create a sample console client and test the service methods.

    Regards
    Dnana
    Monday, February 22, 2010 11:50 AM
  • Hi,

    The Exception type cannot be serialized, you may encounter the error even create proxy to access the service.
    One solution would be creating entity to store exception information.

    Thanks,
    Mog Liang
    • Marked as answer by Mog Liang Monday, March 01, 2010 1:03 AM
    Wednesday, February 24, 2010 2:56 AM