axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhanush Gopinath" <>
Subject Is MimeBodyPart included as a type in AXIS ??? - To Send Attachemtn s
Date Fri, 14 May 2004 08:05:38 GMT

Hi All,

I am trying to send SOAP Message with attachment using Apache Axis Engine. 

This is my reference :,t=grws

I declared my interface, created the wsdl file by Java2WSDL. Now my Webservice method takes
a parameter of type SOAPContext, so that i could extract the attachment .. the wsdl file for
that is as shown.

 <complexType name="SOAPContext">
     <element name="baseURI" nillable="true" type="xsd:string"/>
     <element name="bodyPart" nillable="true" type="xsd:anyType" maxOccurs="unbounded"/>
     <element name="classLoader" nillable="true" type="xsd:anyType"/>
     <element name="contentType" nillable="true" type="xsd:string"/>
     <element name="count" type="xsd:int"/>
     <element name="propertyNames" nillable="true" type="xsd:anyType"/>
     <element name="rootPart" nillable="true" type="tns3:MimeBodyPart"/>
     <element name="rootPartSet" type="xsd:boolean"/>
     <element name="subType" nillable="true" type="xsd:string"/>

I modified the WSDL to include the mime part .. See below....

 <wsdl:input name="putMessageRequest">
         <wsdlsoap:body use="encoded" encodingStyle=""
namespace="" parts="in0" />      
     <mime:content part="in1" type="image/gif"/>


Now when i try running the WSDL2JAVA command  I get following exception Type MimeBodyPart is referenced but not defined.
 at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(
 at org.apache.axis.wsdl.symbolTable.SymbolTable.add(
 at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
 at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
 at org.apache.axis.wsdl.gen.Parser$

The org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined() method in
is throwing an Exception because it doesn't recognise the Type MimeBodyPart.(in red above)

Doesn't Axis Support this type ? If not what should be done to include this part as an attachment.

Please help me as I am stuck here for 2 days.

Thanks & Regards


This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

Visit us at

View raw message