KonaKart Community Forum

General Category => Miscellaneous => Topic started by: Ankita Tapkire on March 07, 2008, 06:52:47 am

Title: Integration of Konakart with my application
Post by: Ankita Tapkire on March 07, 2008, 06:52:47 am
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
Title: Re: Integration of Konakart with my application
Post by: heidi on March 07, 2008, 07:51:11 am
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
Title: Re: Integration of Konakart with my application
Post by: Ankita Tapkire on March 07, 2008, 10:19:47 am
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 ??
Title: Re: Integration of Konakart with my application
Post by: heidi on March 07, 2008, 11:26:31 am
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
Title: Re: Integration of Konakart with my application
Post by: Ankita Tapkire on March 07, 2008, 12:03:15 pm
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
Title: Re: Integration of Konakart with my application
Post by: heidi on March 07, 2008, 02:34:24 pm
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