WCF Service and Collections

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Giorgio Parmeggiani

    WCF Service and Collections

    Hi

    I am using the svcutil parameter: /ct to obtain IBindingList from WCF
    Service.
    I can exclude some collection or some WCF service methods from this
    conversion? I have some strongly typed custom collections, which are
    serializable, and I want, sometime, to use my custom collection, not
    IBindingList.

    Thank in advance
    Giorgio


  • Steven Cheng [MSFT]

    #2
    RE: WCF Service and Collections

    Hi Grorgio,

    From your description, I think what you need to do is something like
    sharing a colleciton type (used in your WCF service) between client and
    service rather than let svctuil autogenerated proxy type, correct?

    Based on my research, for specifying custom collection types in your own
    assemblies for WCF service, when creating the proxy, you need to supply
    both

    /ct:[ collection type name]

    and

    /reference:[assembly of shared type]

    Thus, the svcutil will use the specified type in the shared assembly
    instead of generating its own proxy type. Here is a good web article
    introducing this:

    #Sharing WCF Collection Types between Service and Client


    Sincerely,

    Steven Cheng

    Microsoft MSDN Online Support Lead


    Delighting our customers is our #1 priority. We welcome your comments and
    suggestions about how we can improve the support we provide to you. Please
    feel free to let my manager know what you think of the level of service
    provided. You can send feedback directly to my manager at:
    msdnmg@microsof t.com.

    =============== =============== =============== =====
    Get notification to my posts through email? Please refer to
    Gain technical skills through documentation and training, earn certifications and connect with the community

    ications.

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscripti...t/default.aspx.
    =============== =============== =============== =====
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    Reply-To: "Giorgio Parmeggiani" <gipasoft@tisca li.it>
    From: "Giorgio Parmeggiani" <gparmeggiani@n ewsgroup.nospam >
    Subject: WCF Service and Collections
    Date: Sun, 13 Apr 2008 23:45:17 +0200
    Lines: 2


    Hi

    I am using the svcutil parameter: /ct to obtain IBindingList from WCF
    Service.
    I can exclude some collection or some WCF service methods from this
    conversion? I have some strongly typed custom collections, which are
    serializable, and I want, sometime, to use my custom collection, not
    IBindingList.

    Thank in advance
    Giorgio



    Comment

    • Steven Cheng [MSFT]

      #3
      RE: WCF Service and Collections

      Hi Giorgio,

      Have you got any further ideas on this issue or does the info in my last
      reply help some?

      Sincerely,

      Steven Cheng

      Microsoft MSDN Online Support Lead


      Delighting our customers is our #1 priority. We welcome your comments and
      suggestions about how we can improve the support we provide to you. Please
      feel free to let my manager know what you think of the level of service
      provided. You can send feedback directly to my manager at:
      msdnmg@microsof t.com.

      =============== =============== =============== =====
      Get notification to my posts through email? Please refer to
      Gain technical skills through documentation and training, earn certifications and connect with the community

      ications.

      This posting is provided "AS IS" with no warranties, and confers no rights.

      --------------------
      From: stcheng@online. microsoft.com (Steven Cheng [MSFT])
      Organization: Microsoft
      Date: Mon, 14 Apr 2008 05:57:53 GMT
      Subject: RE: WCF Service and Collections


      Hi Grorgio,

      From your description, I think what you need to do is something like
      sharing a colleciton type (used in your WCF service) between client and
      service rather than let svctuil autogenerated proxy type, correct?

      Based on my research, for specifying custom collection types in your own
      assemblies for WCF service, when creating the proxy, you need to supply
      both

      /ct:[ collection type name]

      and

      /reference:[assembly of shared type]

      Thus, the svcutil will use the specified type in the shared assembly
      instead of generating its own proxy type. Here is a good web article
      introducing this:

      #Sharing WCF Collection Types between Service and Client


      Sincerely,

      Steven Cheng

      Microsoft MSDN Online Support Lead


      Delighting our customers is our #1 priority. We welcome your comments and
      suggestions about how we can improve the support we provide to you. Please
      feel free to let my manager know what you think of the level of service
      provided. You can send feedback directly to my manager at:
      msdnmg@microsof t.com.

      =============== =============== =============== =====
      Get notification to my posts through email? Please refer to
      Gain technical skills through documentation and training, earn certifications and connect with the community

      ications.

      Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
      where an initial response from the community or a Microsoft Support
      Engineer within 1 business day is acceptable. Please note that each follow
      up response may take approximately 2 business days as the support
      professional working with you may need further investigation to reach the
      most efficient resolution. The offering is not appropriate for situations
      that require urgent, real-time or phone-based interactions or complex
      project analysis and dump analysis issues. Issues of this nature are best
      handled working with a dedicated Microsoft Support Engineer by contacting
      Microsoft Customer Support Services (CSS) at
      http://msdn.microsoft.com/subscripti...t/default.aspx.
      =============== =============== =============== =====
      This posting is provided "AS IS" with no warranties, and confers no rights.

      --------------------
      Reply-To: "Giorgio Parmeggiani" <gipasoft@tisca li.it>
      From: "Giorgio Parmeggiani" <gparmeggiani@n ewsgroup.nospam >
      Subject: WCF Service and Collections
      Date: Sun, 13 Apr 2008 23:45:17 +0200
      Lines: 2


      Hi

      I am using the svcutil parameter: /ct to obtain IBindingList from WCF
      Service.
      I can exclude some collection or some WCF service methods from this
      conversion? I have some strongly typed custom collections, which are
      serializable, and I want, sometime, to use my custom collection, not
      IBindingList.

      Thank in advance
      Giorgio





      Comment

      • Giorgio Parmeggiani

        #4
        Re: WCF Service and Collections

        Thank for your reply.

        I have seen your message today, I try your suggestion and then I reply.

        Thanks

        "Steven Cheng [MSFT]" <stcheng@online .microsoft.comh a scritto nel
        messaggio news:zWypwD7nIH A.9016@TK2MSFTN GHUB02.phx.gbl. ..
        Hi Giorgio,
        >
        Have you got any further ideas on this issue or does the info in my last
        reply help some?
        >
        Sincerely,
        >
        Steven Cheng
        >
        Microsoft MSDN Online Support Lead
        >
        >
        Delighting our customers is our #1 priority. We welcome your comments and
        suggestions about how we can improve the support we provide to you. Please
        feel free to let my manager know what you think of the level of service
        provided. You can send feedback directly to my manager at:
        msdnmg@microsof t.com.
        >
        =============== =============== =============== =====
        Get notification to my posts through email? Please refer to
        Gain technical skills through documentation and training, earn certifications and connect with the community

        ications.
        >
        This posting is provided "AS IS" with no warranties, and confers no
        rights.
        >
        --------------------
        From: stcheng@online. microsoft.com (Steven Cheng [MSFT])
        Organization: Microsoft
        Date: Mon, 14 Apr 2008 05:57:53 GMT
        Subject: RE: WCF Service and Collections
        >
        >
        Hi Grorgio,
        >
        From your description, I think what you need to do is something like
        sharing a colleciton type (used in your WCF service) between client and
        service rather than let svctuil autogenerated proxy type, correct?
        >
        Based on my research, for specifying custom collection types in your own
        assemblies for WCF service, when creating the proxy, you need to supply
        both
        >
        /ct:[ collection type name]
        >
        and
        >
        /reference:[assembly of shared type]
        >
        Thus, the svcutil will use the specified type in the shared assembly
        instead of generating its own proxy type. Here is a good web article
        introducing this:
        >
        #Sharing WCF Collection Types between Service and Client

        >
        Sincerely,
        >
        Steven Cheng
        >
        Microsoft MSDN Online Support Lead
        >
        >
        Delighting our customers is our #1 priority. We welcome your comments and
        suggestions about how we can improve the support we provide to you. Please
        feel free to let my manager know what you think of the level of service
        provided. You can send feedback directly to my manager at:
        msdnmg@microsof t.com.
        >
        =============== =============== =============== =====
        Get notification to my posts through email? Please refer to
        Gain technical skills through documentation and training, earn certifications and connect with the community

        ications.
        >
        Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
        where an initial response from the community or a Microsoft Support
        Engineer within 1 business day is acceptable. Please note that each follow
        up response may take approximately 2 business days as the support
        professional working with you may need further investigation to reach the
        most efficient resolution. The offering is not appropriate for situations
        that require urgent, real-time or phone-based interactions or complex
        project analysis and dump analysis issues. Issues of this nature are best
        handled working with a dedicated Microsoft Support Engineer by contacting
        Microsoft Customer Support Services (CSS) at
        http://msdn.microsoft.com/subscripti...t/default.aspx.
        =============== =============== =============== =====
        This posting is provided "AS IS" with no warranties, and confers no
        rights.
        >
        --------------------
        Reply-To: "Giorgio Parmeggiani" <gipasoft@tisca li.it>
        From: "Giorgio Parmeggiani" <gparmeggiani@n ewsgroup.nospam >
        Subject: WCF Service and Collections
        Date: Sun, 13 Apr 2008 23:45:17 +0200
        Lines: 2
        >
        >
        Hi
        >
        I am using the svcutil parameter: /ct to obtain IBindingList from WCF
        Service.
        I can exclude some collection or some WCF service methods from this
        conversion? I have some strongly typed custom collections, which are
        serializable, and I want, sometime, to use my custom collection, not
        IBindingList.
        >
        Thank in advance
        Giorgio
        >
        >
        >
        >
        >

        Comment

        • Steven Cheng [MSFT]

          #5
          Re: WCF Service and Collections

          Thanks for your reply Giorgio,

          Looking forward to your good news.

          Sincerely,

          Steven Cheng

          Microsoft MSDN Online Support Lead


          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.

          =============== =============== =============== =====
          Get notification to my posts through email? Please refer to
          Gain technical skills through documentation and training, earn certifications and connect with the community

          ications.

          =============== =============== =============== =====
          This posting is provided "AS IS" with no warranties, and confers no rights.

          --------------------
          Reply-To: "Giorgio Parmeggiani" <gipasoft@tisca li.it>
          From: "Giorgio Parmeggiani" <gparmeggiani@n ewsgroup.nospam >
          Subject: Re: WCF Service and Collections
          Date: Wed, 16 Apr 2008 13:11:27 +0200


          Thank for your reply.

          I have seen your message today, I try your suggestion and then I reply.

          Thanks

          "Steven Cheng [MSFT]" <stcheng@online .microsoft.comh a scritto nel
          messaggio news:zWypwD7nIH A.9016@TK2MSFTN GHUB02.phx.gbl. ..
          Hi Giorgio,
          >
          Have you got any further ideas on this issue or does the info in my last
          reply help some?
          >
          Sincerely,
          >
          Steven Cheng
          >
          Microsoft MSDN Online Support Lead
          >
          >
          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.
          >
          =============== =============== =============== =====
          Get notification to my posts through email? Please refer to
          >
          http://msdn.microsoft.com/subscripti...ult.aspx#notif
          ications.
          >
          This posting is provided "AS IS" with no warranties, and confers no
          rights.
          >
          --------------------
          From: stcheng@online. microsoft.com (Steven Cheng [MSFT])
          Organization: Microsoft
          Date: Mon, 14 Apr 2008 05:57:53 GMT
          Subject: RE: WCF Service and Collections
          >
          >

          Comment

          Working...