• Welcome to KonaKart Community Forum. Please login or sign up.
 

Need help with SOAP createOrder call

Started by mohit.bhonde, April 24, 2016, 06:52:52 am

Previous topic - Next topic

mohit.bhonde

Hey all,

First off, thanks for making the soap api wonderful. I had 2 issues

1. Do not get debug/info level logs in ws-konakart.log after enabling konakart ws logging.
Used instructions here. https://www.konakart.com/docs/ConfigurationOfLogging.html
I see the ws-konakart.log file gets generated but I don't see SOAP calls logged.

What could I be missing in the log configuration?

2. I used tcpmon to see why the createOrder request might fail
I keep on getting this null response

<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:createOrderWithOptionsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="http://meatroot.com:9090"><createOrderWithOptionsReturn xsi:type="ns2:Order" xsi:nil="true" xmlns:ns2="http://wsapp.konakart.com"/></ns1:createOrderWithOptionsResponse></soapenv:Body></soapenv:Envelope>

Any help with these 2 questions is highly appreciated.

Best,
Mohit

Brian

Hi,

I have no problems seeing the SOAP calls in the log when I enable the log flag as described in the User Guide that you refer to.

# To log AXIS requests and responses
# Set to DEBUG for complete messages and INFO for just the SOAP body
log4j.logger.com.konakart.ws.KKWSLogHandler   = INFO


I don't know what ws-konakart.log is that you refer to.  Is that something you defined?


For failures with createOrder I would suggest that you enable some logging on the server side to see what's going wrong.  Maybe the order you are specifying is incomplete in some way?   There are times when null is returned, for example, in the javaDoc:

"Null is returned if the products and/or product options referenced by the array of basket items are no longer available."