none
WCF Divide WSDL By Operation Based RRS feed

  • Question

  • I have one WCFServiceOperation which has n different Operations.Is it possible to get single operation wsdl

    WCFServiceOpearation-->MyOperation 1,MyOperation2,MyOperation3

    when I get WCFServiceOperation.svc this time I get all them ,what I want that

    something like that WCFServiceOperation.svc?op=MyOperation2 that time my wsdl only includes MyOperation2 .

    how can modify wsdl creation?

    Thursday, October 5, 2017 6:58 AM

All replies

  • Hi Bilgehan YILDIZ,

    Welcome to the MSDN forum.

    Refer to your description, your issue is about the WCF development. Since our forum is to discuss the VS IDE, I will help you move this thread to the appropriate forum to seek for a more professional support, thank you for your understanding.

    Best regards,

    Sara


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, October 6, 2017 1:57 AM
  • Hi Bilgehan,

    In my option, we could expose specific operation to client by WSDL Export Extension.

    # WCF Extensibility – WSDL Export Extension

    https://blogs.msdn.microsoft.com/carlosfigueira/2011/10/05/wcf-extensibility-wsdl-export-extension/

    But, I am afraid it is impossible to return different wsdl by changing wsdl address. This is limited by wcf.

    I would suggest you expose multiple WSDL files, and then return different wsdl according the request url.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, October 6, 2017 7:16 AM