Skip to main content
Inspiring
August 12, 2008
Question

Unable to consume Webservice

  • August 12, 2008
  • 4 replies
  • 522 views
Hi,
I am unable to consume web service. here is the code i have used so far:
None of the methods worked, I have used <cfinvoke>, createObject, building SOAP packet manually.

Here is a link to WSDL:
https://ws.ruk1.net/webservices/ResponsysWS?wsdl

I do not know what else to try.
Amy help will be appreciated.
This topic has been closed for replies.

4 replies

Participating Frequently
August 14, 2008
Your direct SOAP code works perfectly, if you add

<cfhttpparam type="HEADER" name="soapAction" value="">

Every SOAP request must have "soapAction" header. In your wsdl it is defined, as an empty string. Also, you do not need "Content-Length" header, since CFHTTP calculates it for you.

I am getting well-formatted XML back saying that login credentials are incorrect, which is obvious. I did not try <CFINVOKE>. Code follows:

Inspiring
August 12, 2008
try explicit name value pairs for the arugments.
username = "something" password = "something"
marekssAuthor
Inspiring
August 12, 2008
After changing to http i still get the same error - Could not perform web service invocation "login".
August 12, 2008
I went ahead and checked out your webservice address

https://ws.ruk1.net/webservices/ResponsysWS?wsdl

On the bottom of the page, you will see the <wsdlsoap:address> location tag, and it says:

<wsdlsoap:address location=" http://ws.ruk1.net/webservices/ResponsysWS" />

Notice that you are requesting on normal 'HTTP' protocol, and not 'HTTPS'. Correct that and see what happens.

HTH.