axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kinichiro Inoguchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-805) namespace of generated WSDL
Date Tue, 17 Oct 2006 16:12:39 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-805?page=comments#action_12442956 ] 
            
Kinichiro Inoguchi commented on AXIS2-805:
------------------------------------------

I found that I could map namespace to package of javabeans 
in services.xml, like this.

<service>
 <schema>
  <mapping namespace="http://xml.apache.org/xml-soap" package="javax.activation"></mapping>
 </schema>
 ...
</service>

With Java2WSDL, -p2n option is the same. (see AXIS2-1252)

This feature added by r464816 .
http://marc.theaimsgroup.com/?l=axis-dev&m=116106357922076&w=2

I checked this with latest nightly axis2-1.1-SNAPSHOT.war 17-Oct-2006 08:04

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message