Can the WSDL4J read a wsdl file with policy information in it?I've got a problem to codegen against a WSDL with WS-Security Policy(The wsdl file is from policy sample01 in rampart release).So I debugged the Axis2 1.3 source code ,found that the WSDLReader seems that it cannot read the policy information.The wsdl file is attached.
-- 緋村劍心
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://sample01.policy.samples.rampart.apache.org" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ns0="http://sample01.policy.samples.rampart.apache.org" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://sample01.policy.samples.rampart.apache.org" xmlns:ns="http://sample01.policy.samples.rampart.apache.org"> <xs:element name="echo"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="arg" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="echoResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="echoResponse"> <wsdl:part name="parameters" element="ns0:echoResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="echoRequest"> <wsdl:part name="parameters" element="ns0:echo"> </wsdl:part> </wsdl:message> <wsdl:portType name="Sample01PortType"> <wsdl:operation name="echo"> <wsdl:input message="ns0:echoRequest" wsaw:Action="urn:echo"> </wsdl:input> <wsdl:output message="ns0:echoResponse" wsaw:Action="urn:echoResponse"> </wsdl:output> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Sample01SOAP11Binding" type="ns0:Sample01PortType"> <wsp:Policy Id="UTOverTransport" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> <wsp:ExactlyOne> <wsp:All> <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:TransportToken> <wsp:Policy> <sp:HttpsToken RequireClientCertificate="false"/> </wsp:Policy> </sp:TransportToken> <sp:AlgorithmSuite> <wsp:Policy> <sp:Basic256/> </wsp:Policy> </sp:AlgorithmSuite> <sp:Layout> <wsp:Policy> <sp:Lax/> </wsp:Policy> </sp:Layout> <sp:IncludeTimestamp/> </wsp:Policy> </sp:TransportBinding> <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/> </wsp:Policy> </sp:SignedSupportingTokens> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="echo"> <soap:operation soapAction="urn:echo" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="Sample01HttpBinding" type="ns0:Sample01PortType"> <http:binding verb="POST"/> <wsdl:operation name="echo"> <http:operation location="Sample01/echo"/> <wsdl:input> <mime:content part="echo" type="text/xml"/> </wsdl:input> <wsdl:output> <mime:content part="echo" type="text/xml"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="Sample01SOAP12Binding" type="ns0:Sample01PortType"> <wsp:Policy Id="UTOverTransport" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> <wsp:ExactlyOne> <wsp:All> <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:TransportToken> <wsp:Policy> <sp:HttpsToken RequireClientCertificate="false"/> </wsp:Policy> </sp:TransportToken> <sp:AlgorithmSuite> <wsp:Policy> <sp:Basic256/> </wsp:Policy> </sp:AlgorithmSuite> <sp:Layout> <wsp:Policy> <sp:Lax/> </wsp:Policy> </sp:Layout> <sp:IncludeTimestamp/> </wsp:Policy> </sp:TransportBinding> <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/> </wsp:Policy> </sp:SignedSupportingTokens> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="echo"> <soap12:operation soapAction="urn:echo" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Sample01"> <wsdl:port name="Sample01Httpport" binding="ns0:Sample01HttpBinding"> <http:address location="http://localhost:8080/axis2/services/Sample01"/> </wsdl:port> <wsdl:port name="Sample01SOAP12port_http" binding="ns0:Sample01SOAP12Binding"> <soap12:address location="http://localhost:8080/axis2/services/Sample01"/> </wsdl:port> <wsdl:port name="Sample01SOAP11port_http" binding="ns0:Sample01SOAP11Binding"> <soap:address location="http://localhost:8080/axis2/services/Sample01"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
