Webservice invoke error

Status
Not open for further replies.

markv

Joined
Sep 17, 2012
Messages
9
Reaction score
0
Hi!

I have defined a webservice to return "1" (string) when a disruption is active. The URL is okay, webservice is working correctly on itself and I have used the recommended http put/get settings in the web.config file 'protols' section.

The methodName is 'IsDisruptionActive' and it will return a string as indication.

In the IvrServer.Log file I see this error with a - 500 error.

19:11:15.338|2532|(0):Error! Module '3CX.com.OSBinet'. Error ID 219. URLhttp://localhost:5000/ivr/(S(zxd1eeksk4cvizu2q1go2yg3))/NedFox_Debug_13/Main_MF_webServicesInteractionComponent1_DoIt.aspx?parameterCount=2&parameterName_0=userName&parameterName_1=password&parameterValue_0=user&parameterValue_1=pass&uri=http%3A%2F%2Fdev.eservices.nedfox.net%2Fpabxcomponents.asmx&webServiceName=IsDisruptionActiveMethodGETError-500
19:11:15.338|2532|(0):Error! Module '3CX.com.OSBinet'. Error ID 204. rc2
19:11:15.338|2532|(0):Error! Module '3CX.com.vxi'. Error ID 203. uriMain_MF_webServicesInteractionComponent1_DoIt.aspx

Can anyone help me what I am doing wrong...? Also the trace file does not give (me) information what's wrong...

Greets,
Mark.
 
In addition to my previous question, in the windows eventlog I found this row:

Exception information:
Exception type: HttpCompileException
Exception message: c:\ProgramData\3CX\Data\Http\Interface\ivr\NedFox_Debug_26\Main_MF_webServicesInteractionComponent1_DoIt.aspx(42): error CS0103: The name 'CompilerHelper' does not exist in the current context

And that's correct, there is also a link in the eventviewer which can be executed:

http://localhost:5000/ivr/NedFox_Debug_26/Main_MF_webServicesInteractionComponent1_DoIt.aspx?parameterCount=2&parameterName_0=userName&parameterName_1=password&parameterValue_0=mark&parameterValue_1=testtest&uri=http://dev.eservices.nedfox.net/pabxcomponents.asmx&webServiceName=IsDisruptionActive

That link will result in a compilation error:

Line 40: if (!String.IsNullOrEmpty(xml))
Line 41: {
Line 42: XmlDocument xmlDocument = CompilerHelper.CreateXmlDocument();
Line 43: xmlDocument.LoadXml(sanitizeXmlString(xml));
Line 44:


So where is the CompilerHelper function....?

Greets,
Mark.
 
By replacing the CompilerHelper in line 42 to new XmlDocument() this problem is solved. So looks like a bug or perhaps VAD is too old (although the last public version available from 3cx). I have to replace this now after every deployment...

Greets,
Mark.
 
Hi Mark,

It seems it is a bug in the latest version of the VAD. We'll make the fix. Meanwhile, you will need to make that change in the compilation output. Sorry about the inconvenience.

Regards,
 
Status
Not open for further replies.

Forum statistics

Threads
112,320
Messages
591,878
Members
165,466
Latest member
EMMEPICASA