ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto Rodriguez Galdo (JIRA)" <j...@apache.org>
Subject [jira] Updated: (MUSE-221) Add support for xsd:binaryBase64 parameters and return values in WSDL and Axis2
Date Mon, 23 Apr 2007 12:57:15 GMT

     [ https://issues.apache.org/jira/browse/MUSE-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alberto Rodriguez Galdo updated MUSE-221:
-----------------------------------------

    Attachment: ProxyClassSynthesizer.java

Several test over the provided patch revealed that it is not complete, it wasn't still able
to handle byte[] return types on client proxy invocation.

I had to modify the method 'updateReturnTypes' of org.apache.muse.tools.generator.synthesizer.ProxyClassSynthesizer'
to comment out the call to ReflectUtils.getClassFromArrayClass(type) wich was removing the
array characterization of the initial 'type' variable an so it was affecting to the way Apache
Muse generates proxy code for a given WSDL with an operation wich uses a base64Binary as return
type.

You can see that the only change is that I commented out the faulty part...

private void updateReturnTypes(JavaMethod method) {
		Class type = method.getReturnType();

		/*if(type.isArray()) {
			type = ReflectUtils.getClassFromArrayClass(type);
		}*/
		
		_returnTypesCode.append(ReflectUtils.getShortName(type));
		_returnTypesCode.append(".class");
		_returnTypesCode.append(", ");
}


Please, review this change, look for other side effects I may have not taken into account,
and consider it to be aplied to the trunk along with the previous patch to have full in/out
byte[] types represented as xsd:base64Binary in Apache Muse.

Greets,

> Add support for xsd:binaryBase64 parameters and return values in WSDL and Axis2
> -------------------------------------------------------------------------------
>
>                 Key: MUSE-221
>                 URL: https://issues.apache.org/jira/browse/MUSE-221
>             Project: Muse
>          Issue Type: Improvement
>          Components: Tooling - Code Generation
>    Affects Versions: 2.2.0
>            Reporter: Alberto Rodriguez Galdo
>         Assigned To: Dan Jemiolo
>             Fix For: 2.3.0
>
>         Attachments: MUSE-221.zip, MUSE-221_v2_CLA.zip, ProxyClassSynthesizer.java
>
>
> When xsd:binaryBase64 is used a message in WSDL description, wsdl2java doesn't generates
the proper mapping, it simply uses org.w3c.dom.Element as when a unknown type is used or xsd:anyType
is used.
> The addition of binaryBase64 will allow the deployment custom capabilities that receive/return
binary data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


Mime
View raw message