ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 6th, 2005, 06:55 PM
premzero premzero is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sydney, AU
Posts: 37 premzero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 8 sec
Reputation Power: 5
Unhappy eBay SOAP API with ColdFusion

When I write the initial code to create a proxy object connecting to the eBay web service using the following line, the JRun server seems to get stuck and crashes.

Code:
<cfobject webservice = "http://developer.ebay.com/webservices/393/eBaySvc.wsdl" name="ebayWS" />


Any idea why this is happening? I'm using CF MX 6.1
__________________
We can help export your products http://www.GIAgroup.com/

Reply With Quote
  #2  
Old July 6th, 2005, 09:18 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
Have you read the eBay SOAP API documentation? I would speculate that you are not passing arguments that the service requires. Try using cfinvoke and cfinvokeargument once you are sure what the web service requires.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old July 6th, 2005, 09:32 PM
premzero premzero is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sydney, AU
Posts: 37 premzero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 8 sec
Reputation Power: 5
Quote:
Originally Posted by kiteless
Have you read the eBay SOAP API documentation? I would speculate that you are not passing arguments that the service requires. Try using cfinvoke and cfinvokeargument once you are sure what the web service requires.


I'm new to SOAP. However, I believe im creating an instance of the webservice object with the code above and then what i do is i create the headers of the SOAP request and add it to the header of the object. Later, I use cfinvoke to call the service in the following way:

Code:
<cfinvoke webservice="#ebayWS#" method="#methodToCall#" returnvariable="temp"> 
    <cfinvokeargument name="geteBayOfficialTimeRequest" value="#timeRequest#"> 
</cfinvoke> 


The ebayWS object has the headers, the endpoint and the authentication information.
However, shouldn't the cfobject code above simply create an instance of the webservice object?

Am i missing something?

Reply With Quote
  #4  
Old July 7th, 2005, 08:27 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
If you are new to SOAP, the massive and complex implementation of the EBay web service API is definitely not the place to start. Start with some simple examples using web services at something like XMethods.

I have no idea why using createObject() is failing, as I have never used a web service that way. I always use CFINVOKE. Clearly it doesn't like something about the way createObject() is doing it though.

Reply With Quote
  #5  
Old July 7th, 2005, 06:13 PM
premzero premzero is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sydney, AU
Posts: 37 premzero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 8 sec
Reputation Power: 5
Thanks for the xmethods site.. i will spend some time there for sure. I've tried other simple web services with SOAP using the same cfobject way. It worked fine. Meanwhile with eBay I'm proceeding with XML API since they work fine too.

A question: can you give me an example on how to pass authentication headers with the SOAP request with cfinvoke or some other CF tag?

Reply With Quote
  #6  
Old July 7th, 2005, 07:22 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
If you are using ColdFusion MX 7 you can use the addSOAPRequestHeader() function, details at http://livedocs.macromedia.com/cold...le=00000379.htm

If you are on 6.1 it is much more difficult as you must create the header using Java SOAP API classes such as JAX-RPC.

Reply With Quote
  #7  
Old July 7th, 2005, 08:40 PM
premzero premzero is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sydney, AU
Posts: 37 premzero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 8 sec
Reputation Power: 5
Quote:
Originally Posted by kiteless
If you are using ColdFusion MX 7 you can use the addSOAPRequestHeader() function, details at http://livedocs.macromedia.com/cold...le=00000379.htm

If you are on 6.1 it is much more difficult as you must create the header using Java SOAP API classes such as JAX-RPC.


I have updated my MX 6.1 with addRequestHeader and few other tags. They are equivalent to addSOAPRequestHeader in MX 7. However, to use this, you still need to create a web service object. Then add headers and then invoke the service. I can't create the object itself - seems no way out, here...

Reply With Quote
  #8  
Old July 7th, 2005, 09:01 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
The ebay web service documentation and examples would be my next step. Again, I've never used it so I have no idea what is involved in making it work. If it is anything like Amazon's web services, it is probably extremely complicated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > eBay SOAP API with ColdFusion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT