You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org> on 2006/09/28 02:50:52 UTC

[jira] Created: (AXIS2-1252) java2wsdl generates unknown namespace

java2wsdl generates unknown namespace
-------------------------------------

                 Key: AXIS2-1252
                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: wsdl
            Reporter: Kinichiro Inoguchi


This issue comes from user mailing list.
http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2

java2wsdl generates unknown namespace, "http://test/xsd".

I'm using current nightly.
My service class has method "sayHello", 
and returns array of simple java beans "HelloBean".

Then I run java2wsdl, sayHello and sayHelloResponse 
are in namespace "http://aaa.bbb/types".

But, HelloBean is in unknown namespace "http://test/xsd".

Is this a bug ?

C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
  -cn test.TestService1 -cp . 
  -tn http://aaa.bbb -tp xxx 
  -stn http://aaa.bbb/types -stp yyy 
  -sn TestService1 -of TestService1.wsdl

generated WSDL is like this;

  <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
    <wsdl:types>
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
        <xs:element name="HelloBean" type="ax22:HelloBean" /> 
        <xs:complexType name="HelloBean">
          <xs:sequence>
            <xs:element name="ret1" type="xs:string" /> 
            <xs:element name="ret2" type="xs:int" /> 
            <xs:element name="ret3" type="xs:long" /> 
            <xs:element name="ret4" type="xs:double" /> 
            <xs:element name="ret5" type="xs:float" /> 
            <xs:element name="ret6" type="xs:short" /> 
            <xs:element name="ret7" type="xs:boolean" /> 
          </xs:sequence>
        </xs:complexType>
      </xs:schema>
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
        <xs:element name="sayHello">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="var1" type="xs:string" /> 
              <xs:element name="var2" type="xs:int" /> 
              <xs:element name="var3" type="xs:long" /> 
              <xs:element name="var4" type="xs:double" /> 
              <xs:element name="var5" type="xs:float" /> 
              <xs:element name="var6" type="xs:short" /> 
              <xs:element name="var7" type="xs:boolean" /> 
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="sayHelloResponse">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:schema>
    </wsdl:types>
  ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Re: [jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by Venkata Krishnan <fo...@gmail.com>.
Dims / Deepal

Also, what one can specify in the command line as an option is the
targetnamespace for the wsdl types and for the wsdl defintion.  The
namespaces for the data types that get used in the service methods (as
arguments or return values) are derived from the package names. Right now
there is no means (from whatever litter i know of this code) whereby one
could explicitly provide a map of datatypes and namespaces under which they
should qualify.  Am I right in this understanding?

Thanks

- Venkat

On 9/28/06, Kinichiro Inoguchi (JIRA) <ji...@apache.org> wrote:
>
>     [
> http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12438263]
>
> Kinichiro Inoguchi commented on AXIS2-1252:
> -------------------------------------------
>
> [Deepal's answer]
> This is not a bug , that is the how it  has implemented
> As I can understand ,
> the package name of the service is "test"
>
> That is why it generate that namespace, so when sending the req need
> send that with that namespace (pls have a look at the wsdl , req should
> be according to thta)
> and if you want to change the namespace you can do that too , changing
> services.xml
>
> [Davanum's opinion]
> I completely understand that. What i wanted to do with the bug report
> was to add a log.INFO saying that the schema target namespace is
> "http://test/xsd" and if you want to change it then specify it on the
> command line AND/OR at least mention this in docs for j2w how we
> compute the schema target namespace.
>
> > java2wsdl generates unknown namespace
> > -------------------------------------
> >
> >                 Key: AXIS2-1252
> >                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
> >             Project: Apache Axis 2.0 (Axis2)
> >          Issue Type: Improvement
> >          Components: wsdl
> >            Reporter: Kinichiro Inoguchi
> >
> > This issue comes from user mailing list.
> > http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> > java2wsdl generates unknown namespace, "http://test/xsd".
> > I'm using current nightly.
> > My service class has method "sayHello",
> > and returns array of simple java beans "HelloBean".
> > Then I run java2wsdl, sayHello and sayHelloResponse
> > are in namespace "http://aaa.bbb/types".
> > But, HelloBean is in unknown namespace "http://test/xsd".
> > Is this a bug ?
> > C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat
> >   -cn test.TestService1 -cp .
> >   -tn http://aaa.bbb -tp xxx
> >   -stn http://aaa.bbb/types -stp yyy
> >   -sn TestService1 -of TestService1.wsdl
> > generated WSDL is like this;
> >   <wsdl:definitions xmlns:soap12="
> http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="
> http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="
> http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types"
> xmlns:xxx="http://aaa.bbb" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
> >     <wsdl:types>
> >       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd"
> attributeFormDefault="qualified" elementFormDefault="qualified">
> >         <xs:element name="HelloBean" type="ax22:HelloBean" />
> >         <xs:complexType name="HelloBean">
> >           <xs:sequence>
> >             <xs:element name="ret1" type="xs:string" />
> >             <xs:element name="ret2" type="xs:int" />
> >             <xs:element name="ret3" type="xs:long" />
> >             <xs:element name="ret4" type="xs:double" />
> >             <xs:element name="ret5" type="xs:float" />
> >             <xs:element name="ret6" type="xs:short" />
> >             <xs:element name="ret7" type="xs:boolean" />
> >           </xs:sequence>
> >         </xs:complexType>
> >       </xs:schema>
> >       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types"
> targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified"
> elementFormDefault="qualified">
> >         <xs:element name="sayHello">
> >           <xs:complexType>
> >             <xs:sequence>
> >               <xs:element name="var1" type="xs:string" />
> >               <xs:element name="var2" type="xs:int" />
> >               <xs:element name="var3" type="xs:long" />
> >               <xs:element name="var4" type="xs:double" />
> >               <xs:element name="var5" type="xs:float" />
> >               <xs:element name="var6" type="xs:short" />
> >               <xs:element name="var7" type="xs:boolean" />
> >             </xs:sequence>
> >           </xs:complexType>
> >         </xs:element>
> >         <xs:element name="sayHelloResponse">
> >           <xs:complexType>
> >             <xs:sequence>
> >               <xs:element name="return" maxOccurs="unbounded"
> type="gen798:HelloBean" nillable="true" />
> >             </xs:sequence>
> >           </xs:complexType>
> >         </xs:element>
> >       </xs:schema>
> >     </wsdl:types>
> >   ...
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

Re: [jira] Updated: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by Venkata Krishnan <fo...@gmail.com>.
Hi,

Could you please help with the package information for the class HelloBean.
i.e. is the fully qualified name of the class HelloBean - "test.HelloBean" ?

Thanks.

On 10/1/06, Davanum Srinivas (JIRA) <ji...@apache.org> wrote:
>
>      [ http://issues.apache.org/jira/browse/AXIS2-1252?page=all ]
>
> Davanum Srinivas updated AXIS2-1252:
> ------------------------------------
>
>     Priority: Blocker  (was: Major)
>
> Let's get this one right.
>
> -- dims
>
> > java2wsdl generates unknown namespace
> > -------------------------------------
> >
> >                 Key: AXIS2-1252
> >                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
> >             Project: Apache Axis 2.0 (Axis2)
> >          Issue Type: Improvement
> >          Components: wsdl
> >            Reporter: Kinichiro Inoguchi
> >            Priority: Blocker
> >
> > This issue comes from user mailing list.
> > http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> > java2wsdl generates unknown namespace, "http://test/xsd".
> > I'm using current nightly.
> > My service class has method "sayHello",
> > and returns array of simple java beans "HelloBean".
> > Then I run java2wsdl, sayHello and sayHelloResponse
> > are in namespace "http://aaa.bbb/types".
> > But, HelloBean is in unknown namespace "http://test/xsd".
> > Is this a bug ?
> > C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat
> >   -cn test.TestService1 -cp .
> >   -tn http://aaa.bbb -tp xxx
> >   -stn http://aaa.bbb/types -stp yyy
> >   -sn TestService1 -of TestService1.wsdl
> > generated WSDL is like this;
> >   <wsdl:definitions xmlns:soap12="
> http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="
> http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="
> http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types"
> xmlns:xxx="http://aaa.bbb" xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
> >     <wsdl:types>
> >       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd"
> attributeFormDefault="qualified" elementFormDefault="qualified">
> >         <xs:element name="HelloBean" type="ax22:HelloBean" />
> >         <xs:complexType name="HelloBean">
> >           <xs:sequence>
> >             <xs:element name="ret1" type="xs:string" />
> >             <xs:element name="ret2" type="xs:int" />
> >             <xs:element name="ret3" type="xs:long" />
> >             <xs:element name="ret4" type="xs:double" />
> >             <xs:element name="ret5" type="xs:float" />
> >             <xs:element name="ret6" type="xs:short" />
> >             <xs:element name="ret7" type="xs:boolean" />
> >           </xs:sequence>
> >         </xs:complexType>
> >       </xs:schema>
> >       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types"
> targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified"
> elementFormDefault="qualified">
> >         <xs:element name="sayHello">
> >           <xs:complexType>
> >             <xs:sequence>
> >               <xs:element name="var1" type="xs:string" />
> >               <xs:element name="var2" type="xs:int" />
> >               <xs:element name="var3" type="xs:long" />
> >               <xs:element name="var4" type="xs:double" />
> >               <xs:element name="var5" type="xs:float" />
> >               <xs:element name="var6" type="xs:short" />
> >               <xs:element name="var7" type="xs:boolean" />
> >             </xs:sequence>
> >           </xs:complexType>
> >         </xs:element>
> >         <xs:element name="sayHelloResponse">
> >           <xs:complexType>
> >             <xs:sequence>
> >               <xs:element name="return" maxOccurs="unbounded"
> type="gen798:HelloBean" nillable="true" />
> >             </xs:sequence>
> >           </xs:complexType>
> >         </xs:element>
> >       </xs:schema>
> >     </wsdl:types>
> >   ...
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12439362 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

Hi Venkat,

Thanks for good explanations.

I just believed that namespace of "type" used by service 
is same as "schema namespace".
And I didn't know package of class was used for namespace.

AXIS2-805 is same kind of issue. I understand. 

So, this "diference of namespace" issue is NOT a bug.
This is spec of current AXIS2.

- some log4j info message should be supplied for namespace
  as dims mentioned.
- "How to compute namespace" should be documented, someday.

Thanks

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12439002 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi.. could you please update with information on the package informaton of the class HelloBean.  That will be helpful.  Thanks

- Venkat

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12438263 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

[Deepal's answer]
This is not a bug , that is the how it  has implemented
As I can understand ,
the package name of the service is "test"

That is why it generate that namespace, so when sending the req need
send that with that namespace (pls have a look at the wsdl , req should
be according to thta)
and if you want to change the namespace you can do that too , changing
services.xml

[Davanum's opinion]
I completely understand that. What i wanted to do with the bug report
was to add a log.INFO saying that the schema target namespace is
"http://test/xsd" and if you want to change it then specify it on the
command line AND/OR at least mention this in docs for j2w how we
compute the schema target namespace.

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440041 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

Deepal, I confirmed this was done as before I claimed.

Then, Venkat and Deepal, I posted this to user mailing list.
http://marc.theaimsgroup.com/?l=axis-user&m=115997802221436&w=2

I summarize before and after "svn commit r452771" in this mail.

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12439705 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi Dims,  

Llet me know where to do this and I shall be happy to help with this.

Thanks

- Venkat

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440143 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

Hi

Yes, It seems so.
And if  schemaTargetNamespace has NOT been specified,
every types will fall in their own "http://" + package-name + "/xsd".

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12438391 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

Hi Deepal,

>> and if you want to change the namespace you can do that too ,

I executed j2w with -stn option, see below.
So, I think namespace should be "http://aaa.bbb/types".

> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat
>   -cn test.TestService1 -cp .
>   -tn http://aaa.bbb -tp xxx
>   -stn http://aaa.bbb/types -stp yyy
>   -sn TestService1 -of TestService1.wsdl


> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12441152 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

dims, Venkat, Deepal, 

Thanks for your discussions.
I agree with algorithm of dims, 
and I believe current SVN implements #1 and #3.

But I think algorithm #2 seems difficult to use,
because I can't imagine how to specify MANY schematargetnamespace.

Do you mean like this ?

  command line option of java2wsdl
    java2wsdl -stn test1=http://aaa/ -stn test2=http://bbb/ ...

  services.xml
    <schema pkg="test1" schemaNamespace="http://aaa/"/>
    <schema pkg="test2" schemaNamespace="http://bbb/"/>

This examples, test1 and test2 means package of class.

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1252?page=all ]

Davanum Srinivas resolved AXIS2-1252.
-------------------------------------

    Resolution: Fixed

Venkat,

Applied the patch. I will create another issue with some additional changes required.

Thanks,
dims

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>         Attachments: Axis2-java2wsdl-Oct-12.diff
>
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12441357 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi Dims,

My understanding of the 'stn' option is that it is to be used as the namespace for the schema definitions of the wsdl types i.e. the types that are generated for the message parts.  

It so happened earlier that all data types would get pushed into this namespace i.e. even the ones that represented the arguments and return types in the service methods.  My personal opinion of this is that it is not clean but just about convenient.  However I am not sure how acceptable this has become in practice in the webservices world so much so this is getting to be absorbed as the right thing to do.

I would just about prefer the following: -
- the 'stn' be left alone as it is to specify the namespace for the wsdl types.  We don't try to mix this mix this option up.
- support the following for namespace generation for all other types 
      - if there is a  'package to namespace' mapping that is provided (or input) then use that mapping for the relevant packages.  The format for this can be either -nsMap[pkg1=ns1, pk2=ns2]  OR -nsMap pkg1=ns1 -nsMap pkg2=ns2 and so on.  I am open to also any other way of doing this.
      - wherever there is no package to namespace mapping specified then the namespace will be generated based on the package name.  For this we can probably provide little more flexibility by allowing users to overide the way a package name is converted to a namespace.  i.e a user who'd want to generate namespaces from package names using some other scheme may simply implement an interface and provide that implementation class as input.  The generator will then call this implementation for namespace generation.  

I am not at all comfortable with have all types in a single namespace by default.  If we had a scheme by which we assign types to namespaces then we have a consistent way getting back whatever we started from if we did a wsdl2java.  

If you are taken aback by this perspective of mine, then I am surely missing something here... please help me get that :)  Thanks.

- Venkat



> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440078 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi,

I am having trouble understanding this one - forgive me please.  

So,  is there a change done so that types can either go into package name based namespaces or to the wsdl schema targetnamespace.  
 
Was there any patch applied for this ?  Just checking to see if I have missed out something.

Thanks for your patience :)

- Venkat


> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12441627 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Dims,

I am starting on this  I will also look into http://issues.apache.org/jira/browse/AXIS2-1267 as well as I understand roughly where this is happening.   I hope to get in a patch by the end of this day.

- Venkat

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12439046 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

Hi Venkat,
Could you check AXIS2-805 and take a look at AXIS2-805-src.zip, please ?
TestService1.java is service class, and HelloBean.java is java beans class.
Thanks.

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12441139 ] 
            
Davanum Srinivas commented on AXIS2-1252:
-----------------------------------------

Venkat, Kinichiro, Deepal, 

I think we need the ability to specify a namespace/pakage mapping to fully control the schema generation. What do you think about the following algorithm:

#1: If ONE schematargetnamespace is specified then push all types to that namespace. Throw an error and exit on collision.
#2: If MANY schematargetnamespace/package name mappings are specified, then push types to specified namespaces. Again, Throw an error on collision.
#3: If NO schematargetnamespace or mappings specified, then auto generate namespaces from packages. Hopefully there will be no collisions.

We need full control over this from both java2wsdl command line and from services.xml. Please note that there is runtime support we need to enhance too when we change to this model/algo. Specifically when we serialize/deserialize we need to take into account the schema namespaces as the user has specified.

Will this solve all issues? Did i miss anything?

Thanks,
dims


> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12441163 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

I see. I fully agreed with your algorithm.

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1252?page=all ]

Davanum Srinivas updated AXIS2-1252:
------------------------------------

    Priority: Blocker  (was: Major)

Let's get this one right. 

-- dims

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12439694 ] 
            
