You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Mark B. Elrod" <el...@vindicia.com> on 2004/01/03 02:47:35 UTC

Potential fix for problem

First, I identified that the REAL problem is that my WSDL has periods in 
the names of some of my types. The following change to Type::qname2LSN 
solves the issue for me I believe. Anyone see a problem with stripping 
"." from the name?

/**
     *  This mrthod define the standread conversion from qname to 
language spesific name
     *  @return language specific name
     */
    protected String qname2LSN(){
       String nsuri = this.name.getNamespaceURI();
       if(nsuri == null) return  this.name.getLocalPart();
    
       if(language.equalsIgnoreCase(WrapperConstants.LANGUAGE_CPP)){
            /* if it is CPP the namespace is neglected fr time been */
         return this.name.getLocalPart().replaceAll("\\.", "");
       }else if (language.equalsIgnoreCase(WrapperConstants.LANGUAGE_C)){
         return this.name.getLocalPart().replaceAll("\\.", "");
       }else              
         return 
WrapperUtils.firstCharacterToLowercase(WrapperUtils.nsURI2packageName(nsuri)) 
+"."+ WrapperUtils.capitalizeFirstCaractor(this.name.getLocalPart());
    }

elrod

-- 
Mark Elrod
Vindicia, Inc.
2755 Campus Drive, Suite 240
San Mateo, California 94403

Email: elrod@vindicia.com
Cell:  650-483-5763
Work:  650-522-4484
Main:  650-522-4480
Fax:   650-345-1165
Web:   http://www.vindicia.com