CJ web service: Fatal error: Uncaught SoapFault exception?!

Discussion in 'Commission Junction' started by markowe, Sep 10, 2010.

  1. #1
    This seems to be a problem that's happened before with the CJ API (there are some old forum posts about it), but never any solutions - it just "fixes itself", supposedly. Well, CJ forums are as much use as a chocolate teacup, so I have to ask this here. Anyone else getting this when making a SOAP call to the product search API?:

    Fatal error: Uncaught SoapFault exception: [soap:Server] Fault: java.lang.NullPointerException

    Happens every time, i.e., a couple of my sites have crashed and burned because of this. I tried changing my dev ID, made sure I put in the new host address: https://product-search.api.cj.com/wsdl/version2/productSearchServiceV2.wsdl instead of http://api.cj.com, to no avail.

    Could it be something to do with SSL, since the new address is https:? Nice of them to tell us, whatever the problem is. Anyone know what's going on here?
     
    markowe, Sep 10, 2010 IP
  2. phpPig

    phpPig Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I haven't had a problem with it on a couple of sites where I still use the SOAP protocol.

    Have you not not started using the REST protocol?
     
    phpPig, Sep 21, 2010 IP
  3. markowe

    markowe Well-Known Member

    Messages:
    1,136
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Yeah, I should really go over to SOAP. In fact that's exactly what I plan to do, but it means recoding some scripts, pain in the neck. And anyway, I sort of like SOAP, fits in better with an OOP approach, REST lends itself to very sloppy programming (which I am very good at!) Anyway, I see REST is working fine, so I have NO idea what the problem with SOAP is, so I will just give up, the support from CJ is worse than useless, they have got a LONG long way to go to get close to eBay and Amazon's APIs...

    Thanks.
     
    markowe, Sep 22, 2010 IP