*
The moose likes Web Services and the fly likes AxisFault , faultString: Unknown Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "AxisFault , faultString: Unknown Error" Watch "AxisFault , faultString: Unknown Error" New topic
Author

AxisFault , faultString: Unknown Error

Gajanan Bhosale
Greenhorn

Joined: Sep 05, 2011
Posts: 2
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());
}
}



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AxisFault , faultString: Unknown Error
 
Similar Threads
faultString: SOAP-ERROR: Encoding: object hasn't 'code' property
How to pass Java vector to a web service using Apache AXIS
Currency Web Service almost there
Help! I caught NullPointException when call axis web service
SOAP processing failure, error id = 1001