" /> WebService block in Compoer - got Http 500 error (bad fetch) - Genesys CTI User Forum

Author Topic: WebService block in Compoer - got Http 500 error (bad fetch)  (Read 6322 times)

Offline CTI-traveller

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
WebService block in Compoer - got Http 500 error (bad fetch)
« on: November 08, 2010, 04:07:18 PM »
Advertisement
Hi All,

I 'm using composer version 8.03 and inside my call flow, I used web service block to call web service. When I tested with web service explorer in composer, it works. But  when I run call flow, i got bad fetch error and inside MCP log, I saw http 500 error.
There is no proxy in the server which web service is located. And my vxml file and webservice is located on the same server. And also I can call this web services from browser. Any idea are appreciate. thanks.

Regards,
CTIT

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: WebService block in Compoer - got Http 500 error (bad fetch)
« Reply #1 on: November 10, 2010, 12:08:17 PM »
Hi,

Your issue may be caused by missing library or wrong version of a library that is required by the code generated by Composer. It would be good to check web server log and find out more details about HTTP 500 error.

R.

Offline CTI-traveller

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Re: WebService block in Compoer - got Http 500 error (bad fetch)
« Reply #2 on: November 11, 2010, 04:06:03 PM »
Hi R,

Thanks for the reply. I find out the exception in event viewer.

Exception :[color=red] HttpCompileException
Exception message : C:\inetpub\wwwroot\WebServiceTest\include\getWebServiceData.aspx(7);error CS0246: The type or namespace name
'NewtonSoft' could not be found(are you missing a using directive or an assembly reference?)[/color]

At line 7 in my call flow, there is import declarative for Newtonsoft.json as follow.
[color=red]<%@ Import Namespace="Newtonsoft.Json" %>[/color]

Let me explore the layout of my servers and call flow. The composer is located in server-A. There is no IIS.
After validation and generate code, I export the call flow as mention in composer 8.03Help. Then copy this exported folder to server-B.
MCP and IIS7 are there. I created virtual directory in IIS and pointed to the folder(i.e. exported call flow folder)
And Newtonsoft.Json.dll is inside bin folder.  But what I suspect is Genesys recommend to install IIS for composer but in my server-A, there is no IIS. So the call flow is not compile properly and it make the exception. Am I right?
Or if you see there is other hypothesis, please let me know.

Thanks,
CN

Offline CTI-traveller

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Re: WebService block in Compoer - got Http 500 error (bad fetch)
« Reply #3 on: November 16, 2010, 04:13:43 PM »
Hi All,

Any opinion??  Someone encountered before??


Regards,
CN

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: WebService block in Compoer - got Http 500 error (bad fetch)
« Reply #4 on: November 16, 2010, 05:01:21 PM »
Hi CN,

It seems the documentation is wrong as it's necessary to add Composer's project to IIS as new application instead of virtual directory.

R.