Hi All,
I am trying to write an application using AXIS and need to implement
some fault handling features I have a method
public void testConnection(String username, String password)throws
Exception{
LORAXSoap soap = new LORAXLocator().getLORAXSoap();
soap.testConnection(username,password);
}
When I run the application I get a fault when I enter an incorrect
username and password yet no exception seems to be thrown. I as have
this method in a try catch block but the catch component is never
getting called.
There errors I receive from AXIS is as follows:
[java] AxisFault
[java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
[java] faultSubcode:
[java] faultString: System.Web.Services.Protocols.SoapException:
Login failed
[java] at
TheLearningFederation.Lex.WebTier.WebServices._2004._07.LORAX3.TestConne
ction(String Username, String Password)
[java] faultActor:
http://staging.lex.thelearningfederation.edu.au/webservices/2004/07/LORA
X.asmx
[java] faultNode:
[java] faultDetail:
[java]
{http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.So
apException: Login failed
[java] at
TheLearningFederation.Lex.WebTier.WebServices._2004._07.LORAX3.TestConne
ction(String Username, String Password)
[java] at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:222)
[java] at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:129)
[java] at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1087)
[java] at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[java] at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
[java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
[java] at javax.xml.parsers.SAXParser.parse(Unknown Source)
[java] at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon
text.java:227)
[java] at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
[java] at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
[java] at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstan
dChecker.java:62)
[java] at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
[java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
[java] at org.apache.axis.client.Call.invoke(Call.java:2767)
[java] at org.apache.axis.client.Call.invoke(Call.java:2443)
[java] at org.apache.axis.client.Call.invoke(Call.java:2366)
[java] at org.apache.axis.client.Call.invoke(Call.java:1812)
[java] at
au.edu.thelearningfederation.lex.webservices._2004._07.LORAX.LORAXSoapSt
ub.testConnection(LORAXSoapStub.java:497)
[java] at
au.edu.tlf.crisp2.webservice.client.CrispClient.testConnection(CrispClie
nt.java:44)
[java] at
au.edu.tlf.crisp2.service.impl.ExchangeContentManagerImpl.testExchangeCo
ntent(ExchangeContentManagerImpl.java:97)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
[java] at java.lang.reflect.Method.invoke(Unknown Source)
[java] at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(
AopUtils.java:335)
[java] at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinp
oint(ReflectiveMethodInvocation.java:181)
[java] at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:148)
[java] at
org.springframework.transaction.interceptor.TransactionInterceptor.invok
e(TransactionInterceptor.java:96)
[java] at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:170)
[java] at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo
pProxy.java:176)
[java] at $Proxy38.testExchangeContent(Unknown Source)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]