• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

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.

Getting Started - Admin

Latest Posts

Members Online Now

Forum statistics

Threads
141,622
Messages
748,858
Members
144,737
Latest member
damiano giannini
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.