• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Unable to consume Webservice

Explorer ,
Aug 12, 2008 Aug 12, 2008

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

438

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 12, 2008 Aug 12, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 12, 2008 Aug 12, 2008

Copy link to clipboard

Copied

After changing to http i still get the same error - Could not perform web service invocation "login".

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 12, 2008 Aug 12, 2008

Copy link to clipboard

Copied

try explicit name value pairs for the arugments.
username = "something" password = "something"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 14, 2008 Aug 14, 2008

Copy link to clipboard

Copied

LATEST
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:

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation