You need to sign in to do that
Don't have an account?
Amy Thropp
How do I get around this Error message: Apex Generation Failed Unable to find schema for element...
I'm trying to generate Apex for the WSDL below. The element that fails is: confirmedAdvCustomerPriceFields
I think it might have to do with the "complexType" definitions in the schema, but not sure. Anyone have any ideas?
<?xml version="1.0" encoding="UTF-8"?>
<!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.8-b13937 svn-revision#13942. -->
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.8-b13937 svn-revision#13942. -->
<definitions xmlns:wssutil="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://oracle.e1.bssv.JP550002/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://oracle.e1.bssv.JP550002/" name="AdvCustomerPriceManagerService">
<wsp:UsingPolicy wssutil:Required="true"/>
<wsp1_2:Policy wssutil:Id="bssvpolicy">
<ns1:TransportBinding xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
<wsp1_2:Policy>
<ns1:TransportToken>
<wsp1_2:Policy>
<ns1:HttpsToken/>
</wsp1_2:Policy>
</ns1:TransportToken>
<ns1:AlgorithmSuite>
<wsp1_2:Policy>
<ns1:Basic256/>
</wsp1_2:Policy>
</ns1:AlgorithmSuite>
<ns1:Layout>
<wsp1_2:Policy>
<ns1:Lax/>
</wsp1_2:Policy>
</ns1:Layout>
</wsp1_2:Policy>
</ns1:TransportBinding>
<ns2:SupportingTokens xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
<wsp1_2:Policy>
<ns2:UsernameToken ns2:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
<wsp1_2:Policy>
<ns2:WssUsernameToken10/>
</wsp1_2:Policy>
</ns2:UsernameToken>
</wsp1_2:Policy>
</ns2:SupportingTokens>
</wsp1_2:Policy>
<types>
<xsd:schema targetNamespace="http://oracle.e1.bssv.JP550002/">
<xsd:complexType name="confirmedAdvCustomerPriceFields">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="price" type="xsd:decimal" minOccurs="0"/>
<xsd:element name="sfid" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="e1Message">
<xsd:sequence>
<xsd:element name="message" type="xsd:string" minOccurs="0"/>
<xsd:element name="messagePrefix" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="advCustomerPriceFields">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="accountNumber" type="xsd:int" minOccurs="0"/>
<xsd:element name="item" type="xsd:string" minOccurs="0"/>
<xsd:element name="sfid" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="valueObject"/>
<xsd:complexType name="e1MessageList">
<xsd:sequence>
<xsd:element name="e1Messages" type="ns0:e1Message" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="confirmedAdvCustomerPrice">
<xsd:complexContent>
<xsd:extension base="ns0:messageValueObject">
<xsd:sequence>
<xsd:element name="advancedPrices" type="ns0:confirmedAdvCustomerPriceFields" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="BusinessServiceException">
<xsd:sequence>
<xsd:element name="message" type="xsd:string" minOccurs="0"/>
<xsd:element name="requestID" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="messageValueObject">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="e1MessageList" type="ns0:e1MessageList" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="advCustomerPrice">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="getPrices" type="ns0:advCustomerPriceFields" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="getAdvCustomerPrice" type="ns0:advCustomerPrice" nillable="true"/>
<xsd:element name="BusinessServiceException" type="ns0:BusinessServiceException"/>
<xsd:element name="getAdvCustomerPriceResponse" type="ns0:confirmedAdvCustomerPrice" nillable="true"/>
</xsd:schema>
</types>
<message name="getAdvCustomerPrice">
<part name="getAdvCustomerPrice" element="tns:getAdvCustomerPrice"/>
</message>
<message name="getAdvCustomerPriceResponse">
<part name="getAdvCustomerPriceResponse" element="tns:getAdvCustomerPriceResponse"/>
</message>
<message name="BusinessServiceException">
<part name="fault" element="tns:BusinessServiceException"/>
</message>
<portType name="AdvCustomerPriceManager">
<operation name="getAdvCustomerPrice">
<input wsam:Action="http://oracle.e1.bssv.JP550002/AdvCustomerPriceManager/getAdvCustomerPriceRequest" message="tns:getAdvCustomerPrice"/>
<output wsam:Action="http://oracle.e1.bssv.JP550002/AdvCustomerPriceManager/getAdvCustomerPriceResponse" message="tns:getAdvCustomerPriceResponse"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException" wsam:Action="http://oracle.e1.bssv.JP550002/AdvCustomerPriceManager/getAdvCustomerPrice/Fault/BusinessServiceException"/>
</operation>
</portType>
<binding name="AdvCustomerPriceManagerPortBinding" type="tns:AdvCustomerPriceManager">
<wsp:PolicyReference URI="#bssvpolicy"/>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="getAdvCustomerPrice">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
</binding>
<service name="AdvCustomerPriceManagerService">
<port name="AdvCustomerPriceManagerPort" binding="tns:AdvCustomerPriceManagerPortBinding">
<soap:address location="https://jdeweb03.diversitech.com:443/PY910/AdvCustomerPriceManager"/>
</port>
</service>
</definitions>
I think it might have to do with the "complexType" definitions in the schema, but not sure. Anyone have any ideas?
<?xml version="1.0" encoding="UTF-8"?>
<!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.8-b13937 svn-revision#13942. -->
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.8-b13937 svn-revision#13942. -->
<definitions xmlns:wssutil="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://oracle.e1.bssv.JP550002/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://oracle.e1.bssv.JP550002/" name="AdvCustomerPriceManagerService">
<wsp:UsingPolicy wssutil:Required="true"/>
<wsp1_2:Policy wssutil:Id="bssvpolicy">
<ns1:TransportBinding xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
<wsp1_2:Policy>
<ns1:TransportToken>
<wsp1_2:Policy>
<ns1:HttpsToken/>
</wsp1_2:Policy>
</ns1:TransportToken>
<ns1:AlgorithmSuite>
<wsp1_2:Policy>
<ns1:Basic256/>
</wsp1_2:Policy>
</ns1:AlgorithmSuite>
<ns1:Layout>
<wsp1_2:Policy>
<ns1:Lax/>
</wsp1_2:Policy>
</ns1:Layout>
</wsp1_2:Policy>
</ns1:TransportBinding>
<ns2:SupportingTokens xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
<wsp1_2:Policy>
<ns2:UsernameToken ns2:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
<wsp1_2:Policy>
<ns2:WssUsernameToken10/>
</wsp1_2:Policy>
</ns2:UsernameToken>
</wsp1_2:Policy>
</ns2:SupportingTokens>
</wsp1_2:Policy>
<types>
<xsd:schema targetNamespace="http://oracle.e1.bssv.JP550002/">
<xsd:complexType name="confirmedAdvCustomerPriceFields">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="price" type="xsd:decimal" minOccurs="0"/>
<xsd:element name="sfid" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="e1Message">
<xsd:sequence>
<xsd:element name="message" type="xsd:string" minOccurs="0"/>
<xsd:element name="messagePrefix" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="advCustomerPriceFields">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="accountNumber" type="xsd:int" minOccurs="0"/>
<xsd:element name="item" type="xsd:string" minOccurs="0"/>
<xsd:element name="sfid" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="valueObject"/>
<xsd:complexType name="e1MessageList">
<xsd:sequence>
<xsd:element name="e1Messages" type="ns0:e1Message" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="confirmedAdvCustomerPrice">
<xsd:complexContent>
<xsd:extension base="ns0:messageValueObject">
<xsd:sequence>
<xsd:element name="advancedPrices" type="ns0:confirmedAdvCustomerPriceFields" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="BusinessServiceException">
<xsd:sequence>
<xsd:element name="message" type="xsd:string" minOccurs="0"/>
<xsd:element name="requestID" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="messageValueObject">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="e1MessageList" type="ns0:e1MessageList" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="advCustomerPrice">
<xsd:complexContent>
<xsd:extension base="ns0:valueObject">
<xsd:sequence>
<xsd:element name="getPrices" type="ns0:advCustomerPriceFields" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="getAdvCustomerPrice" type="ns0:advCustomerPrice" nillable="true"/>
<xsd:element name="BusinessServiceException" type="ns0:BusinessServiceException"/>
<xsd:element name="getAdvCustomerPriceResponse" type="ns0:confirmedAdvCustomerPrice" nillable="true"/>
</xsd:schema>
</types>
<message name="getAdvCustomerPrice">
<part name="getAdvCustomerPrice" element="tns:getAdvCustomerPrice"/>
</message>
<message name="getAdvCustomerPriceResponse">
<part name="getAdvCustomerPriceResponse" element="tns:getAdvCustomerPriceResponse"/>
</message>
<message name="BusinessServiceException">
<part name="fault" element="tns:BusinessServiceException"/>
</message>
<portType name="AdvCustomerPriceManager">
<operation name="getAdvCustomerPrice">
<input wsam:Action="http://oracle.e1.bssv.JP550002/AdvCustomerPriceManager/getAdvCustomerPriceRequest" message="tns:getAdvCustomerPrice"/>
<output wsam:Action="http://oracle.e1.bssv.JP550002/AdvCustomerPriceManager/getAdvCustomerPriceResponse" message="tns:getAdvCustomerPriceResponse"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException" wsam:Action="http://oracle.e1.bssv.JP550002/AdvCustomerPriceManager/getAdvCustomerPrice/Fault/BusinessServiceException"/>
</operation>
</portType>
<binding name="AdvCustomerPriceManagerPortBinding" type="tns:AdvCustomerPriceManager">
<wsp:PolicyReference URI="#bssvpolicy"/>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="getAdvCustomerPrice">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
</binding>
<service name="AdvCustomerPriceManagerService">
<port name="AdvCustomerPriceManagerPort" binding="tns:AdvCustomerPriceManagerPortBinding">
<soap:address location="https://jdeweb03.diversitech.com:443/PY910/AdvCustomerPriceManager"/>
</port>
</service>
</definitions>