[Mono-list] Webservice problem

Bryan Lee bryan at bryan.sg
Thu Mar 16 12:33:52 EST 2006


Hi,

not sure if any1 here can help me. i installed a webservice to
do some tests on

http://203.81.56.66/test/test/MyService.asmx

run: execute | test form | invoke

it tells me:

The remote server returned an error: (500) Internal Server Error.
Could not find file "/usr/lib/xsp/test\new.Maestro".

Where do i change this to fix the path?

this is myservice.cs:

namespace Default {
    using System;
    using System.IO;
    using Decisio.Orchestration;
    using Decisio.Orchestration.Data;
    using Decisio.Orchestration.Models.Decision;
    using System.Web.Services;

    public class MyService : System.Web.Services.WebService {

        static DecisionExecutionEngine engine;

        [WebMethod()]
        public virtual void Execute(string Subject, string PersonName) {
            Decisio.Orchestration.Data.OrchestrationData data = new 
Decisio.Orchestration.Data.OrchestrationData();
            data["Subject"] = Subject;
            data["PersonName"] = PersonName;
            DecisionExecutionEngine engine = GetEngine();
            engine.Start(data);
        }

        public virtual DecisionExecutionEngine GetEngine() {
            if(engine==null)
 {
 lock(this)
 {
 if(engine==null)
 {
        // engine = new DecisionExecutionEngine(new 
FileInfo(AppDomain.CurrentDomain.BaseDirectory + "new.Maestro"));
     engine = new DecisionExecutionEngine(new 
FileInfo(System.IO.Path.GetDirectoryName (Request.PhysicalPath) + 
"new.Maestro"));
 }
 }
 }
 return engine;
        }
    }
}



More information about the Mono-list mailing list