Hi Daniel,
Would you be able to follow the steps which Asankha has sent you
and see if your scenario works?
Thanks,
Evanthika
Daniel Mc Iver wrote:
Hi Evanthika,
Thanks for getting back to me.
If I have to set content to text/xml does this mean I can't use CSV here - I
have to use XML if I'm trying to call a SOAP 1.1 end point? Can it only accept
POX?
Aren't I setting the SOAP action with <header name="Action"
value="urn:FWTCaseUpdate"/>? Is there something else I need to do here?
I don't think I'm mismatching because assuming the script mediator is working
correctly the payload should be the same as other examples I have ran.
Thanks,
Daniel McIver
________________________________________
From: Evanthika Amarasiri [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2008 10:19 PM
To: [email protected]
Subject: Re: reading CSV file from VFS - (EPR) for the Operation not found
Hi Daniel,
Since you are using SOAP1.1 you need to make sure that your content type
is text/xml. In addition with SOAP1.1 you need to send SOAP action HTTP
header as well.
Also would it be possible for you to check whether the service you are
calling matches with your request? If you pointing to a mismatching
service also you get this error. For example if your request is a
getQuote request and you are pointing to the MTOMSwASampleService then
you would get this error.
See if this would solve your problem.
Thanks,
Evanthika
Daniel Mc Iver wrote:
Hi,
I'm trying to read a CSV file from VFS, transform it using a script mediator and send it
to an end point. When I do I get the error "The endpoint reference (EPR) for the
Operation not found is and the WSA Action = null" (full log below).
Here is the synapse config file:
<definitions xmlns="http://ws.apache.org/ns/synapse">
<sequence name="updatecase">
<script language="js"><![CDATA[
var args = mc.getPayloadXML().toString().split(",");
mc.setPayloadXML(
<flt:FWTCaseUpdate xmlns:flt="http://www.lagan.com/wsdl/FLTypes">
<flt:CaseReference>{args[0]}</flt:CaseReference>
<NewNote>Status of request {args[1]} : {args[2]}</NewNote>
</flt:FWTCaseUpdate>);
]]></script>
<property action="set" name="OUT_ONLY" value="true"/>
<header name="Action" value="urn:FWTCaseUpdate"/>
<send>
<endpoint>
<address uri="http://localhost:8080/lagan/services/FL" format="soap11"/>
</endpoint>
</send>
</sequence>
<proxy name="FileProxy" transports="vfs">
<parameter
name="transport.vfs.FileURI">file:///C:/synapsefileexample/in</parameter>
<parameter name="transport.vfs.ContentType">text/plain;
charset=ISO-8859-1</parameter>
<parameter
name="transport.vfs.FileNamePattern">.*\.csv</parameter>
<parameter name="transport.PollInterval">15</parameter>
<parameter
name="transport.vfs.MoveAfterProcess">file:///C:/synapsefileexample/suceeded</parameter>
<parameter
name="transport.vfs.MoveAfterFailure">file:///C:/synapsefileexample/failed</parameter>
<parameter
name="transport.vfs.ActionAfterProcess">MOVE</parameter>
<parameter
name="transport.vfs.ActionAfterFailure">MOVE</parameter>
<target inSequence="updatecase">
<outSequence>
<property name="transport.vfs.ReplyFileName"
expression="fn:concat(fn:substring-after(get-property('MessageID'), 'urn:uuid:'),
'.xml')" scope="transport"/>
<send>
<endpoint>
<address uri="vfs:file:///C:/synapsefileexample/out"/>
</endpoint>
</send>
</outSequence>
</target>
<publishWSDL
uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
</definitions>
Here is the log at DEBUG:
2008-07-30 12:12:10,125 [192.168.1.66-na-bpm-1] [WrapperSimpleAppMain] INFO
ServerManager Ready for processing
2008-07-30 12:12:24,296 [-] [vfs-Worker-1] DEBUG VFSTransportListener Scanning
directory or file : file:///C:/synapsefileexample/in
2008-07-30 12:12:24,359 [-] [vfs-Worker-1] DEBUG VFSTransportListener File name
pattern :.*\.csv
2008-07-30 12:12:24,359 [-] [vfs-Worker-1] DEBUG VFSTransportListener Matching
file :101000001750.csv
2008-07-30 12:12:24,375 [-] [vfs-Worker-1] DEBUG VFSTransportListener
Processing file :file:///C:/synapsefileexample/in/101000001750.csv
2008-07-30 12:12:24,421 [-] [vfs-Worker-1] DEBUG TransportUtils
createSOAPEnvelope using Builder (class
org.apache.synapse.format.PlainTextBuilder) selected from type (text/plain)
2008-07-30 12:12:24,484 [-] [vfs-Worker-1] ERROR AxisEngine The endpoint
reference (EPR) for the Operation not found is and the WSA Action = null
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not
found is and the WSA Action = null
at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:88)
at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at
org.apache.synapse.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:256)
at
org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:448)
at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:241)
at
org.apache.synapse.transport.vfs.VFSTransportListener.onPoll(VFSTransportListener.java:145)
at
org.apache.synapse.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2008-07-30 12:12:24,484 [-] [vfs-Worker-1] DEBUG VFSTransportListener Error
receiving message
org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not
found is and the WSA Action = null
at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:88)
at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at
org.apache.synapse.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:256)
at
org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:448)
at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:241)
at
org.apache.synapse.transport.vfs.VFSTransportListener.onPoll(VFSTransportListener.java:145)
at
org.apache.synapse.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2008-07-30 12:12:24,593 [-] [vfs-Worker-1] ERROR VFSTransportSender Unable to
determine out transport information to send message
2008-07-30 12:12:24,593 [-] [vfs-Worker-1] ERROR VFSTransportListener Error
processing received message
org.apache.axis2.AxisFault: Unable to determine out transport information to
send message
at
org.apache.synapse.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:243)
at
org.apache.synapse.transport.vfs.VFSTransportSender.sendMessage(VFSTransportSender.java:161)
at
org.apache.synapse.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:127)
at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:530)
at
org.apache.synapse.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:263)
at
org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:448)
at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:241)
at
org.apache.synapse.transport.vfs.VFSTransportListener.onPoll(VFSTransportListener.java:145)
at
org.apache.synapse.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2008-07-30 12:12:24,593 [-] [vfs-Worker-1] ERROR VFSTransportListener Error
processing File URI : file:///C:/synapsefileexample/in/101000001750.csv
org.apache.axis2.AxisFault: Unable to determine out transport information to
send message
at
org.apache.synapse.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:243)
at
org.apache.synapse.transport.vfs.VFSTransportSender.sendMessage(VFSTransportSender.java:161)
at
org.apache.synapse.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:127)
at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:530)
at
org.apache.synapse.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:263)
at
org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:448)
at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:241)
at
org.apache.synapse.transport.vfs.VFSTransportListener.onPoll(VFSTransportListener.java:145)
at
org.apache.synapse.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2008-07-30 12:12:24,593 [-] [vfs-Worker-1] DEBUG VFSTransportListener Moving to
file :file:///C:/synapsefileexample/failed\101000001750.csv
2008-07-30 12:12:39,296 [-] [vfs-Worker-2] DEBUG VFSTransportListener Scanning
directory or file : file:///C:/synapsefileexample/in
Any ideas what I'm doing wrong?
Thanks,
Daniel McIver
________________________________
The information in this message is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this message by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, or distribution of the message, or any action or omission taken by you
in reliance on it, is prohibited and may be unlawful. Please immediately
contact the sender if you have received this message in error.
The views and opinions expressed in this email may not reflect the views and
opinions of any member of Lagan Technologies Limited, or any of its
subsidiaries.
Lagan Technologies Limited is a company registered in Northern Ireland with
registration number NI 28773. The registered office of Lagan Technologies
Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.
The information in this message is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this message by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, or distribution of the message, or any action or omission taken by you
in reliance on it, is prohibited and may be unlawful. Please immediately
contact the sender if you have received this message in error.
The views and opinions expressed in this email may not reflect the views and
opinions of any member of Lagan Technologies Limited, or any of its
subsidiaries.
Lagan Technologies Limited is a company registered in Northern Ireland with
registration number NI 28773. The registered office of Lagan Technologies
Limited is 209 Airport Road West, Belfast, Co. Antrim, BT3 9EZ.