|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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/ |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Quote:
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? ![]() |
|
#4
|
|||
|
|||
|
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. |
|
#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? |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
Quote:
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... |
|
#8
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > eBay SOAP API with ColdFusion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|