Add Web Reference

Hi All,

There is a web service ( ) they ask me that web service should be described with "Add Web Reference" from VS and it uses HTTPS instead of HTTP. Is that possible with AX and if yes how?

No Data
Reply Children
  • I could create service with "Add Web Reference", but (BTW WSDL address not at upper here, this; ). 

    There were SorguPortTypeClient and I was using that:

    clientType = CLRInterop::getType("PTT.PTTservice.SorguPortTypeClient");

    but it isn't show anymore and I tried to use like:

    clientType = CLRInterop::getType("");

    and gives error:

    System.InvalidOperationException: Type is not a service client. It does not implement a service contract.

    I supposed using this type of web services should be different but how?

    My code:

    CLRObject clientType;[] dngList = new[1](); dng = new; service; input = new; gnd = new; output;
    str st;
    System.Exception ex;

    str outResult;
    String10 outflag,errorNum;
    smmParametersTable smmParametersTable = smmParametersTable::find();
    System.Int64 i;

    System.Type nullableType = System.Type::GetType('System.Nullable`1[System.Int32]');
    System.Object decimalValue;
    System.Object[] paramValues = new System.Object[1]();
    CLRObject nullableValue;

    new InteropPermission(InteropKind::ClrInterop).assert();

    // clientType = CLRInterop::getType("");
    clientType = CLRInterop::getType("");

    service = AifUtil::createServiceClient(clientType);