" /> Help needed in webservice - Genesys CTI User Forum

Author Topic: Help needed in webservice  (Read 12082 times)

Raj

  • Guest
Help needed in webservice
« on: May 13, 2009, 09:46:49 AM »
Advertisement
Hi All,

Can any one suggest me how to debug my URS strategy that using web service.

I am getting 0001: Unknown error in URS log file after accessing the webservice.

I am not getting anything in http log file and xml log file is not creating.

How to approach at this point.


Thanks and regards,
Raj




Offline bogdan

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 0
Re: Help needed in webservice
« Reply #1 on: May 13, 2009, 10:08:03 AM »
  • Best Answer
  • Hope you're using 7.6 URS (or later :P), with the 7.2 I couldn't get it running so I needed to upgrade.

    I hope you've created a web (section name in urs option tab) and declared http_log_file, http_port, xml_log_file, parser_log_file (the first 2 I think they are mandatory)

    Please post snipps from log file.

    And after each modification pls restart the URS Server, otherwise it will not work - even if in the documentation says that you don't need :)

    Offline bogdan

    • Jr. Member
    • **
    • Posts: 94
    • Karma: 0
    Re: Help needed in webservice
    « Reply #2 on: May 13, 2009, 10:11:29 AM »
  • Best Answer
  • And another problem I had the WebService object in strategy doesn't parse allways correctly the WSDL, the probleme may also be there (I think).

    You have to know the methods and parameters and put it by hand in the Webservice object in strategies.
    « Last Edit: May 13, 2009, 10:17:34 AM by mielu »

    Raj

    • Guest
    Re: Help needed in webservice
    « Reply #3 on: May 13, 2009, 10:13:25 AM »
  • Best Answer
  • Hi,

    I am using URS 7.2 version. Is it going create any problem for strategy.


    Thanks and regards,
    Raj

    Offline bogdan

    • Jr. Member
    • **
    • Posts: 94
    • Karma: 0
    Re: Help needed in webservice
    « Reply #4 on: May 13, 2009, 10:16:07 AM »
  • Best Answer
  • Like I told you previously I couldn't access the webservice with the 7.2, so I needed to upgrade.

    Offline SisB

    • Jr. Member
    • **
    • Posts: 60
    • Karma: 0
    Re: Help needed in webservice
    « Reply #5 on: May 13, 2009, 03:57:02 PM »
  • Best Answer
  • URS 7.2 had a defect (I am sure about AIX, as that is where I experienced) and it never worked while trying to call remote web service. This was fixed at some point in URS 7.5.

    The work around was: to have a web service in local system (URS host), which will act as a relay b/w bridge and remote WS.

    Thanks
    « Last Edit: May 13, 2009, 04:00:31 PM by SisB »

    Raj

    • Guest
    Re: Help needed in webservice
    « Reply #6 on: May 15, 2009, 12:26:05 PM »
  • Best Answer
  • Hi All,

    Thanks for your replies.

    I am upgraded to URS 7.6. Still I am not able to get output from my webservice.

    I am not getting any error messages in URS log files,http log files,xml log files.

    However I am getting null value as an output.

    What will be my move from here.


    Thanks and regards,
    Raj

    Offline René

    • Administrator
    • Hero Member
    • *****
    • Posts: 1832
    • Karma: 62
    Re: Help needed in webservice
    « Reply #7 on: May 15, 2009, 04:40:04 PM »
  • Best Answer
  • Raj,

    Post here all logs (URS - debug level, HTTP - verbose 6 level, XML) and we can try to find out what went wrong.
    R.

    Raj

    • Guest
    Re: Help needed in webservice
    « Reply #8 on: May 18, 2009, 10:40:07 AM »
  • Best Answer
  • Hi,

    I am posting URS,http,xml log files.


    Thanks and regards,
    Raj

    Offline Timur Karimov

    • Sr. Member
    • ****
    • Posts: 415
    • Karma: 2
    Re: Help needed in webservice
    « Reply #9 on: May 18, 2009, 12:18:45 PM »
  • Best Answer
  • Raj , as i can see u URS is configured right and work propertly. But the problem is what u web-services can't undestand the soap request from the URS. It's may be because u don't right configure the web object in the u strategy or the because u web services have the error in the internal structure. do u test the web services independed of the genesys ? it's work right? how u configure the web object in the IRD - manual or by wdsl file? if it done by wdsl file - how u create the wdsl file? because the urs don't undestand propertly the MS .NET automaticly generated wdsl.

    WBR Timur

    Raj

    • Guest
    Re: Help needed in webservice
    « Reply #10 on: May 18, 2009, 12:29:42 PM »
  • Best Answer
  • Hi,

    Thanks a lot for your support. Now I will look into my webservice.


    Thanks and regards,
    Raj

    Offline SisB

    • Jr. Member
    • **
    • Posts: 60
    • Karma: 0
    Re: Help needed in webservice
    « Reply #11 on: May 18, 2009, 05:42:36 PM »
  • Best Answer
  • Raj:

    Seems URS gSOAP request and the response is correct.
    Please check the strategy block.

    Thanks


    Offline René

    • Administrator
    • Hero Member
    • *****
    • Posts: 1832
    • Karma: 62
    Re: Help needed in webservice
    « Reply #12 on: May 18, 2009, 06:04:12 PM »
  • Best Answer
  • Raj,

    I would say your WebService block isn't configured properly so your webservice ignores input parameters. Please try use following setup (changed Method namespace and Req.Parameters):

    [code]Web Service URL: http://localhost/UserInfo/UserInfo.asmx
    Method name: GetFirstName
    Method namespace: s0=http://localhost/UserInfo
    SOAPaction: http://localhost/UserInfo/GetFirstName

    Request Parameters:
    s0:UserLogin = Raj[/code]

    R.

    Shekar

    • Guest
    Re: Help needed in webservice
    « Reply #13 on: June 08, 2009, 11:36:36 AM »
  • Best Answer
  • Hi,

      Following soap header is given by client.   
     
    <soap:Header>
        <AuthenticationHeader xmlns="">
          <AuthenticationType>string</AuthenticationType>
          <AuthorizationCode>string</AuthorizationCode>
          <Username>string</Username>
        </AuthenticationHeader>
      </soap:Header>

        How i can use the soap header in web service security tab of the routing strategy.

    Thanks and regards,
    Shekar

    Offline René

    • Administrator
    • Hero Member
    • *****
    • Posts: 1832
    • Karma: 62
    Re: Help needed in webservice
    « Reply #14 on: June 11, 2009, 11:13:16 AM »
  • Best Answer
  • Shekar,

    It doesn't seems like standard WS-Security based authentication. Do you know what type of authentication is used by the web service?

    R.