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

Integration of Konakart with my application

Started by Ankita Tapkire, March 07, 2008, 06:52:47 am

Previous topic - Next topic

Ankita Tapkire

How can I integrate konakart java/soap apis with my application??
Please send me the step step by step methods so that i can call these apis within my web application.
Its urgent
Thanks,
Ankita

heidi

Hi,

Check out the FAQs and the example code.

An article that mighht be very useful to you is:  http://www.konakart.com/AddShoppingCartWithSOAP_faq.php

Heidi

Ankita Tapkire

Thanks for ur help

i downloaded the war file n deployed it in my application server with the server port as 8080
and my konakart is running at the port 8780 but still am getting this exception :

java.net.ConnectException: Connection timed out: connect
   org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
   org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
   org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
   org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   org.apache.axis.client.Call.invoke(Call.java:2767)
   org.apache.axis.client.Call.invoke(Call.java:2443)
   org.apache.axis.client.Call.invoke(Call.java:2366)
   org.apache.axis.client.Call.invoke(Call.java:1812)
   com.konakart.ws.KKWebServiceEngSoapBindingStub.getProductsPerCategory(Unknown Source)
   org.apache.jsp.NewProductsBody_jsp._jspService(org.apache.jsp.NewProductsBody_jsp:66)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
   org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:72)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


My system is behind the firewall.
Does that makes any difference in calling the SOAP api ??

heidi

I would check that your application is pointing at your KonaKart installation.  Maybe that's why it's timing out?

As for your firewall - I have no idea how your firewall is configured.

Heidi

Ankita Tapkire

yeahh i changed the following code of konakart.wsdl file:

<wsdl:service name="KKWSEngIfService">

      <wsdl:port binding="impl:KKWebServiceEngSoapBinding" name="KKWebServiceEng">

         <wsdlsoap:address location="http://www.konakart.com/konakart/services/KKWebServiceEng"/>;

      </wsdl:port>

   </wsdl:service>
                       
                                            TO


<wsdl:service name="KKWSEngIfService">

      <wsdl:port binding="impl:KKWebServiceEngSoapBinding" name="KKWebServiceEng">

         <wsdlsoap:address location="http://localhost:8780/konakart/services/KKWebServiceEng"/>

      </wsdl:port>

   </wsdl:service>

and also the wsdl_url path in the build.xml file

with this was able to generate the war file successfully but after executing the war file i got the same error

heidi

I'm not sure what you've done.  Are you talking about the movie-review war example?

Have you checked the parameters in the web.xml?

Heidi