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

Enumeration problem consuming clickandbuy web service

New Here ,
Apr 22, 2007 Apr 22, 2007

Copy link to clipboard

Copied

I have built a cf app that will consume Click & Buy´s SOAP interface RMI (Registration Manager Interface) to register new Users. Click & buy states that the SOAP interface is 1.2 compliant, but my test with different generic soap client indicates that it is not true.

Any way I have managed to do all the structs and arrays, but get stuck on a enumerated value. I got this error:

Could not perform web service invocation "registerUser".
Here is the fault returned when invoking the web service operation:

java.lang.IllegalArgumentException: argument type mismatch


I have read all the documentation for the RMI, so I know the right values. But I do not know how to set a value to type enumerated. I have installed all the lates hotfixes (CFMX 7.02, win 20003), tested to consume other web services like babelfish and a weather service with no problem. I have also googled and read all threads on the subject, and that there was a fix for this problem in the work back in 2005. I think that by now there should be a fix for the enum problem so that you don´t have to use bad temporay solutions, but I have found nothing!

I have also run the web service with wsdl2java and examined the classes with Eclipse. I´m no Java programer but I think I have manged to pin point the origin of the error message in the RegistrationManagerRegistrationGender class.

It feels as I am stuck on the finish line.

References:
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200604.mbox/%3C4736124.1145204669658.JavaMail.j...

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:30232

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=7&threadid=1251325&high...

ord1=enum

http://www.sys-con.tv/read/86131.htm

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb400996

http://www.xmethods.net/ve2/Tools.po

http://www.mindreef.net/tide/scopeit/start.do

http://wsdl.eu.clickandbuy.com/RMI/2.0/RegistrationManagerbinding.wsdl

http://soapclient.com/interop/interopTest.html

http://soapclient.com/soapclient.com/soaptest.html

TOPICS
Advanced techniques

Views

670

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
Advocate ,
Apr 23, 2007 Apr 23, 2007

Copy link to clipboard

Copied

What element is a enumerated type?

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
New Here ,
Apr 24, 2007 Apr 24, 2007

Copy link to clipboard

Copied

In the documentation gender is defined as a enumerated type (registerUser.regRequest[1].rUser[1].sex[1].Gender = "M";).

Now I also have a php example, and it seams quit easy to implement, I hope. But in the other hand it is using nuSOAP lib that maybe takes care of the tricky stuff..

If I dont manage to get it working soon, I go for the php solution, and have the data source as the bridge between cf and php.

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
Advocate ,
Apr 24, 2007 Apr 24, 2007

Copy link to clipboard

Copied

Have you tried this:

<cfscript>
ps = CreateObject("java", "java.util.Properties");
ps.setProperty("0", "M");
ps.setProperty("1", "F");
myProperty = ps.getProperty(0);

registerUser.regRequest[1].rUser[1].sex[1].Gender = myProperty;
</cfscript>

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
New Here ,
Apr 25, 2007 Apr 25, 2007

Copy link to clipboard

Copied

Yep! No success, same error message.

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
Advocate ,
Apr 25, 2007 Apr 25, 2007

Copy link to clipboard

Copied

Have you tried running the PHP script to see if that works?

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
New Here ,
Apr 30, 2007 Apr 30, 2007

Copy link to clipboard

Copied

LATEST
I have managed to get the php script work. But first I got one error message that I needed openSSL or CURL. After I installed openssl and curl I got it working.

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