This HTTP SU gives roundtrip to AxisSoap on Jboss (can see POST in req.log): =================================================
<beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:r="http://servicemix.apache.org/samples/router"> <http:endpoint service="r:soapConsumer" endpoint="endpoint" targetService="r:soapProvider" role="consumer" soap="true" locationURI="http://0.0.0.0:8080/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" /> <http:endpoint service="r:soapProvider" endpoint="soapProvider" role="provider" soap="true" locationURI="http://11.46.225.131:8080/axis/services/Subscriber"/> </beans> But an error occur: ============ WARN - jetty - /axis/services/Subscriber java.lang.Exception: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'N ' (code 78) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcess or.java:214) at org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:356) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollect ion.java:149) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:265) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:333) at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'N' (code 78 ) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:600) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1934) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1054) at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:59) at org.apache.servicemix.jbi.jaxp.ExtendedXMLStreamReader.next(ExtendedXMLStreamRe ader.java:60) at org.apache.servicemix.jbi.jaxp.ExtendedXMLStreamReader.nextTag(ExtendedXMLStrea mReader.java:43) at org.apache.servicemix.soap.marshalers.SoapReader.readSoapUsingStax(SoapReader.j ava:154) at org.apache.servicemix.soap.marshalers.SoapReader.read(SoapReader.java:82) at org.apache.servicemix.soap.marshalers.SoapReader.read(SoapReader.java:73) at org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcess or.java:173) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.ja va:489) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCy cle.java:441) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java :46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(Delivery ChannelImpl.java:593) 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.runTas k(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(Th readPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) DEBUG - jetty - RESPONSE /axis/services/Subscriber 500 DEBUG - jetty - continuation org.mortbay.jetty.nio.SelectChannelC [EMAIL PROTECTED] Trying to see what SOAP looks like with tcpmon: =============================== ws-client -> tcpmon -> axis-on-jboss (does work): ---------------------------------------------------------- POST /axis/services/Subscriber HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.42) VsDebuggerCausalityData: uIDPo18yLmgObaRKvDsAuIh2qVwAAAAANclY8IbdZ0qNTxRR1WWIzgBM+n73+ZxMnPPrvKOYgY8ACAAA Content-Type: text/xml; charset=utf-8 SOAPAction: "" Host: localhost:8080 Content-Length: 653 Expect: 100-continue Connection: Keep-Alive <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://11.46.225.31:8080/axis/services/Subscriber" xmlns:types="http://11.46.225.31:8080/axis/services/Subscriber/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:getCustomerDetails><in0 xsi:type="xsd:int">0</in0><in1 xsi:type="xsd:string">3</in1><in2 xsi:type="xsd:int">969</in2></tns:getCustomerDetails></soap:Body></soap:Envelope> ws-client -> smx -> tcpmon -> axis-on-jboss (does not work): ------------------------------------------------------------------------ POST /axis/services/Subscriber HTTP/1.1 Connection: keep-alive User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.42) SOAPAction: "" VsDebuggerCausalityData: uIDPo/6Mrp+FJ+ZLvk1epr0jrVkAAAAAKFKZy4pkcE2h+DFjwNb4VKyRl0nUoVZNmDx12NKKq0kACAAA Content-Type: text/xml Content-Length: 640 Host: localhost:8080 <?xml version='1.0' encoding='UTF-8'?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><tns:getCustomerDetails xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://11.46.225.131:8080/axis/services/Subscriber" xmlns:types="http://11.46.225.131:8080/axis/services/Subscriber/encodedTypes" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><in0 xsi:type="xsd:int">0</in0><in1 xsi:type="xsd:string">3</in1><in2 xsi:type="xsd:int">969</in2></tns:getCustomerDetails></env:Body></env:Envelope> gnodet wrote: > > Try to post the request using an URI with a trailing '/'. > So post it to "/axis/services/Subscriber/" > rather than "/axis/services/Subscriber" and it will work. > THis is what the 302 http status code tries to indicate. > > > On Sep 12, 2007, at 9:44 AM, johper wrote: > >> >> >> Hi, >> >> Would like to move an Axis WS solution 'as is' over to SMX. Step 1 >> is to put >> SMX in the >> middle of existing WS-client-Web-app and Jboss/Axis SOAP stack. >> Trying to >> use 'servicemix-http' BC >> but not to sure how to setup to act as a ws-router ? >> >> >> HTTP SU >> ======== >> <beans xmlns:http="http://servicemix.apache.org/http/1.0" >> xmlns:r="http://servicemix.apache.org/samples/router"> >> >> <http:endpoint service="r:soapConsumer" >> endpoint="endpoint" >> targetService="r:soapProvider" >> role="consumer" >> soap="true" >> soapVersion="1.1" >> locationURI="http://0.0.0.0:8080/axis/services/ >> Subscriber/" >> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" >> wsdlResource="classpath:main.wsdl" /> >> >> <http:endpoint service="r:soapProvider" >> endpoint="soapProvider" >> role="provider" >> soap="true" >> >> locationURI="http://100.147.25.131:8080/axis/services/Subscriber/" >> wsdlResource="classpath:main.wsdl"/> >> >> </beans> >> >> >> OUTPUT SMX CONSOLE >> =================== >> >> DEBUG - JettyContextManager - Dispatching job: >> [EMAIL PROTECTED],io=1,w=true,b >> =0|0] >> DEBUG - jetty - REQUEST /axis/services/ >> Subscriber >> on org.mortbay. >> [EMAIL PROTECTED] >> DEBUG - jetty - RESPONSE /axis/services/ >> Subscriber >> 302 >> DEBUG - JettyContextManager - Dispatching job: >> [EMAIL PROTECTED],io=1,w=true,b >> =0|0] >> -- >> View this message in context: http://www.nabble.com/HTTP-BC-acting- >> as-a-SOAP-router-tf4427544s12049.html#a12630328 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > > > -- View this message in context: http://www.nabble.com/HTTP-BC-acting-as-a-SOAP-router-tf4427544s12049.html#a12649937 Sent from the ServiceMix - User mailing list archive at Nabble.com.