Davanum Srinivas commented on AXIS2-1252:
-----------------------------------------

Let's document this behavior and then downgrade this bug.

thanks,
dims

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440032 ] 
            
Deepal Jayasinghe commented on AXIS2-1252:
------------------------------------------

Seems I have fixed that bug too, can you please check and confirm

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12441548 ] 
            
Davanum Srinivas commented on AXIS2-1252:
-----------------------------------------

Venkat,

This is a blocker for 1.1. Let's go with something that we can easily do for 1.1 with not too much changes to the code. We can always create an enhancement issue and make it better. Basically if we do my algo, then what remains is 

- Separating out the "namespace for wsdl types" and "namespace of arguments and return types in the service methods" 
- Adding the interface (is Map enough?) for giving users control over the package name generation.

Are you ok with this 2 step process? We'll definitely need your help in implementing whether we decide to take the plunge or follow the 2 step process. At this point, i am more worried about the runtime support (constructing the soap request/response with correct namespaces) rather than the just the command line tool (which is definitely do-able quickly).

thanks,
dims

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12441155 ] 
            
Davanum Srinivas commented on AXIS2-1252:
-----------------------------------------

We use the following in w2j:
-ns2p ns1=pkg1,ns2=pkg2  Specify a custom package name for each namespace specified in the wsdls schema.

In Axis1, we could do it from the command line or pick it up from a properties file.

-- dims

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440033 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi Deepal,

Before I get to try this.. could you please summarize (only if time permits) as to what is the changed behaviour now with respect to dealing with namespaces of data types.

Thanks

- Venkat

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440103 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

Venkat,

I think "svn commit r452771" by Deepal affected to not only RPCMessageReceiver
but also JAVA2WSDL .

See, http://marc.theaimsgroup.com/?l=axis-dev&m=115994544710245&w=2
org/apache/ws/java2wsdl/SchemaGenerator.java was changed.

Thanks.

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440137 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi

Thanks for responding.

I looked up the diff. and gather that if the schemaTargetNamespace has been specified then it gets to be used as the namespace under which all types will fall.  Is this right?

- Venkat

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12442590 ] 
            
Kinichiro Inoguchi commented on AXIS2-1252:
-------------------------------------------

Venkat, dims,

I checked latest axis2-std-1.1-SNAPSHOT-bin nightly.
-p2n option works fine.

I tested this pattern.

1. with NO option
C:\work\axis2-std-1.1-SNAPSHOT-bin\bin\java2wsdl.bat ^
 -cn test.TestService1 -cp . ^
 -sn TestService1 -of TestService1_1.wsdl

2. -stn only
C:\work\axis2-std-1.1-SNAPSHOT-bin\bin\java2wsdl.bat ^
 -cn test.TestService1 -cp . ^
 -stn http://aaa.bbb/types -stp yyy ^
 -sn TestService1 -of TestService1_2.wsdl

3. -p2n only
C:\work\axis2-std-1.1-SNAPSHOT-bin\bin\java2wsdl.bat ^
 -cn test.TestService1 -cp . ^
 -p2n [test,http://aaa.bbb/types] ^
 -sn TestService1 -of TestService1_3.wsdl

4. -p2n with 'all'
C:\work\axis2-std-1.1-SNAPSHOT-bin\bin\java2wsdl.bat ^
 -cn test.TestService1 -cp . ^
 -p2n [all,http://aaa.bbb/types] ^
 -sn TestService1 -of TestService1_4.wsdl

5. -stn and -p2n
C:\work\axis2-std-1.1-SNAPSHOT-bin\bin\java2wsdl.bat ^
 -cn test.TestService1 -cp . ^
 -stn http://aaa.bbb/types -stp yyy ^
 -p2n [test,http://aaa.bbb/types] ^
 -sn TestService1 -of TestService1_5.wsdl

I found 1 error.
If I place space between ',' and 'http',

    -p2n [test, http://aaa.bbb/types]

java2wsdl was ended with this message.
An error occured while generating codeString index out of range: -1

Thanks

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>         Attachments: Axis2-java2wsdl-Oct-12.diff
>
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12442771 ] 
            
Davanum Srinivas commented on AXIS2-1252:
-----------------------------------------

Venkat,

Please see AXIS2-1411 for follow-on bugs.


Kinichiro,

Please open a new bug report for the space problem (non-blocker)

thanks,
dims

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>         Attachments: Axis2-java2wsdl-Oct-12.diff
>
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12440180 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi Deepal / Kinichiro (forgive me if that is not how you'd like to be addressed)

So looks like we have come one full circle.

Actually, a while ago the Java2WSDL was pushing all types into the same schematargetnamespace (stn), immaterial of the packages that they came from.

Now, if the stn was not specified there was (and is unless that has been changed) a default for that, which would be assumed.

It was found that, pushing all types in the same namespace was not the best thing as it would let to type collisions.  Hence there was a JIRA raised and this was fixed to assign types to namespaces based on the packages they came from.  

This was preferred to bring in consistency when one would want to generate Java Inerfaces and types from a given WSDL.  

I would have achieved this by pushing the HelloBean (in our example) to the same package as the service interface.  

Or am I terribly missing the picture here ?

Thanks

- Venkat



> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1252?page=comments#action_12439073 ] 
            
Venkatakrishnan commented on AXIS2-1252:
----------------------------------------

Hi.. thanks.

Well, looking at the src there, I observe that HelloBean belongs to the package named 'test'.  Hence Java2WSDL rightly generates the xsd for it under the namespace http://test/xsd.  Let me explain a bit on how namespaces are arrived at in java2wsdl

- the 'wsdl definition' has a namespace that you can specify using the commandline option 'tn'.  If this is not specified the namespace will default to something that is derived from the package name of the service class.   So had you not mentioned this in your case, the target namespace will be "http://test" since 'test' is the name of the package of the service class.
- the types that are used in this wsdl are categorized into two: -
    1) the types that have to be defined so that you can defined the wsdl:message elements. i.e. the types that define the message parts.  These namespace for these types can be specified using the commandline option 'stn' or they will default to something that is derived from the package name of the service class with a '/xsd' appended.  So in your case, if you had not specified this option, the targetnamespace would have be "http://test/xsd" since "test' is the name of the package of your service class
    2) the types that define the arguments and return values used in  your service methods.  Now, the targetn namespace for the xsd that includes these types, will be derived from the package name of the type and appended with '/xsd'.  Hence in your case the 'HelloBean' type gets defined under the namespace "http://test/xsd" since "test' in the package in which HelloBean is defined.  Now, there is no way, atleast presently, that you can override this into using your own namespace definitions.  

If you must be allowed to mention namespaces for the types that your service methods use, then this would need  some more command options to be supported.  I'd like to get the community's input to this, if we must add more command line options to support this.

So that's about why you end up with that namespace for HelloBean.   Please feel free to ask if there is more to be clarified.  Thanks

- Venkat

> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (AXIS2-1252) java2wsdl generates unknown namespace

Posted by "Venkatakrishnan (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1252?page=all ]

Venkatakrishnan updated AXIS2-1252:
-----------------------------------

    Attachment: Axis2-java2wsdl-Oct-12.diff

Hi Dims

So here is what I have done... let me know if this is ok

1) if we wish to map packages of arguments and return types to specific namespaces we use the following option

  -p2n [org.apache.axis2 , http://ws.apache.org/xsd]   [a.b.c, http://x.y/z]  ... and so on.

For the packages that are not mapped here, Java2WSDL will use the generation of namespace from packagename 

2) if we want all argument and return types to go into a single namespace we specify
 -p2n[all , http:/somthing.org/xsd]     ..... notice the 'all' option

3)  If we want to overide the package to namespace generation scheme, then we have to implement the NamespaceGenerator interface and state the implementing classname as...

   -nsg org.apache.axis2.CustomNamespaceGenerator.

In the absence of this option the DefaultNamespaceGenerator is used.  This is nothing but the usual scheme that we have been using to generate namespaces from package names.

- in the absence of the -p2n option the existing behaviour of mapping java packages to namespace will be in effect

The rationale behind this approach is...
- By default i.e when no optoins are specified java2wsdl will generate consistent namepsaces such that reverse engineering back to the types is consistent
- If the user wants to override this behaviour that is where the above mentioned options should be state i.e, in this case the user is making a deliberate choice

I have successfully built the code for the java2wsdl module alone. The bitter part is that  I am yet again unable to get thro a complete Axis2 build... over serveral retries.  It fails in the Integration module.   But then, since I have kept all class interfaces interact there must be no breakages due to this.

Thanks

- Venkat




> java2wsdl generates unknown namespace
> -------------------------------------
>
>                 Key: AXIS2-1252
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1252
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>            Reporter: Kinichiro Inoguchi
>            Priority: Blocker
>         Attachments: Axis2-java2wsdl-Oct-12.diff
>
>
> This issue comes from user mailing list.
> http://marc.theaimsgroup.com/?t=115937715900004&r=1&w=2
> java2wsdl generates unknown namespace, "http://test/xsd".
> I'm using current nightly.
> My service class has method "sayHello", 
> and returns array of simple java beans "HelloBean".
> Then I run java2wsdl, sayHello and sayHelloResponse 
> are in namespace "http://aaa.bbb/types".
> But, HelloBean is in unknown namespace "http://test/xsd".
> Is this a bug ?
> C:\axis2-std-SNAPSHOT-bin\bin\java2wsdl.bat 
>   -cn test.TestService1 -cp . 
>   -tn http://aaa.bbb -tp xxx 
>   -stn http://aaa.bbb/types -stp yyy 
>   -sn TestService1 -of TestService1.wsdl
> generated WSDL is like this;
>   <wsdl:definitions xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://aaa.bbb/types" xmlns:xxx="http://aaa.bbb" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://aaa.bbb">
>     <wsdl:types>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://test/xsd" targetNamespace="http://test/xsd" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="HelloBean" type="ax22:HelloBean" /> 
>         <xs:complexType name="HelloBean">
>           <xs:sequence>
>             <xs:element name="ret1" type="xs:string" /> 
>             <xs:element name="ret2" type="xs:int" /> 
>             <xs:element name="ret3" type="xs:long" /> 
>             <xs:element name="ret4" type="xs:double" /> 
>             <xs:element name="ret5" type="xs:float" /> 
>             <xs:element name="ret6" type="xs:short" /> 
>             <xs:element name="ret7" type="xs:boolean" /> 
>           </xs:sequence>
>         </xs:complexType>
>       </xs:schema>
>       <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gen798="http://test/xsd" xmlns:ax21="http://aaa.bbb/types" targetNamespace="http://aaa.bbb/types" attributeFormDefault="qualified" elementFormDefault="qualified">
>         <xs:element name="sayHello">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="var1" type="xs:string" /> 
>               <xs:element name="var2" type="xs:int" /> 
>               <xs:element name="var3" type="xs:long" /> 
>               <xs:element name="var4" type="xs:double" /> 
>               <xs:element name="var5" type="xs:float" /> 
>               <xs:element name="var6" type="xs:short" /> 
>               <xs:element name="var7" type="xs:boolean" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>         <xs:element name="sayHelloResponse">
>           <xs:complexType>
>             <xs:sequence>
>               <xs:element name="return" maxOccurs="unbounded" type="gen798:HelloBean" nillable="true" /> 
>             </xs:sequence>
>           </xs:complexType>
>         </xs:element>
>       </xs:schema>
>     </wsdl:types>
>   ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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