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 ke...@apache.org on 2007/04/04 11:28:51 UTC

svn commit: r525474 - in /webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description: AxisOperationFactory.java AxisService.java

Author: keithc
Date: Wed Apr  4 02:28:50 2007
New Revision: 525474

URL: http://svn.apache.org/viewvc?view=rev&rev=525474
Log:
Updating the printWSDLError (We now genarate WSDL 1.1 for any messageReceiver).
Setting the mep in Robust_IN_Only


Modified:
    webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisOperationFactory.java
    webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisService.java

Modified: webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisOperationFactory.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisOperationFactory.java?view=diff&rev=525474&r1=525473&r2=525474
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisOperationFactory.java (original)
+++ webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisOperationFactory.java Wed Apr  4 02:28:50 2007
@@ -106,10 +106,12 @@
                 WSDL20_2006Constants.MEP_URI_ROBUST_OUT_ONLY.equals(mepURI) ||
                 WSDL20_2004_Constants.MEP_URI_ROBUST_OUT_ONLY.equals(mepURI)) {
             abOpdesc = new OutInAxisOperation();
+            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_ROBUST_OUT_ONLY);
         } else if (WSDL2Constants.MEP_URI_ROBUST_IN_ONLY.equals(mepURI) ||
                 WSDL20_2006Constants.MEP_URI_ROBUST_IN_ONLY.equals(mepURI) ||
                 WSDL20_2004_Constants.MEP_URI_ROBUST_IN_ONLY.equals(mepURI)) {
             abOpdesc = new InOnlyAxisOperation();
+            abOpdesc.setMessageExchangePattern(WSDL2Constants.MEP_URI_ROBUST_IN_ONLY);
         } else {
             throw new AxisFault(Messages.getMessage("unSupportedMEP", "ID is " + mepURI));
         }

Modified: webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisService.java?view=diff&rev=525474&r1=525473&r2=525474
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisService.java (original)
+++ webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisService.java Wed Apr  4 02:28:50 2007
@@ -1002,12 +1002,9 @@
     private void printWSDLError(OutputStream out) throws AxisFault {
         try {
             String wsdlntfound = "<error>" +
-                    "<description>Unable to generate WSDL for this service</description>" +
-                    "<reason>If you wish Axis2 to automatically generate the WSDL, then please use one of the RPC message " +
-                    "receivers for the service(s)/operation(s) in services.xml. If you have added a custom WSDL in the " +
-                    "META-INF directory, then please make sure that the name of the service in services.xml " +
-                    "(/serviceGroup/service/@name) is the same as in the " +
-                    "custom wsdl's service name (/wsdl:definitions/wsdl:service/@name). </reason>" +
+                    "<description>Unable to generate WSDL 1.1 for this service</description>" +
+                    "<reason>If you wish Axis2 to automatically generate the WSDL 1.1, then please +" +
+                    "set useOriginalwsdl as false in your services.xml" +
                     "</error>";
             out.write(wsdlntfound.getBytes());
             out.flush();



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