All,
 
I'm a SOAP and CXF newbie. 

SOAP 1.2
CXF 2.0.1
JDK 1.6.0_01

I'm attempting to communicate with a SOAP 1.2 Web service via CXF v.
2.0.1.  To verify that I can actually connect to the service properly,
I'm invoking a "ping" method that I am seeing.  The relevant output from
my run is below.  My guess is that the error message being returned from
the service can't be parsed correctly (see the message "HandlerFault is
not a standard Code value").

I'd like to be able to verify the contents of the outgoing and incoming
XML - how can I set things up to see the XML requests and responses (I'm
guessing some kind of logging via the CXF config. File?).

Thanks,
Wes

===============Output of ping test===============
 
INFO: Creating Service
{http://api.channeladvisor.com/webservices/}InventoryService from WSDL:
http://api.channeladvisor.com/ChannelAdvisorAPI/v1/InventoryService.asmx
?WSDL
Invoking ping...
Sep 10, 2007 3:27:39 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at
org.apache.cxf.message.MessageContentsList.get(MessageContentsList.java:
76)
        at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleHeaderP
art(SoapOutInterceptor.java:179)
        at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEnve
lopeStart(SoapOutInterceptor.java:124)
        at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage
(SoapOutInterceptor.java:76)
        at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage
(SoapOutInterceptor.java:57)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC
hain.java:207)
        at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
        at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
        at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
        at $Proxy32.ping(Unknown Source)
        at
com.channeladvisor.api.webservices.InventoryServiceSoap12_Client.main(In
ventoryServiceSoap12_Client.java:88)
Sep 10, 2007 3:27:39 PM
com.sun.xml.internal.messaging.saaj.soap.ver1_2.Fault1_2Impl
checkIfStandardFaultCode
SEVERE: SAAJ0435: {http://cxf.apache.org/faultcode}HandlerFault is not a
standard Code value
Exception in thread "main"
java.lang.reflect.UndeclaredThrowableException
        at $Proxy32.ping(Unknown Source)
        at
com.channeladvisor.api.webservices.InventoryServiceSoap12_Client.main(In
ventoryServiceSoap12_Client.java:88)
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:
{http://cxf.apache.org/faultcode}HandlerFault is not a standard Code
value
        at
com.sun.xml.internal.messaging.saaj.soap.ver1_2.Fault1_2Impl.checkIfStan
dardFaultCode(Fault1_2Impl.java:134)
        at
com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(Fau
ltImpl.java:124)
        at
com.sun.xml.internal.messaging.saaj.soap.impl.FaultImpl.setFaultCode(Fau
ltImpl.java:138)
        at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:162)
        ... 2 more

Reply via email to