[Users] Testing the XSLT component
kk
mk.khelif at gmail.com
Wed Mar 16 11:04:39 CET 2011
Hi all,
I am a petals's neophyte and I would like to test the XSLT se component
So, I created a SA XSLT provide including my xsl file and this WSDL :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="XsltService" targetNamespace="http://petals.ow2.org/components/xslt/version-2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://petals.ow2.org/components/xslt/version-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
<wsdl:types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://petals.ow2.org/components/xslt/version-2">
<xsd:element name="request" type="xsd:anyType"/>
<xsd:element name="response" type="xsd:anyType"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="transformRequest">
<wsdl:part name="transformRequest" element="tns:request">
</wsdl:part>
</wsdl:message>
<wsdl:message name="transformResponse">
<wsdl:part name="transformResponse" element="tns:response">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="XsltInterface">
<wsdl:operation name="transform">
<wsdl:input message="tns:transformRequest">
</wsdl:input>
<wsdl:output message="tns:transformResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PetalsXSLTBinding" type="tns:XsltInterface">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="transform">
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="transcoService">
<wsdl:port name="transcoServiceEndpoint" binding="tns:PetalsXSLTBinding">
<soap:address location="http://localhost:9090/transcoServiceEndpoint"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Then, I created a "SA SOAP consume".
But when testing with SOAPUI I had this exception :
Code:
org.apache.axis2.AxisFault: Server
at org.ow2.petals.binding.soap.listener.incoming.RequestProcessor.processJBIResponse(RequestProcessor.java:150)
at org.ow2.petals.binding.soap.listener.incoming.SOAPProcessor.process(SOAPProcessor.java:134)
at org.ow2.petals.binding.soap.listener.incoming.PetalsReceiver.process(PetalsReceiver.java:173)
at org.ow2.petals.binding.soap.listener.incoming.PetalsReceiver.invokeBusinessLogic(PetalsReceiver.java:123)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
at org.ow2.petals.binding.soap.listener.incoming.servlet.SoapServlet.doPost(SoapServlet.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.lang.Exception: Operation '{http://petals.ow2.org/components/xslt/version-2}transform' must use the pattern 'http://www.w3.org/2004/08/wsdl/in-out'
at org.ow2.petals.se.xslt.listener.JBIListener.validateExchange(JBIListener.java:72)
at org.ow2.petals.se.xslt.listener.JBIListener.onJBIMessage(JBIListener.java:113)
at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOptionalOutAsProvider(MessageExchangeProcessor.java:518)
at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:381)
at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:242)
at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:176)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Any idea, please?
Thanks in advance,
KK
-------------------- m2f --------------------
Subscribe/Unsubscribe emails notifications :
http://forum.petalslink.com/m2f_usercp.php
Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)
Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=31516#31516
-------------------- m2f --------------------
More information about the Users
mailing list