Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: dmans1 on September 29, 2009, 11:11:55 AM

Title: IRD Web Service Call
Post by: dmans1 on September 29, 2009, 11:11:55 AM
I am trying to invoke a web service in an strategy and the call fails.(Web service is invoked successfully trough an external client).The SOAP message that is created is the following.
[code]
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:clicktocall:urn="http://tempuri.org">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<clicktocall:getEWT>
<callid>xxxx</callid>
</clicktocall:getEWT>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>HTTP/1.1 415 Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.
[/code]

Any ideas on the 415 error?

URS is V7.6
Title: Re: IRD Web Service Call
Post by: Adam G. on September 29, 2009, 11:35:29 AM
Could you try at the begining
<soap:Envelope
insted of:
<SOAP-ENV:Envelope

I don't know if it will help.

Pavel
Title: Re: IRD Web Service Call
Post by: dmans1 on September 29, 2009, 12:45:13 PM
I can't actuallytry anything...
This is the xml generated by the Web Service Object of the IRD
Title: Re: IRD Web Service Call
Post by: René on September 30, 2009, 07:42:58 PM
Hi,

It seems that your web server (web service) is expecting different content type (application/soap+xml) than the one used by URS (text/xml). Check configuration of web server (web service) and change it to accept "text/xml" as well. I don't think it's possible to change content type on URS.

R.
Title: Re: IRD Web Service Call
Post by: dmans1 on October 05, 2009, 08:32:59 AM
Thanks Rene.
What i can understand is that Web Service object does not support SOAP v1.2
( [url=http://www.w3.org/TR/soap12-part0/#L4697]http://www.w3.org/TR/soap12-part0/#L4697[/url])