Dynamic Web Service Problem

Last post 11-22-2008, 10:23 AM by Bob. 1 replies.
Sort Posts: Previous Next
  •  11-20-2008, 7:54 AM 27363

    Dynamic Web Service Problem

    We use the dynamic web service to connect to several different data sources.  We have discovered a very strange issue.

     When running one of the services, I will receive this error:
    Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown

    If I go into K2 workspace and edit the service and save it, then the error goes away.  However, this breaks another one of the web services.  If I edit that one, then it works but breaks the first one.  It just seems these two services interfere with each other.

    Has anyone else seen this?

     


    Dave Mathis, Mustang Engineering
    MCT Sharepoint Admin, MCSE
  •  11-22-2008, 10:23 AM 27401 in reply to 27363

    Re: Dynamic Web Service Problem

    Hi Dave.

    This sounds a lot like the issue discussed on page 14 of this "How to write a service broker" tech arcticle (http://www.k2underground.com/files/folders/technical_product_documents/entry21898.aspx):

    "Important update August 14th, 2008: The previous version of this article included code that would not function correctly under load. In these circumstances, because the original version of this service broker example used static classes, service instances would share configuration data. If you based your Service Object on this prior example, please go back and use the approach taken here with a new property on the DataAccess class called "Binder" which enables the connector information to be bound to the service broker information. Other classes in this solution then use that binder property to retrieve connector information on a per instance basis that will perform as expected under load. "

    You might try checking the source code for this service broker to see if this applies.


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
View as RSS news feed in XML