Hello Team,

I am using SMX CXF-BC and CXF-SE. I want to send a SOAP request that will
have the attachment (some .xls file) to webservice. I am successfully able
to deploy the SA whose SU's comprise of CXFBC and CXFSE. The problem that I
am facing is the attchment part that I am getting is coming as null.

Any help or pointers are highly appreciated.

For reference, I have attached the wsdl and the xbean.xml for both CXFBC and
CXFSE.

Thanks,
Brahma Chauhan
<?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.

-->
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0";
       xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/schema/servicemix-cxfse-3.2.2.xsd
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

    <cxfse:endpoint mtomEnabled="true" pojo="#customImpl"/> 
    <bean id="customImpl" class="com.thirdpillar.AttachmentCopierServiceImpl" />

</beans>
<?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.

-->
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
       xmlns:thirdpillar="http://www.thirdpillar.com";
       xmlns:reporting="http://schemas.thirdpillar.com/Reporting";
       xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>


	  <cxfbc:consumer wsdl="classpath:attachmentCopier.wsdl"
				service="thirdpillar:AttachmentCopierComponent"
				endpoint="AttachmentCopier"
				timeout="600"
				targetService="thirdpillar:AttachmentCopierComponent"
				mtomEnabled="true"
				useJbiWrapper="false">
	  </cxfbc:consumer>
	  


</beans>

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/";
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
	xmlns:xs="http://www.w3.org/2001/XMLSchema";
	xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
	xmlns:tpintegration="http://www.thirdpillar.com";
	xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
	targetNamespace="http://www.thirdpillar.com";>
	<types>
	<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema";>

</xs:schema>
		<xs:schema elementFormDefault="qualified"
			xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
			xmlns:xs="http://www.w3.org/2001/XMLSchema";
			xmlns:tpintegration="http://www.thirdpillar.com";
			targetNamespace="http://www.thirdpillar.com";>

			<xs:simpleType name="ac">
				<xs:restriction base="xs:hexBinary" />
			</xs:simpleType>

			<xs:complexType name="InputRequestAttachment">
				<xs:sequence>
					<xs:element name="attachRef1" type="tpintegration:ac">
						<xs:annotation>
							<xs:appinfo>
								<mime:expectedMediaType>
									application/vnd.ms-excel
								</mime:expectedMediaType>
							</xs:appinfo>
						</xs:annotation>
					</xs:element>
					  <xs:element name="ISRPReport">
					    <xs:complexType>
					      <xs:sequence>
						<xs:element minOccurs="0" name="generatedDttm" type="xs:string" />
					      </xs:sequence>
					    </xs:complexType>
					  </xs:element>
				</xs:sequence>
			</xs:complexType>
			<xs:element name="InputRequestAttachmentCopier"
				type="tpintegration:InputRequestAttachment" />
		</xs:schema>
	</types>

	<message name="AttachmentCopierRequest">
		<part name="AttachmentCopierRequest"
			element="tpintegration:InputRequestAttachmentCopier" />
	</message>
	<portType name="AttachmentCopier">
		<operation name="attachmentCopierWebService">
			<input message="tpintegration:AttachmentCopierRequest" />
		</operation>
	</portType>
	<binding name="attachmentCopierBinding"
		type="tpintegration:AttachmentCopier">
		<soap:binding style="document"
			transport="http://schemas.xmlsoap.org/soap/http"; />
		<operation name="attachmentCopierWebService">
			<soap:operation
				soapAction="attachmentCopierWebService" />
			<input>
				<soap:body use="literal" />
			</input>
		</operation>
	</binding>
	<service name="AttachmentCopierComponent">
		<documentation>
			Webservice dumping the attachment to designated folder.
		</documentation>
		<port name="attachmentCopierPort"
			binding="tpintegration:attachmentCopierBinding">
			<soap:address
				location="http://localhost:8193/outbound/AttachmentCopierService/"; />
		</port>
	</service>
</definitions>

Reply via email to