rabi wrote: > > > Error is a SOAP Fault (Client Side) > > DEBUG - content - << "<?xml version="1.0" > encoding="utf-8"?><soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xm > lns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><fau > ltcode>soap:Client</faultcode>< > faultstring>System.Web.Services.Protocols.SoapException: Der Wert des > HTTP-Headers 'SOAPAction' wurde vom Server nicht erkannt: .[\r][\n]" > > Can you try adding the 'SOAPAction' to your http endpoint for the proxy. > > > <http:endpoint service="univis:WebServiceESBunivis" > endpoint="WebServiceESBunivisSoap" > role="provider" > > locationURI="http://localhost:88/WebServiceESBunivis/WebServiceESBunivis > /WebServiceESBunivis.asmx" > soap="true" > soapAction="http://univis.com/findLectureXML"/> > > I am not sure why it is cribbing for SOAPAction (should be optional), > but you can try this out. > > Regards, > Rabi Mishra, > http://rabisblog.blogspot.com/ > c++; /* this makes c bigger but returns the old value */ > >
I added the SOAPaction as suggested and according to the logging information the external web service now responds. However, I'm getting this error now, which doesnt make any sense to me: DEBUG - jetty - REQUEST /MeinBeispiel/ on [EMAIL PROTECTED] DEBUG - jetty - servlet=jbiServlet DEBUG - jetty - chain=null DEBUG - jetty - servelet holder=jbiServlet DEBUG - jetty - continuation [EMAIL PROTECTED] DEBUG - DefaultEndpoint - Received message to null DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase service DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase service DEBUG - HandlerPipeline - Invoking phase transport DEBUG - HandlerPipeline - Invoking phase parse DEBUG - HandlerPipeline - Invoking phase pre-dispatch DEBUG - HandlerPipeline - Invoking phase dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.handler.LocateBindingHandler in phase dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.soap.handler.SoapBodyHandler in phase dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.handler.DispatchServiceHandler in phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase send DEBUG - HandlerPipeline - Invoking phase policy DEBUG - HandlerPipeline - Invoking phase user DEBUG - HandlerPipeline - Invoking phase pre-invoke DEBUG - HandlerPipeline - Invoking phase service DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.service.binding.ServiceInvocationHandler in phase service DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - XMLDocumentationBuilder - Searching for WebServiceESBunivisSoap.doc.xml config.. DEBUG - XMLDocumentationBuilder - Config WebServiceESBunivisSoap.doc.xml NOT found. DEBUG - XMLTypeCreator - Mapping file : /com/univis/WebServiceESBunivisSoap.aegis.xml not found. DEBUG - XMLTypeCreator - Mapping file : /com/univis/WebServiceESBunivisSoap.aegis.xml not found. DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - DefaultTransportManager - Registered transport [EMAIL PROTECTED] DEBUG - XFireProxy - Method [findLectureXML] [Architecture] DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase send DEBUG - HandlerPipeline - Invoking phase post-invoke DEBUG - HandlerPipeline - Invoking phase policy DEBUG - HandlerPipeline - Invoking phase user DEBUG - HandlerPipeline - Invoking phase transport DEBUG - HandlerPipeline - Invoking phase send DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.handler.OutMessageSender in phase send DEBUG - header - >> "POST /WebServiceESBunivis/WebServiceESBunivis/WebServiceESBunivis.asmx HTTP/1.1[\r][\n]" DEBUG - header - >> "Content-Type: text/xml[\r][\n]" DEBUG - header - >> "Content-Length: 266[\r][\n]" DEBUG - header - >> "SOAPAction: http://univis.com/findLectureXML[\r][\n]" DEBUG - header - >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]" DEBUG - header - >> "Host: localhost:88[\r][\n]" DEBUG - header - >> "[\r][\n]" DEBUG - content - >> "<?xml version='1.0' encoding='UTF-8'?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:B ody><findLectureXML xmlns="http://univis.com"><lecture_name xmlns="http://univis.com">Architecture</lecture_name></findLectureXML></env:Body></env:Envelope >" DEBUG - header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG - header - << "Date: Wed, 04 Jul 2007 08:34:40 GMT[\r][\n]" DEBUG - header - << "Server: Microsoft-IIS/6.0[\r][\n]" DEBUG - header - << "X-Powered-By: ASP.NET[\r][\n]" DEBUG - header - << "X-AspNet-Version: 2.0.50727[\r][\n]" DEBUG - header - << "Cache-Control: private, max-age=0[\r][\n]" DEBUG - header - << "Content-Type: application/soap+xml; charset=utf-8[\r][\n]" DEBUG - header - << "Content-Length: 399[\r][\n]" DEBUG - content - << "<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmln s:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><findLectureXMLResponse xmlns="http://univis.com" ><findLectureXMLResult>Architecture received and returned.</findLectureXMLResult></findLectureXMLResponse></soap:Body></soap:Envelope>" DEBUG - Client - Received message to urn:xfire:transport:jbi:11835380805622983865035 DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase pre-dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - Invoking phase transport DEBUG - HandlerPipeline - Invoking phase parse DEBUG - HandlerPipeline - Invoking phase pre-dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch DEBUG - Client - Correlating context with ID 118353808056231945052852 DEBUG - Client - Found correlated context with ID 118353808056231945052852 DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase service DEBUG - HandlerPipeline - Invoking phase dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.handler.LocateBindingHandler in phase dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.soap.handler.SoapBodyHandler in phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase user DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase pre-dispatch DEBUG - HandlerPipeline - Invoking phase transport DEBUG - HandlerPipeline - Invoking phase parse DEBUG - HandlerPipeline - Invoking phase pre-dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.client.CorrelatorHandler in phase pre-dispatch DEBUG - Client - Correlating context with ID 118353808056231945052852 DEBUG - Client - Found correlated context with ID 118353808056231945052852 DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase service DEBUG - HandlerPipeline - Invoking phase dispatch DEBUG - HandlerPipeline - Invoking phase policy DEBUG - HandlerPipeline - Invoking phase user DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.client.ClientFaultConverter in phase user DEBUG - HandlerPipeline - Invoking phase pre-invoke DEBUG - HandlerPipeline - Invoking phase service DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.client.ClientReceiveHandler in phase service ERROR - DefaultFaultHandler - Fault occurred! org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: The current event is not STAR T_ELEMENT but 7 org.codehaus.xfire.fault.XFireFault: The current event is not START_ELEMENT but 7 at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) at org.codehaus.xfire.client.Client.onReceive(Client.java:391) at org.apache.servicemix.jsr181.xfire.JbiChannel.send(JbiChannel.java:147) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) at org.codehaus.xfire.client.Client.invoke(Client.java:335) at org.apache.servicemix.jsr181.xfire.JbiProxy$JAXWSJBIClient.invoke(JbiProxy.java:228) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) at org.apache.servicemix.jsr181.xfire.JbiProxyFactoryBean$1.invoke(JbiProxyFactoryBean.java:76) at $Proxy0.findLectureXML(Unknown Source) at org.meinbeispiel.testxmlfile.TestXmlFileImpl.getSomeLecture(TestXmlFileImpl.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:54) at org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:322) at org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86) at org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134) at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64) at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38) at org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174) at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176) at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalStateException: The current event is not START_ELEMENT but 7 at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:124) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309) at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200) at org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:129) at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Client.onReceive(Client.java:387) ... 34 more DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase send DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase user DEBUG - HandlerPipeline - Invoking phase post-invoke DEBUG - HandlerPipeline - Invoking phase policy DEBUG - HandlerPipeline - Invoking phase user DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.jaxws.handler.WebFaultHandler in phase user DEBUG - HandlerPipeline - Invoking phase transport DEBUG - HandlerPipeline - Invoking phase send DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.fault.FaultSender in phase send DEBUG - jetty - resume continuation [EMAIL PROTECTED] DEBUG - jetty - REQUEST /MeinBeispiel/ on [EMAIL PROTECTED] DEBUG - jetty - servlet=jbiServlet DEBUG - jetty - chain=null DEBUG - jetty - servelet holder=jbiServlet DEBUG - jetty - RESPONSE /MeinBeispiel/ 400 DEBUG - jetty - continuation [EMAIL PROTECTED] --------- I also tried changing the style from "document" to "wrapped" in the JSR181 SU xbean.xml to see if it makes any difference: <jsr181:endpoint pojo="#testxmlfile" typeMapping="jaxb2" annotations="jsr181" wsdlResource="classpath:service.wsdl" style="wrapped" /> but only gave me back a different type of error message: DEBUG - jetty - REQUEST /MeinBeispiel/ on [EMAIL PROTECTED] DEBUG - jetty - servlet=jbiServlet DEBUG - jetty - chain=null DEBUG - jetty - servelet holder=jbiServlet DEBUG - jetty - continuation [EMAIL PROTECTED] DEBUG - DefaultEndpoint - Received message to null DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase dispatch DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase service DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase service DEBUG - HandlerPipeline - Invoking phase transport DEBUG - HandlerPipeline - Invoking phase parse DEBUG - HandlerPipeline - Invoking phase pre-dispatch DEBUG - HandlerPipeline - Invoking phase dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.handler.LocateBindingHandler in phase dispatch DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.soap.handler.SoapBodyHandler in phase dispatch ERROR - JaxbType - javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"string"). Expected elements are <{http://mei nBeispiel.org/testxmlfile}FindLectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse> INFO - DefaultFaultHandler - Fault occurred! javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"string"). Expected elements are <{http://meinBeispiel.org/testxmlfile}FindLectureRequ est>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse> at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:525) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:922) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347) at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:35) at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:201) at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:135) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:337) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:309) at org.codehaus.xfire.jaxb2.JaxbType.readObject(JaxbType.java:200) at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162) at org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206) at org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50) at org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:182) at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64) at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38) at org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174) at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176) at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:619) Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"string"). Expected elements are <{http://meinBeispiel.org/testxmlfile}Find LectureRequest>,<{http://meinBeispiel.org/testxmlfile}FindLectureResponse> ... 32 more DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase send DEBUG - HandlerPipeline - adding handler [EMAIL PROTECTED] to phase user DEBUG - HandlerPipeline - Invoking phase post-invoke DEBUG - HandlerPipeline - Invoking phase policy DEBUG - HandlerPipeline - Invoking phase user DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.jaxws.handler.WebFaultHandler in phase user DEBUG - HandlerPipeline - Invoking phase transport DEBUG - HandlerPipeline - Invoking phase send DEBUG - HandlerPipeline - Invoking handler org.codehaus.xfire.fault.FaultSender in phase send DEBUG - jetty - resume continuation [EMAIL PROTECTED] DEBUG - jetty - REQUEST /MeinBeispiel/ on [EMAIL PROTECTED] DEBUG - jetty - servlet=jbiServlet DEBUG - jetty - chain=null DEBUG - jetty - servelet holder=jbiServlet DEBUG - jetty - RESPONSE /MeinBeispiel/ 500 DEBUG - jetty - continuation [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Issues-with-simple-proxy-scenario-tf4022130s12049.html#a11427746 Sent from the ServiceMix - User mailing list archive at Nabble.com.
