Tom,

Yes. enumeration type. I was able to work out that part..  by looking at 
the WSDL output.. now only thing I need is a way to pass in required 
attributes for an element. If somehow I can get that going.. it be 
amazing. any tips on how that could be done.. or what should I be 
looking.. for.. to build the struct.

Schema URL:
http://developer.ebay.com/DevZone/SOAP/docs/WSDL/xsd/1/element/VerifyAddItemRequest.htm


Working Request:
  <cfscript>
   // set the header
   addItemRequest = StructNew();
   addItemRequest.ErrorLanguage  = "en_US";
   addItemRequest.detailLevel = ArrayNew(1);
   addItemRequest.detailLevel[1] = "ReturnAll";
   addItemRequest.Version = "393";
   addItemRequest.item = StructNew();
   addItemRequest.item.quantity = "1";
   addItemRequest.item.Currency = "USD";
   addItemRequest.item.PrimaryCategory = StructNew();
   addItemRequest.item.PrimaryCategory.CategoryID = "20";
</cfscript>

Need:
BuyItNowPrice with required attribute currencyID

--
Regards,

Tom Jordahl wrote:
> Umer,
> 
> If it is an enumeration type (I need to see the actual Schema) then CFMX 6.l
> doesn't handle it, but CFMX 7 should do it fine.  We will construct the Java
> enumeration type that the Axis generated stub requires using the String
> constructor.  This code was missing from 6.1.
> 
> Lawrence is incorrect that CFMX can't handle a complex type inside a complex
> type.  The Web service code should correctly make a JavaBean type from any
> struct that you pass, even if that struct is inside another struct.
> 
> In short, most of the problems with invoking web services with complex types
> are in guessing the CFML structures that will match the JavaBeans generated
> by the Axis engine.
> 
> One of the methods for debugging complex data types is to invoke the Apache
> Axis "WSDL2Java" program directly on the WSDL you are trying to consume.
> This will generate Java classes (sometimes lots of classes) that you can
> then examine to find out what exactly is required for the service.
> 
> Here is how:
> 
> Set your CLASSPATH environment variable to include the following jar files
> cfusion/lib/axis.jar
> cfusion/lib/saaj.jar
> cfusion/lib/jaxrpc.jar
> cfusion/lib/xercesImpl.jar
> cfusion/lib/wsdl4j.jar
> cfusion/lib/commons-logging-1.0.2.jar
> cfusion/lib/commons-discovery.jar
> 
> For example on Windows, change directory to CFusionMX7\lib:
> C:\CFusionMX7\lib>set
> CLASSPATH=axis.jar;saaj.jar;jaxrpc.jar;xercesImpl.jar;wsdl4j.jar;commons-log
> ging-1.0.2.jar;commons-discovery.jar
> 
> Then run
>  java org.apache.axis.wsdl.WSDL2Java -v -o myoutput http://host/to/my/wsdl
> 
> 
> Replace the URL with the URL of your WSDL file and "myoutput" with the
> directory you want the files generate to go to.  Then take a look at the
> files generated.  In particular you can look for the "interface" that will
> contain all of the operations of the web service.  You can then see the Java
> types that CFMX is trying to create from your CFML.
> 
> Hope this helps.
> 
> 
> Tom Jordahl
> Macromedia Server Development 
> 
> -----Original Message-----


-- 
Umer Farooq
Octadyne Systems
+1 (519) 489-1119 voice
+1 (519) 635-2795 mobile
+1 (530) 326-3586 fax


WEB SOLUTIONS FOR NON-PROFIT ORGANIZATION:
http://www.Non-ProfitSites.biz


WARNING: ------------------------------- The information contained in 
this document and attachments is confidential and intended only for the 
person(s) named above. If you are not the  intended recipient you are 
hereby notified that any disclosure, copying, distribution, or any other 
use of the information is strictly prohibited.  If you have received 
this document by mistake, please notify the sender immediately and 
destroy this document and attachments without making any copy of any kind.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195854
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to