how to get rid of arg0 in wsdl file

2008-02-05 Thread yulinxp

I am having those arg0 in the wsdl file.
xsd:element minOccurs=0 name=arg0 type=xsd:string/

I can use @WebParam(name=xxx) to annotate if using JAX-WS Frontend.
But what do I do if for simple frontend? 
-- 
View this message in context: 
http://www.nabble.com/how-to-get-rid-of-arg0-in-wsdl-file-tp15291440p15291440.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: how to get rid of arg0 in wsdl file

2008-02-05 Thread Daniel Kulp
On Tuesday 05 February 2008, yulinxp wrote:
 I am having those arg0 in the wsdl file.
 xsd:element minOccurs=0 name=arg0 type=xsd:string/

 I can use @WebParam(name=xxx) to annotate if using JAX-WS Frontend.
 But what do I do if for simple frontend?

I THINK with the simple frontend the only option is to compile with full 
debug information on (-g) and to set the service class to the full impl 
class, not any interface that it implements.   In that case, I think it 
pulls the names from the debugging information.

The only other option I think is to write your own subclass of the 
AbstractServiceConfiguration class and override the getInParameterName 
(maybe getInPartName as well if rpc/lit) to return whatever you need it 
to return.

I keep wanting to create a AbstractServiceConfiguration subclass that 
would pull a lot of this information from either xml or possibly from a 
relaxng thing or similar.   Maybe even IDL. Thus, you could add this 
additional metadata through a variety of formats that are a bit nicer to 
deal with than XML.

-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Re: how to get rid of arg0 in wsdl file

2008-02-05 Thread Benson Margulies

On Tue, 2008-02-05 at 11:07 -0500, Daniel Kulp wrote:
 On Tuesday 05 February 2008, yulinxp wrote:
  I am having those arg0 in the wsdl file.
  xsd:element minOccurs=0 name=arg0 type=xsd:string/
 
  I can use @WebParam(name=xxx) to annotate if using JAX-WS Frontend.
  But what do I do if for simple frontend?

Use .aegis.xml files to spec out the methods. That required Aegis
instead of JAXB.





Re: how to get rid of arg0 in wsdl file

2008-02-05 Thread Benson Margulies
?xml version=1.0 encoding=UTF-8?
!--
  Licensed to the v Software Foundation (ASF) under one
  or more contributor license agreements. See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership. The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  License); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at
 
  http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
--
mappings xmlns:ns=http://fortest.cxf.apache.org;
  mapping name=ns:AegisService
method name=acceptAny
  parameter index=0 mappedName=before/
  parameter index=1 mappedName=anything/
/method
method name=acceptObjects
  parameter index=0 mappedName=anything/
/method
method name=acceptStrings
  parameter index=0 mappedName=anything/
/method
  /mapping
/mappings



On Tue, 2008-02-05 at 10:35 -0800, yulinxp wrote:
 I am using Aegis binding for simple frontend.
 Could you pls give me an example for  .aegis.xml files?
 
 
 
 
 Benson Margulies-4 wrote:
  
  
  On Tue, 2008-02-05 at 11:07 -0500, Daniel Kulp wrote:
  On Tuesday 05 February 2008, yulinxp wrote:
   I am having those arg0 in the wsdl file.
   xsd:element minOccurs=0 name=arg0 type=xsd:string/
  
   I can use @WebParam(name=xxx) to annotate if using JAX-WS Frontend.
   But what do I do if for simple frontend?
  
  Use .aegis.xml files to spec out the methods. That required Aegis
  instead of JAXB.
  
  
  
  
  
 



Re: how to get rid of arg0 in wsdl file

2008-02-05 Thread yulinxp

I am using Aegis binding for simple frontend.
Could you pls give me an example for  .aegis.xml files?




Benson Margulies-4 wrote:
 
 
 On Tue, 2008-02-05 at 11:07 -0500, Daniel Kulp wrote:
 On Tuesday 05 February 2008, yulinxp wrote:
  I am having those arg0 in the wsdl file.
  xsd:element minOccurs=0 name=arg0 type=xsd:string/
 
  I can use @WebParam(name=xxx) to annotate if using JAX-WS Frontend.
  But what do I do if for simple frontend?
 
 Use .aegis.xml files to spec out the methods. That required Aegis
 instead of JAXB.
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-get-rid-of-arg0-in-wsdl-file-tp15291440p15296616.html
Sent from the cxf-user mailing list archive at Nabble.com.