[ 
http://issues.apache.org/jira/browse/AXIS2-805?page=comments#action_12431759 ] 
            
Kinichiro Inoguchi commented on AXIS2-805:
------------------------------------------

I checked current SVN. 
Problem pattern (3) and (4), still remain. 

In pattern (3) and (4), I defined schema namespace
as "http://ws.aaa.bbb/types"; in services.xml.
So, targetnamespace of request/response XML 
should be "http://ws.aaa.bbb/types"; .

But, with current SVN, targetnamespace of HelloBean is 
defined as "http://test/xsd"; .


> namespace of generated WSDL
> ---------------------------
>
>                 Key: AXIS2-805
>                 URL: http://issues.apache.org/jira/browse/AXIS2-805
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.0
>         Environment: JDK1.4.2, Windows XP, Tomcat5.0
>            Reporter: Kinichiro Inoguchi
>         Assigned To: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: AXIS2-805-aar_s.zip, AXIS2-805-src.zip, Wsdls.zip
>
>
> I tested this with Axis2 current SVN build.
> I created java class that returns array of java beans, 
> then made it web service with RPCMessageReceiver.
> And I checked the namespace of generated WSDL.
> There are 4 issues.
> - namespace as "ns1" never used in generated WSDL.
> - namespace as "ns0" and "ns" are the same.
> - namespace as "stn_x" seems wrong. I think "ns" should be used.
> - import namespace="/xsd" needed ?
> I checked these issues by 4 different services.xml.
> (1) no namespace is defined in services.xml
>     http://localhost:8080/axis2/services/WsdlTest0?wsdl
>     <wsdl:definitions> has,
>     targetNamespace="http://ws.apache.org/axis2";
>     xmlns:axis2="http://ws.apache.org/axis2";
>     xmlns:ns0="http://ws.apache.org/axis2/xsd"; 
>     xmlns:ns1="http://org.apache.axis2/xsd";
>     <xs:schema> has,
>     targetNamespace="http://ws.apache.org/axis2/xsd"; 
>     xmlns:ns="http://ws.apache.org/axis2/xsd"; 
>     xmlns:stn_4="/xsd" 
>     <xs:import namespace="/xsd" /> contained in WSDL.
>     # prefix used in WSDL
>     axis2
>     ns0, ns, stn_4
> (2) service namespace is defined in services.xml
>     <wsdl:definitions> has,
>     targetNamespace="http://ws.aaa.bbb";
>     xmlns:axis2="http://ws.aaa.bbb";
>     xmlns:ns0="http://ws.apache.org/axis2/xsd";
>     xmlns:ns1="http://org.apache.axis2/xsd";
>     <xs:schema> has,
>     targetNamespace="http://ws.apache.org/axis2/xsd";
>     xmlns:stn_6="/xsd"
>     xmlns:ns="http://ws.apache.org/axis2/xsd";
>     <xs:import namespace="/xsd" /> contained in WSDL.
>     # prefix used in WSDL
>     axis2
>     ns0, ns, stn_6
> (3) schema namespace is defined in services.xml
>     <wsdl:definitions> has,
>     targetNamespace="http://ws.apache.org/axis2";
>     xmlns:axis2="http://ws.apache.org/axis2";
>     xmlns:ns0="http://ws.aaa.bbb/types";
>     xmlns:ns1="http://org.apache.axis2/xsd";
>     <xs:schema> has,
>     targetNamespace="http://ws.aaa.bbb/types";
>     xmlns:ns="http://ws.aaa.bbb/types"; 
>     xmlns:stn_8="/xsd" 
>     <xs:import namespace="/xsd" /> contained in WSDL.
>     # prefix used in WSDL
>     axis2
>     ns0, ns, stn_8
> (4) service and schema namespace is defined in services.xml
>     <wsdl:definitions> has,
>     targetNamespace="http://ws.aaa.bbb";
>     xmlns:axis2="http://ws.aaa.bbb";
>     xmlns:ns0="http://ws.aaa.bbb/types";
>     xmlns:ns1="http://org.apache.axis2/xsd";
>     <xs:schema> has,
>     targetNamespace="http://ws.aaa.bbb/types";
>     xmlns:ns="http://ws.aaa.bbb/types"; 
>     xmlns:stn_10="/xsd" 
>     <xs:import namespace="/xsd" /> contained in WSDL.
>     # prefix used in WSDL
>     axis2
>     ns0, ns, stn_10
> Thanks.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to