• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

AxisFault , faultString: Unknown Error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have integrating Magento client API using wsdl http://www.renewlife.com/api/v2_soap?wsdl=1

I got a following exception while getting list of available shipping methods
Error while getting cart shipping mentods
AxisFault
faultCode: 0
faultSubcode:
faultString: Unknown Error
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Unknown Error
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1750)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2906)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:624)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:486)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at Magento.Mage_Api_Model_Server_V2_HandlerBindingStub.shoppingCartPaymentMethod(Mage_Api_Model_Server_V2_HandlerBindingStub.java:5678)
at Magento.Mage_Api_Model_Server_V2_HandlerPortTypeProxy.shoppingCartPaymentMethod(Mage_Api_Model_Server_V2_HandlerPortTypeProxy.java:644)
at Magento.TestMagento.main(TestMagento.java:188)

{http://xml.apache.org/axis/}hostname:localhost.localdomain


Following is the block of code

String sessionId = "";
try {
try{
sessionId = magentoProxy.login("renewlife", "************");
}catch (Exception e) {
System.out.println("Error in user login...");
e.printStackTrace();
}
int quoteId = magentoProxy.shoppingCartCreate(sessionId, storeId);
String storeId = "1";
// get list of shipping methods
ShoppingCartShippingMethodEntity[] shoppingCartShippingMethodEntity = null;
try{
shoppingCartShippingMethodEntity = magentoProxy.shoppingCartShippingList(sessionId, quoteId, storeId);
}catch (Exception e) {
System.out.println("Error while getting cart shipping mentods");
e.printStackTrace();

}
if(shoppingCartShippingMethodEntity != null){
for(int i = 0 ; i < shoppingCartShippingMethodEntity.length ; i++){
System.out.println("Shipping method name :" + shoppingCartShippingMethodEntity[i].getMethod());
System.out.println("Price :" + shoppingCartShippingMethodEntity[i].getPrice());
System.out.println("Carrier :" + shoppingCartShippingMethodEntity[i].getCarrier());
System.out.println("Code :" + shoppingCartShippingMethodEntity[i].getCode());
}
}



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic