On 10/12/07, Masahiro Nakamura <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> I installed axis 1.3 and converted a WSDL file to java (ADB) code.
> WSDL2Java command exited without errors, however I cannot build
> the result files.


there was a problem with union type processing. I have fixed it now and
please try with a nighly build.

Severity and Description Path Resource Location Creation Time Id
> The method fromString(XMLStreamReader, String, String) in the type
> Lang_type0.Factory is not applicable for the arguments (String, String)
> RNSClient2/src/org/oasis_open/docs/wsrf/bf_2 Description_type0.java line
> 468 1192180011932 38527
> Severity and Description Path Resource Location Creation Time Id
> The method fromString(XMLStreamReader, String, String) in the type
> Lang_type0.Factory is not applicable for the arguments (String, String)
> RNSClient2/src/org/oasis_open/docs/wsrf/bf_2 Description_type0.java line
> 473 1192180011932 38528
>
> The WSDL ( and schema ) file is here:
> http://yorozuya.ddo.jp/~yuryu/rns.wsdl
> http://yorozuya.ddo.jp/~yuryu/rns.xsd
>
> Is this a bug with wsdl2java or my WSDL file wrong?
>
> I have another question.
> The generated code use
> org.w3.www._2005._08.addressing.EndpointReferenceType instead of
> org.apache.axis2.addressing.EndpointReference.
> I could not find how to fix this issue.


use  ns2p option . you can set the package name you want to use for any name
space.

Amila.

-------- code ----------
> if (tempAttribLang!=null){
> java.lang.String content = tempAttribLang;
>
> if (tempAttribLang.indexOf(":") > 0) {
> // this seems to be a Qname so find the namespace and send
> prefix = tempAttribLang.substring(0, tempAttribLang.indexOf(":"));
> namespaceuri = reader.getNamespaceURI(prefix);
> object.setLang(
> org.w3.www.xml._1998.namespace.Lang_type0.Factory.fromString
> (tempAttribLang,namespaceuri));
> } else {
> // this seems to be not a qname send and empty namespace incase of it is
> // check is done in fromString method
> object.setLang(
> org.w3.www.xml._1998.namespace.Lang_type0.Factory.fromString
> (tempAttribLang,""));
> }
>
> } else {
> -----------------------
>
> Thanks
>
> ---
> Masahiro Nakamura
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Reply via email to