axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S?bastien Tardif (JIRA) <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-1628) WSDL2JAVA do not handle having parameter as DIME attachment with others parameters which are not DIME.
Date Wed, 27 Oct 2004 21:22:33 GMT
WSDL2JAVA do not handle having parameter as DIME attachment with others parameters which are
not DIME.
------------------------------------------------------------------------------------------------------

         Key: AXIS-1628
         URL: http://issues.apache.org/jira/browse/AXIS-1628
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC1    
 Environment: CVS 10/22/2004
    Reporter: Sébastien Tardif


WSDL2JAVA do not handle having parameter as DIME attachment with others parameters which are
not DIME.

I have a WSDL with this:
…

<complexType name="ReferencedBinary">
<simpleContent>
		<extension base="base64Binary">
			<annotation>
				<appinfo>
					<content:mediaType value="application/octetstream"/>
				</appinfo>
			</annotation>					
		</extension>
	</simpleContent>
</complexType>
<element name="importDocumentAsDime" type="impl:importDocumentAsDime_t"/> 
<complexType name="importDocumentAsDime_t">
		<sequence>
			<element name="document" type="impl:ReferencedBinary"/>
		</sequence>
	</complexType>
</schema>
</wsdl:types>
	<wsdl:message name="importDocumentRequestAsDime">
		<wsdl:part name="parameters" element="impl:importDocumentAsDime"/>
	</wsdl:message>
…

The Java method generated is:
public void importDocumentAsDime(javax.activation.DataHandler document) throws java.rmi.RemoteException;

but if I add a element to the complex type: “importDocumentAsDime_t” Axis now think that
all my parameters are DIME attachment. As an example with:
	<complexType name="importDocumentAsDime_t">
		<sequence>
			<element name="document" type="impl:ReferencedBinary"/>
			<element name="myString" type="xsd:string"/>
		</sequence>
	</complexType>

Axis gives this method signature:
public void importDocumentAsDime(javax.activation.DataHandler document, javax.activation.DataHandler
myString) throws java.rmi.RemoteException;

You can reproduce with the attached WSDL with operation importDocumentAsDime.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message