You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2006/11/11 15:55:57 UTC
svn commit: r473720 -
/webservices/axis2/branches/java/1_1/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Author: amilas
Date: Sat Nov 11 06:55:56 2006
New Revision: 473720
URL: http://svn.apache.org/viewvc?view=rev&rev=473720
Log:
this was an problem with generating the code with -s -ssi for operations having only an input. This is because in
getOutputElement method it gets the AxisOutput Message without checking. put that code after if statement.
Modified:
webservices/axis2/branches/java/1_1/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Modified: webservices/axis2/branches/java/1_1/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?view=diff&rev=473720&r1=473719&r2=473720
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java (original)
+++ webservices/axis2/branches/java/1_1/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java Sat Nov 11 06:55:56 2006
@@ -1883,25 +1883,27 @@
Element outputElt = doc.createElement("output");
String MEP = operation.getMessageExchangePattern();
- AxisMessage outMessage = operation.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
- if (outMessage != null) {
- PolicyInclude policyInclude = outMessage.getPolicyInclude();
- Policy policy = policyInclude.getPolicy();
+
+ if (WSDLUtil.isOutputPresentForMEP(MEP)) {
+
+ AxisMessage outMessage = operation.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
+ if (outMessage != null) {
+ PolicyInclude policyInclude = outMessage.getPolicyInclude();
+ Policy policy = policyInclude.getPolicy();
- if (policy != null) {
- policy = (Policy) policy.normalize(policyInclude.getPolicyRegistry(), false);
+ if (policy != null) {
+ policy = (Policy) policy.normalize(policyInclude.getPolicyRegistry(), false);
- try {
- String policyString = PolicyUtil.policyComponentToString(policy);
- policyString = PolicyUtil.getSafeString(policyString);
+ try {
+ String policyString = PolicyUtil.policyComponentToString(policy);
+ policyString = PolicyUtil.getSafeString(policyString);
- } catch (Exception e ) {
- throw new RuntimeException(e);
+ } catch (Exception e ) {
+ throw new RuntimeException(e);
+ }
}
}
- }
- if (WSDLUtil.isOutputPresentForMEP(MEP)) {
Element param = getOutputParamElement(doc, operation);
if (param != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org