Author Topic: IRD Web Service Call  (Read 4910 times)

Offline dmans1

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
IRD Web Service Call
« 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
« Last Edit: September 29, 2009, 12:45:44 PM by dmans1 »

Offline Adam G.

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 12
  • Still Gorgeous.......
Re: IRD Web Service Call
« Reply #1 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

Offline dmans1

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: IRD Web Service Call
« Reply #2 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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: IRD Web Service Call
« Reply #3 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.

Offline dmans1

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: IRD Web Service Call
« Reply #4 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])