Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OSB: Unable to Retrieve WSDL when Enforce WS-I Compliance is enabled

923211Nov 9 2012 — edited Nov 19 2012
Hi,

I have a requirement to enforce WS-I compliance on my services. At the proxy service, I checked the Enforce WS-I Compliance checkbox.

I am not able to retrieve the service wsdl via URL (eg. http://myservice?wsdl) after enforcing WS-I compliance.

If I uncheck the Enforce WS-I Compliance checkbox, I am able to retrieve the WSDL.

Can anyone shed some lights on what went wrong? I've included the WSDL and its 2 XSDs below.

Thank you.

FindCustomer.wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<WL5G3N1:definitions targetNamespace="http://test.com/" xmlns:WL5G3N0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:WL5G3N1="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N2="http://test.com/" xmlns:WL5G3N3="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
<WL5G3N1:types>
<xsi:schema elementFormDefault="qualified" targetNamespace="http://test.com/" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://test.com/" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://test.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema">
<xsi:include schemaLocation="FindCustomer.xsd"/>
<xsi:include schemaLocation="Common.xsd"/>
</xsi:schema>
</WL5G3N1:types>
<WL5G3N1:message name="FindCustomerRequest">
<WL5G3N1:part element="WL5G3N2:FindCustomerRequest" name="reqParameter"/>
<WL5G3N1:part element="WL5G3N2:ServiceHeader" name="reqHeader"/>
</WL5G3N1:message>
<WL5G3N1:message name="FindCustomerResponse">
<WL5G3N1:part element="WL5G3N2:FindCustomerResponse" name="respParameter"/>
<WL5G3N1:part element="WL5G3N2:ServiceResponseHeader" name="respHeader"/>
</WL5G3N1:message>
<WL5G3N1:portType name="FindCustomer">
<WL5G3N1:operation name="FindCustomer">
<WL5G3N1:input message="WL5G3N2:FindCustomerRequest"/>
<WL5G3N1:output message="WL5G3N2:FindCustomerResponse"/>
</WL5G3N1:operation>
</WL5G3N1:portType>
<WL5G3N1:binding name="FindCustomerHTTP" type="WL5G3N2:FindCustomer">
<WL5G3N3:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<WL5G3N1:operation name="FindCustomer">
<WL5G3N3:operation soapAction="FindCustomerOperation"/>
<WL5G3N1:input>
<WL5G3N3:header message="WL5G3N2:FindCustomerRequest" part="reqHeader" use="literal"/>
<WL5G3N3:body parts="reqParameter" use="literal"/>
</WL5G3N1:input>
<WL5G3N1:output>
<WL5G3N3:header message="WL5G3N2:FindCustomerResponse" part="respHeader" use="literal"/>
<WL5G3N3:body parts="respParameter" use="literal"/>
</WL5G3N1:output>
</WL5G3N1:operation>
</WL5G3N1:binding>
<WL5G3N1:service name="FindCustomer">
<WL5G3N1:port binding="WL5G3N2:FindCustomerHTTP" name="FindCustomer">
<WL5G3N3:address location="http://localhost:8080"/>
</WL5G3N1:port>
</WL5G3N1:service>
</WL5G3N1:definitions>

FindCustomer.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://test.com/" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns="http://test.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:digi="http://test.com/">
<xs:include schemaLocation="Common.xsd"/>
<xs:element name="FindCustomerRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="Name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FindCustomerResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="Address">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Common.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://test.com/" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ser="http://test.com/">
<xs:element name="ServiceHeader">
<xs:complexType>
<xs:sequence>
<xs:element ref="ser:ReferenceID"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ServiceResponseHeader">
<xs:complexType>
<xs:sequence>
<xs:element ref="ser:ReferenceID"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ReferenceID">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ResultStatus">
<xs:complexType>
<xs:sequence>
<xs:element name="StatusCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2012
Added on Nov 9 2012
1 comment
687 views