axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r529298 - in /webservices/axis2/trunk/java/modules: java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java
Date Mon, 16 Apr 2007 15:55:52 GMT
Author: dims
Date: Mon Apr 16 08:55:50 2007
New Revision: 529298

URL: http://svn.apache.org/viewvc?view=rev&rev=529298
Log:
merge from branch

Modified:
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
    webservices/axis2/trunk/java/modules/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java?view=diff&rev=529298&r1=529297&r2=529298
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/SchemaGenerator.java
Mon Apr 16 08:55:50 2007
@@ -501,11 +501,10 @@
             elt1.setSchemaTypeName(typeTable.getSimpleSchemaTypeName(propertyName));
             sequence.getItems().add(elt1);
 
-            if (isArryType) {
+            if (isArryType && (!propertyName.equals("base64Binary"))){
                 elt1.setMaxOccurs(Long.MAX_VALUE);
                 elt1.setMinOccurs(1);
             }
-
 
             if (String.class.getName().equals(propertyName)) {
                 elt1.setNillable(true);

Modified: webservices/axis2/trunk/java/modules/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java?view=diff&rev=529298&r1=529297&r2=529298
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java
Mon Apr 16 08:55:50 2007
@@ -55,6 +55,7 @@
             options.setTo(new EndpointReference(epr));
             options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
             options.setProperty(Constants.Configuration.HTTP_METHOD, Constants.Configuration.HTTP_METHOD_GET);
+	    options.setProperty(Constants.Configuration.MESSAGE_TYPE,org.apache.axis2.transport.http.HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
 
             //if post is through GET of HTTP
             OMElement response = client.sendReceive(getPayloadForYahooSearchCall(query, format));



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


Mime
View raw message