hi Brian,
Namespace qualifying was added purposely to avoid code generation tools generating duplicate complex type objects. As of current implementation there is no option to make namespace & prefix go away.

Take following configuration snippet for example.
Here 'customer' query is used twice, once from 'getCustomer' operation & again nested inside 'payments' query. We had to introduce namespace to tell data service engine that not to generate two complex types for 'Customer' object.


   <operation name="getCustomers">
       <call-query href="customers">
<with-param name="customerNumber" query-param="customerNumber" />
       </call-query>
   </operation>

   <query id="customers">
<sql>select customerNumber,customerName,phone,city from customers where customerNumber = ?</sql> <result element="Customers" rowName="Customer" defaultNamespace="http://customers.abc.org";>
       <element name="customerNumber" column="customerNumber" />
       <element name="customerName" column="customerName" />
       <element name="phone" column="phone" />
       <element name="city" column="city" />
       <call-query href="orders">
<with-param name="customerNumber" query-param="customerNumber" />
       </call-query>
      </result>
      <param name="customerNumber" sqlType="INTEGER" />
   </query>

   <operation name="getPayments">
       <call-query href="payments">
       </call-query>
   </operation>

   <query id="payments">
<sql>select customerNumber,checkNumber,amount from payments where customerNumber = 103</sql> <result element="Payments" rowName="Payment" defaultNamespace="http://payments.abc.org";>
       <element name="customerNumber" column="customerNumber" />
       <element name="checkNumber" column="checkNumber" />
       <element name="amount" column="amount" />
       <call-query href="customers">
<with-param name="customerNumber" query-param="customerNumber" /> </call-query> </result>
   </query>

/sumedha


Brian Lund wrote:

In the upgrade from 2.1 to 2.2 our returned xml elements now have a datas namespace where there was none. What change do I have to make so that only the parent element has a namespace (like how it functioned with the wsas 2.1)?

Thanks!

------------------------------------------------------------------------

_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev


_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to