You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by he...@apache.org on 2006/03/08 05:10:55 UTC
svn commit: r384113 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java
Author: hemapani
Date: Tue Mar 7 20:10:52 2006
New Revision: 384113
URL: http://svn.apache.org/viewcvs?rev=384113&view=rev
Log:
update the AxisServiceBulder to create correct operations at the client side, (interchange te MEP)
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java?rev=384113&r1=384112&r2=384113&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java Tue Mar 7 20:10:52 2006
@@ -90,6 +90,17 @@
private Log logger = LogFactory.getLog(this.getClass().getName());
private int nsCount = 1;
+
+
+ private boolean serverSide = true;
+
+ public AxisServiceBuilder(){
+
+ }
+
+ public AxisServiceBuilder(boolean serverSide){
+ this.serverSide = true;
+ }
public AxisService getAxisService(InputStream wsdlInputStream)
throws DeploymentException {
@@ -395,13 +406,20 @@
private int getMessageExchangePattern(Operation wsdl4jOperation) {
logger.debug("AxisServiceBuilder.getMessageExchangePattern");
-
- if (wsdl4jOperation.getOutput() == null) {
- return WSDLConstants.MEP_CONSTANT_IN_ONLY;
-
- } else {
- return WSDLConstants.MEP_CONSTANT_IN_OUT;
+ if(serverSide){
+ if (wsdl4jOperation.getOutput() == null) {
+ return WSDLConstants.MEP_CONSTANT_IN_ONLY;
+ } else {
+ return WSDLConstants.MEP_CONSTANT_IN_OUT;
+ }
+ }else{
+ if (wsdl4jOperation.getOutput() == null) {
+ return WSDLConstants.MEP_CONSTANT_OUT_ONLY;
+ } else {
+ return WSDLConstants.MEP_CONSTANT_OUT_IN;
+ }
}
+
}
private XmlSchema getXMLSchema(Element element) {