Hi,

I am trying to send an attachement from a client to service cxf-bc.

Here is suppose to be the flow

client -> cxf-bc concumer -> NMR -> ftp-sender

Here is my client software for sending
InstantIssuanceServicesPortType mtomPort = createPort(MTOM_SERVICE,
MTOM_PORT, InstantIssuanceServicesPortType.class, true);
                String fileName = "C:\\esocketweb_trace.html";
                File file = new File(fileName);
                FileInputStream in = new FileInputStream(file);
                
            int fileSize = 0;
            for (int i = in.read(); i != -1; i = in.read())
                fileSize++;
            
            int count = 50;
            byte[] data = new byte[fileSize *  count];
            for (int x = 0; x < count; x++) 
                in.read(data, fileSize * x, fileSize);
String _testXop_nameVal = "Attachment";
            Holder<String> _testXop_name = new
Holder<String>(_testXop_nameVal);
            DataHandler _testXop_attachinfoVal = new DataHandler(new
ByteArrayDataSource(data, "application/octet-stream"));;
            Holder<DataHandler> _testXop_attachinfo = new
Holder<DataHandler>(_testXop_attachinfoVal);
            mtomPort.testXop(_testXop_name, _testXop_attachinfo);


Whenever I send, the send thread is bloeked forever and there is no sign of
it getting to servicemix.

Here is my wsdl

<?xml version="1.0" encoding="utf-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements. See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership. The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at


  http://www.apache.org/licenses/LICENSE-2.0


  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
-->

<wsdl:definitions name="SOAPBuilders-mime-cr-test"
xmlns:types="http://services.instantissuance/types";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:tns="http://services.instantissuance";
    xmlns:jms="http://cxf.apache.org/transports/jms";
    xmlns:xmime="http://www.w3.org/2005/05/xmlmime";
targetNamespace="http://services.instantissuance";>

    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://services.instantissuance/types";
            xmlns:xmime="http://www.w3.org/2005/05/xmlmime";
elementFormDefault="qualified">
            <complexType name="XopType">
                <sequence>
                    <element name="name" type="xsd:string" />
                    <element name="attachinfo" type="xsd:base64Binary"
xmime:expectedContentTypes="application/octet-stream"/>
                </sequence>

            </complexType>
            <complexType name="XopStringType">
                <sequence>
                    <element name="name" type="xsd:string" />
                    <element name="attachinfo" type="xsd:base64Binary"
xmime:expectedContentTypes="text/plain; charset=utf-8"/>
                </sequence>
            </complexType>
            
            <element name="testXop" type="types:XopType" />
            <element name="testXopResponse" type="types:XopType" />

            <element name="testXopStringArgument"
type="types:XopStringType"/>
            <element name="testXopStringResponse"
type="types:XopStringType"/>
        </schema>

    </wsdl:types>

    <wsdl:message name="testXopIn">
        <wsdl:part name="data" element="types:testXop"/>
    </wsdl:message>

    <wsdl:message name="testXopOut">
        <wsdl:part name="data" element="types:testXopResponse" />
    </wsdl:message>

    <wsdl:message name="testXopStringIn">
        <wsdl:part name="data" element="types:testXopStringArgument" />
    </wsdl:message>

    <wsdl:message name="testXopStringOut">
        <wsdl:part name="data" element="types:testXopStringResponse" />

    </wsdl:message>

    <wsdl:portType name="InstantIssuanceServicesPortType">
        <wsdl:operation name="testXop">
            <wsdl:input message="tns:testXopIn"/>
            <wsdl:output message="tns:testXopOut"/>
        </wsdl:operation>

        <wsdl:operation name="testXopString">
            <wsdl:input message="tns:testXopStringIn" />
            <wsdl:output message="tns:testXopStringOut"/>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="InstantIssuanceServicesBinding"
type="tns:InstantIssuanceServicesPortType">
        <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"; />

        <wsdl:operation name="testXop">
            <soap:operation soapAction="" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>

        <wsdl:operation name="testXopString">
            <soap:operation soapAction="" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name="InstantIssuanceServices">
        <!-- 
        <wsdl:port name="InstantIssuanceServicesPort"
binding="tns:InstantIssuancesServicesBinding">
            <soap:address location="http://localhost:9036/mime-test"; />
        </wsdl:port>
        -->
        <wsdl:port name="InstantIssuanceServicesJmsPort"
binding="tns:InstantIssuanceServicesBinding">
            <jms:address
               destinationStyle="queue"
               jndiConnectionFactoryName="ConnectionFactory"
               jndiDestinationName="dynamicQueues/person.queue">
               <jms:JMSNamingProperty name="java.naming.factory.initial"
value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
               <jms:JMSNamingProperty name="java.naming.provider.url"
value="tcp://localhost:61616"/>
          </jms:address>
          <jms:client messageType="byte"/>
        </wsdl:port>
    </wsdl:service>

    <wsdl:service name="InstantIssuanceServicesProviderService">
        <wsdl:port name="InstantIssuanceServicesProviderJmsPort"
binding="tns:InstantIssuanceServicesBinding">
            <jms:address
               destinationStyle="queue"
               jndiConnectionFactoryName="ConnectionFactory"
               jndiDestinationName="dynamicQueues/person.queue">
               <jms:JMSNamingProperty name="java.naming.factory.initial"
value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
               <jms:JMSNamingProperty name="java.naming.provider.url"
value="tcp://localhost:61616"/>
          </jms:address>
          <jms:client messageType="byte"/>
        </wsdl:port>
    </wsdl:service>

</wsdl:definitions>


Kindly help out.

-- 
View this message in context: 
http://www.nabble.com/No-trace-on-servicemix-tp25075918p25075918.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to