0 Replies Latest reply: Oct 28, 2009 10:39 AM by 843830 RSS

    Problem with OutBound file binding

    843830
      Hi,

      I have a problem with sun-file-binding for write files in a directory.
      I have a service engine that send a message to the file-binding and the binding-component must write the file
      on a directory.

      But I have this error:

      FILEBC-E00791: Solicited Read Failed. service: {http://www.sun.com/jbi/examples/sample-service/echo}echoService2, endpoint: echoEP_JBIPort2, operation: {http://www.sun.com/jbi/examples/sample-service/echo}echo. Error was: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo]..
      Consumer:Processing Message Exchange with status Error
      The log message is null.
      java.lang.Exception: Consumer:INOUT Message Exchange status ERROR.
      java.lang.Exception: FILEBC-E00791: Solicited Read Failed. service: {http://www.sun.com/jbi/examples/sample-service/echo}echoService2, endpoint: echoEP_JBIPort2, operation: {http://www.sun.com/jbi/examples/sample-service/echo}echo. Error was: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo]..
      at com.sun.jbi.filebc.OutboundMessageProcessor.setError(OutboundMessageProcessor.java:820)
      at com.sun.jbi.filebc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:301)
      at com.sun.jbi.filebc.OutboundMessageProcessor.run(OutboundMessageProcessor.java:174)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.Exception: FILEBC_E00760: Missing required Input properties for outbound file operation [{http://www.sun.com/jbi/examples/sample-service/echo}echo].
      at com.sun.jbi.filebc.OutboundMessageProcessor.validateOutboundMessageExchangeProperties(OutboundMessageProcessor.java:1499)
      at com.sun.jbi.filebc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:272)
      ... 2 more
      at it.ditech.jbi.component.utils.RingOneMessageHandler.processInOutMessageExchangeOnConsumer(RingOneMessageHandler.java:262)
      at it.ditech.jbi.component.utils.RingOneMessageHandler.doInOutMessageExchange(RingOneMessageHandler.java:130)
      at it.ditech.jbi.component.utils.RingOneMessageHandler.processInOutMessageExchangeOnProvider(RingOneMessageHandler.java:325)
      at it.ditech.jbi.component.utils.RingOneMessageHandler.receiveAndProcessMessageExchange(RingOneMessageHandler.java:355)
      at it.ditech.jbi.component.utils.RingOneMessageHandler$1.run(RingOneMessageHandler.java:191)
      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)

      this is my WSDL file:

      <?xml version='1.0' encoding="UTF-8" standalone="yes" ?>
      <definitions
      targetNamespace="http://www.sun.com/jbi/examples/sample-service/echo"
      name="echo"
      xmlns:tns="http://www.sun.com/jbi/examples/sample-service/echo"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns="http://schemas.xmlsoap.org/wsdl/"
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:file="http://schemas.sun.com/jbi/wsdl-extensions/file/">

      <types>
      <xsd:schema targetNamespace="http://www.sun.com/jbi/examples/sample-service/echo">
      <xsd:element name="item">
      <xsd:complexType>
      <xsd:sequence>
      <xsd:element type="xsd:string" name="value"/>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </types>

      <message name="echo">
      <part name="part"
      element="tns:item">
      </part>
      </message>

      <portType name="echo">
      <operation name="echo">
      <input name="echo" message="tns:echo"/>
      </operation>
      </portType>

      <binding name="Binding" type="tns:echo">
      <file:binding/>
      <operation name="echo">
      <file:operation verb="write">
      <input name="echo" message="tns:echo">
      <file:message use="literal" fileName="output-%t.xml" fileNameIsPattern="true"/>
      </input>
      </file:operation>
      </operation>
      </binding>

      <service name="echoService2">
      <port name="echoEP_JBIPort2" binding="tns:Binding">
      <file:address fileDirectory="/home/roger/Scrivania/in-out"/>
      </port>
      </service>

      </definitions>

      Is there anyone that can help me?

      Thanks

      Roberto