Cannot use inner class as a method parameter of service endpoint impl class - weblogic.developer.interest.webservices.general(Archived)

Do you have a same problem with me?
I try to implement web service with EJB3 style but it fail when deploying step. It raise an exception "cannot find symbol symbol", especailly on inner class. i wonder with the same code but deploy web service as POJO style(web application),it work fine.
I use wsimport tool for generating all artifact java code from wsdl. The generated service porttype class has a service method in wrapping style and one of input parameter is inner class because JAXB generated an anonymous complex type as a inner class of parent complex type.
Eg.
     <xsd:element name="echoConcat">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="messages">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="sub-message" maxOccurs="unbounded" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
The class of element messages is inner class of EchoConcat class of element echoConcat.
it's fine, if i don't use an anonymous complex type.
Eg.
<xsd:element name="echoConcat">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="messages" type="testEchoService:messagesT">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="messagesT">
<xsd:sequence>
<xsd:element name="sub-message" maxOccurs="unbounded" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
I think, it's a bug.

Related

invalid query compiler error

Hi - I migrated a BPEL process from 10.1.2.1.0 The BPEL diagram is fine. If I open the assign using Jdeveloper, everything looks perfectly fine. I am able to do the Edit Copy operation with no problems. Upon compilation , however, the following error occurs:
Error(201):
[Error ORABPEL-10057]: invalid query
[Description]: in line 201 of "C:\jdeveloper\jdev\mywork\E1Integration\SalesOrderEntry\bpel\SalesOrderEntry.bpel",
query "/ns1:Request/ns1:Header/MessageHeader/MessageType" is invalid, because .
[Potential fix]: Check the XML schema and make sure your query string is valid.
I am using inline schema from the following wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="IntegrationPoints_FlowServices" targetNamespace="http://e1.oracle.com/SOE/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://e1.oracle.com/SOE/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
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:wsdns1="http://e1.oracle.com/SOE">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOEInput1" xmlns:dx4="http://www.oracle.com/SOEInput1" xmlns:dx3="http://www.peoplesoft.com" xmlns:dx2="http://www.oracle.com/SOEInput">
<xsd:import namespace="http://www.peoplesoft.com"/>
<xsd:import namespace="http://www.oracle.com/SOEInput"/>
<xsd:element name="Processing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:actionType"/>
<xsd:element ref="dx3:useConfigurationRule"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Billing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Pricing"/>
<xsd:element ref="dx3:paymentTermsCode"/>
<xsd:element ref="dx3:paymentInstrumentCode"/>
<xsd:element ref="dx3:taxRateAreaCode"/>
<xsd:element ref="dx3:taxExplanationCode"/>
<xsd:element ref="dx3:taxableCode"/>
<xsd:element ref="dx3:modeOfTransportCode"/>
<xsd:element ref="dx3:printMessageCode"/>
<xsd:element ref="dx2:Carrier"/>
<xsd:element ref="dx3:freightHandlingCode"/>
<xsd:element ref="dx3:subledger"/>
<xsd:element ref="dx3:subledgerTypeCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ShipTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost/IntegrationPoints/FlowServices/SalesOrderEntryMODIFIEDMSG" xmlns:tns="http://localhost/IntegrationPoints/FlowServices/SalesOrderEntryMODIFIEDMSG" xmlns:jde="http://e1.oracle.com/SOE">
<xsd:import namespace="http://e1.oracle.com/SOE"/>
<xsd:complexType name="SalesOrderInput">
<xsd:sequence>
<xsd:element ref="jde:SalesOrderEntry"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SalesOrderOutput">
<xsd:sequence>
<xsd:element ref="jde:SalesOrderEntry"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOEInput" xmlns:dx2="http://www.oracle.com/SOEInput" xmlns:dx3="http://www.peoplesoft.com" xmlns:dx4="http://www.oracle.com/SOEInput1">
<xsd:import namespace="http://www.peoplesoft.com"/>
<xsd:import namespace="http://www.oracle.com/SOEInput1"/>
<xsd:element name="Processing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:actionType"/>
<xsd:element ref="dx3:processingVersion"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SalesOrderKey">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SoldTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
<xsd:element ref="dx3:mailingName"/>
<xsd:element ref="dx3:addressLine1"/>
<xsd:element ref="dx3:addressLine2"/>
<xsd:element ref="dx3:addressLine3"/>
<xsd:element ref="dx3:addressLine4"/>
<xsd:element ref="dx3:city"/>
<xsd:element ref="dx3:countyCode"/>
<xsd:element ref="dx3:stateCode"/>
<xsd:element ref="dx3:postalCode"/>
<xsd:element ref="dx3:countryCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ShipTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
<xsd:element ref="dx3:mailingName"/>
<xsd:element ref="dx3:addressLine1"/>
<xsd:element ref="dx3:addressLine2"/>
<xsd:element ref="dx3:addressLine3"/>
<xsd:element ref="dx3:addressLine4"/>
<xsd:element ref="dx3:city"/>
<xsd:element ref="dx3:countyCode"/>
<xsd:element ref="dx3:stateCode"/>
<xsd:element ref="dx3:postalCode"/>
<xsd:element ref="dx3:countryCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Carrier">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Billing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:adjustmentScheduleCode"/>
<xsd:element ref="dx3:customerPriceGroupCode"/>
<xsd:element ref="dx3:percentDiscountTrade"/>
<xsd:element ref="dx3:paymentTermsCode"/>
<xsd:element ref="dx3:paymentInstrumentCode"/>
<xsd:element ref="dx3:printMessageCode"/>
<xsd:element ref="dx2:Carrier"/>
<xsd:element ref="dx3:freightHandlingCode"/>
<xsd:element ref="dx3:deliveryInstruction1"/>
<xsd:element ref="dx3:deliveryInstruction2"/>
<xsd:element ref="dx3:taxRateAreaCode"/>
<xsd:element ref="dx3:taxExplanationCode"/>
<xsd:element ref="dx3:creditCardAccountName"/>
<xsd:element ref="dx3:creditCardAccountNumber"/>
<xsd:element ref="dx3:creditCardTypeCode"/>
<xsd:element ref="dx3:checkNumber"/>
<xsd:element ref="dx3:dateExpiration"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DeliverTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="InvoicedTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PaidBy">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ForwardedTo">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UserReservedData">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:userReservedCode"/>
<xsd:element ref="dx3:userReservedDate"/>
<xsd:element ref="dx3:userReservedAmount"/>
<xsd:element ref="dx3:userReservedNumber"/>
<xsd:element ref="dx3:userReservedReference"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Item">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:itemId"/>
<xsd:element ref="dx3:itemProduct"/>
<xsd:element ref="dx3:itemCatalog"/>
<xsd:element ref="dx3:itemCustomer"/>
<xsd:element ref="dx3:itemFreeForm"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ItemParent">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:itemId"/>
<xsd:element ref="dx3:itemProduct"/>
<xsd:element ref="dx3:itemCatalog"/>
<xsd:element ref="dx3:itemCustomer"/>
<xsd:element ref="dx3:itemFreeForm"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Segment">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:segmentNumber"/>
<xsd:element ref="dx3:segmentValue"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Configuration">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:ItemParent"/>
<xsd:element ref="dx2:Item"/>
<xsd:element ref="dx3:businessUnit"/>
<xsd:element ref="dx3:quantityComponent"/>
<xsd:element ref="dx3:unitOfMeasureCodeComponent"/>
<xsd:element ref="dx3:lineTypeCode"/>
<xsd:element ref="dx3:description1"/>
<xsd:element ref="dx2:Segment" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Product">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Item"/>
<xsd:element ref="dx3:lotNumber"/>
<xsd:element ref="dx3:location"/>
<xsd:element ref="dx3:itemWeight"/>
<xsd:element ref="dx3:unitOfMeasureCodeWeight"/>
<xsd:element ref="dx3:itemVolume"/>
<xsd:element ref="dx3:unitOfMeasureCodeVolume"/>
<xsd:element ref="dx3:description1"/>
<xsd:element ref="dx3:description2"/>
<xsd:element ref="dx2:Configuration" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Pricing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:unitOfMeasureCodePricing"/>
<xsd:element ref="dx3:isZeroPriceOverride"/>
<xsd:element ref="dx3:adjustmentScheduleCode"/>
<xsd:element ref="dx3:datePriceEffective"/>
<xsd:element ref="dx3:priceCode1"/>
<xsd:element ref="dx3:priceCode2"/>
<xsd:element ref="dx3:priceCode3"/>
<xsd:element ref="dx3:priceUnitDomestic"/>
<xsd:element ref="dx3:priceUnitForeign"/>
<xsd:element ref="dx3:priceExtendedDomestic"/>
<xsd:element ref="dx3:priceExtendedForeign"/>
<xsd:element ref="dx3:itemPriceGroupCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="OriginalOrderKey">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="OriginalOrder">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:OriginalOrderKey"/>
<xsd:element ref="dx3:documentLineNumber"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RelatedOrderKey">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RelatedOrder">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:RelatedOrderKey"/>
<xsd:element ref="dx3:documentLineNumber"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Supplier">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:entityId"/>
<xsd:element ref="dx3:entityLongId"/>
<xsd:element ref="dx3:entityTaxId"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CategoryCodesSales">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:categoryCode001"/>
<xsd:element ref="dx3:categoryCode002"/>
<xsd:element ref="dx3:categoryCode003"/>
<xsd:element ref="dx3:categoryCode004"/>
<xsd:element ref="dx3:categoryCode005"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CategoryCodesPurchasing">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:categoryCode001"/>
<xsd:element ref="dx3:categoryCode002"/>
<xsd:element ref="dx3:categoryCode003"/>
<xsd:element ref="dx3:categoryCode004"/>
<xsd:element ref="dx3:categoryCode005"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Detail">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx4:Processing"/>
<xsd:element ref="dx3:documentLineNumber"/>
<xsd:element ref="dx3:businessUnit"/>
<xsd:element ref="dx3:businessUnitDestination"/>
<xsd:element ref="dx3:customerPO"/>
<xsd:element ref="dx3:reference"/>
<xsd:element ref="dx3:agreementId"/>
<xsd:element ref="dx3:agreementSupplement"/>
<xsd:element ref="dx2:Product"/>
<xsd:element ref="dx4:Billing"/>
<xsd:element ref="dx3:dutyStatusCode"/>
<xsd:element ref="dx2:OriginalOrder"/>
<xsd:element ref="dx2:RelatedOrder"/>
<xsd:element ref="dx4:ShipTo"/>
<xsd:element ref="dx2:Supplier"/>
<xsd:element ref="dx3:quantityOrdered"/>
<xsd:element ref="dx3:quantityShippable"/>
<xsd:element ref="dx3:quantityBackOrdered"/>
<xsd:element ref="dx3:quantityCanceled"/>
<xsd:element ref="dx3:unitOfMeasureCodeTransaction"/>
<xsd:element ref="dx3:lineTypeCode"/>
<xsd:element ref="dx3:lineOfBusinessCode"/>
<xsd:element ref="dx3:endUseCode"/>
<xsd:element ref="dx3:priorityCode"/>
<xsd:element ref="dx3:dateOrdered"/>
<xsd:element ref="dx3:dateRequested"/>
<xsd:element ref="dx3:timeRequested"/>
<xsd:element ref="dx3:dateCancel"/>
<xsd:element ref="dx3:datePromisedShip"/>
<xsd:element ref="dx3:timePromisedShip"/>
<xsd:element ref="dx3:dateScheduledPick"/>
<xsd:element ref="dx3:timeScheduledPick"/>
<xsd:element ref="dx3:datePromisedOriginal"/>
<xsd:element ref="dx3:timePromisedOriginal"/>
<xsd:element ref="dx3:datePromisedDelivery"/>
<xsd:element ref="dx3:timePromisedDelivery"/>
<xsd:element ref="dx3:statusCodeLast"/>
<xsd:element ref="dx3:statusCodeNext"/>
<xsd:element ref="dx2:CategoryCodesSales"/>
<xsd:element ref="dx2:CategoryCodesPurchasing"/>
<xsd:element ref="dx2:UserReservedData"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Header">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MessageHeader" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Environment" type="xsd:string"/>
<xsd:element name="MessageType" type="xsd:string"/>
<xsd:element name="MessageID" type="xsd:string"/>
<xsd:element name="MessageVersion" type="xsd:string"/>
<xsd:element name="MessageReferenceID" type="xsd:string"/>
<xsd:element name="UserID" type="xsd:string"/>
<xsd:element name="UserPassword" type="xsd:string"/>
<xsd:element name="SourceSystemName" type="xsd:string"/>
<xsd:element name="CreationDate" type="xsd:string"/>
<xsd:element name="Operation" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element ref="dx2:Processing"/>
<xsd:element ref="dx2:SalesOrderKey"/>
<xsd:element ref="dx3:businessUnit"/>
<xsd:element ref="dx3:company"/>
<xsd:element ref="dx3:orderedBy"/>
<xsd:element ref="dx3:orderTakenBy"/>
<xsd:element ref="dx3:holdOrderCode"/>
<xsd:element ref="dx3:customerPO"/>
<xsd:element ref="dx3:attachmentText"/>
<xsd:element ref="dx2:SoldTo"/>
<xsd:element ref="dx2:ShipTo"/>
<xsd:element ref="dx3:dateOrdered"/>
<xsd:element ref="dx3:dateRequested"/>
<xsd:element ref="dx3:timeRequested"/>
<xsd:element ref="dx3:dateCancel"/>
<xsd:element ref="dx3:dateScheduledPick"/>
<xsd:element ref="dx3:timeScheduledPick"/>
<xsd:element ref="dx3:currencyCodeTo"/>
<xsd:element ref="dx3:rateExchangeOverride"/>
<xsd:element ref="dx2:Billing"/>
<xsd:element ref="dx2:DeliverTo"/>
<xsd:element ref="dx2:InvoicedTo"/>
<xsd:element ref="dx2:PaidBy"/>
<xsd:element ref="dx2:ForwardedTo"/>
<xsd:element ref="dx2:UserReservedData"/>
<xsd:element ref="dx2:Detail" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Request">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Header"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOEOutput" xmlns:jde2="http://www.oracle.com/SOEOutput" xmlns:dx3="http://www.peoplesoft.com">
<xsd:import namespace="http://www.peoplesoft.com"/>
<xsd:element name="Detail">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentLineNumber"/>
<xsd:element ref="dx3:messages" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Header">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx3:documentNumber"/>
<xsd:element ref="dx3:documentTypeCode"/>
<xsd:element ref="dx3:documentCompany"/>
<xsd:element ref="dx3:messages" maxOccurs="unbounded"/>
<xsd:element ref="jde2:Detail" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Response">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="jde2:Header"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.oracle.com/SOE" xmlns:dx="http://www.oracle.com/SOE" xmlns:dx2="http://www.oracle.com/SOEInput" xmlns:jde2="http://www.oracle.com/SOEOutput">
<xsd:import namespace="http://www.oracle.com/SOEInput"/>
<xsd:import namespace="http://www.oracle.com/SOEOutput"/>
<xsd:element name="ProcessSOE">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx2:Request"/>
<xsd:element ref="jde2:Response"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://e1.oracle.com/SOE" xmlns:jde="http://e1.oracle.com/SOE" xmlns:dx="http://www.oracle.com/SOE">
<xsd:import namespace="http://www.oracle.com/SOE"/>
<xsd:element name="SalesOrderEntry">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="dx:ProcessSOE"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.peoplesoft.com" xmlns:dx3="http://www.peoplesoft.com">
<xsd:element name="actionType" type="xsd:string"/>
<xsd:element name="processingVersion" type="xsd:string"/>
<xsd:element name="documentNumber" type="xsd:string"/>
<xsd:element name="documentTypeCode" type="xsd:string"/>
<xsd:element name="documentCompany" type="xsd:string"/>
<xsd:element name="businessUnit" type="xsd:string"/>
<xsd:element name="company" type="xsd:string"/>
<xsd:element name="orderedBy" type="xsd:string"/>
<xsd:element name="orderTakenBy" type="xsd:string"/>
<xsd:element name="holdOrderCode" type="xsd:string"/>
<xsd:element name="customerPO" type="xsd:string"/>
<xsd:element name="attachmentText" type="xsd:string"/>
<xsd:element name="entityId" type="xsd:string"/>
<xsd:element name="entityLongId" type="xsd:string"/>
<xsd:element name="entityTaxId" type="xsd:string"/>
<xsd:element name="mailingName" type="xsd:string"/>
<xsd:element name="addressLine1" type="xsd:string"/>
<xsd:element name="addressLine2" type="xsd:string"/>
<xsd:element name="addressLine3" type="xsd:string"/>
<xsd:element name="addressLine4" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="countyCode" type="xsd:string"/>
<xsd:element name="stateCode" type="xsd:string"/>
<xsd:element name="postalCode" type="xsd:string"/>
<xsd:element name="countryCode" type="xsd:string"/>
<xsd:element name="dateOrdered" type="xsd:string"/>
<xsd:element name="dateRequested" type="xsd:string"/>
<xsd:element name="timeRequested" type="xsd:string"/>
<xsd:element name="dateCancel" type="xsd:string"/>
<xsd:element name="dateScheduledPick" type="xsd:string"/>
<xsd:element name="timeScheduledPick" type="xsd:string"/>
<xsd:element name="currencyCodeTo" type="xsd:string"/>
<xsd:element name="rateExchangeOverride" type="xsd:string"/>
<xsd:element name="adjustmentScheduleCode" type="xsd:string"/>
<xsd:element name="customerPriceGroupCode" type="xsd:string"/>
<xsd:element name="percentDiscountTrade" type="xsd:string"/>
<xsd:element name="paymentTermsCode" type="xsd:string"/>
<xsd:element name="paymentInstrumentCode" type="xsd:string"/>
<xsd:element name="printMessageCode" type="xsd:string"/>
<xsd:element name="freightHandlingCode" type="xsd:string"/>
<xsd:element name="deliveryInstruction1" type="xsd:string"/>
<xsd:element name="deliveryInstruction2" type="xsd:string"/>
<xsd:element name="taxRateAreaCode" type="xsd:string"/>
<xsd:element name="taxExplanationCode" type="xsd:string"/>
<xsd:element name="creditCardAccountName" type="xsd:string"/>
<xsd:element name="creditCardAccountNumber" type="xsd:string"/>
<xsd:element name="creditCardTypeCode" type="xsd:string"/>
<xsd:element name="checkNumber" type="xsd:string"/>
<xsd:element name="dateExpiration" type="xsd:string"/>
<xsd:element name="userReservedCode" type="xsd:string"/>
<xsd:element name="userReservedDate" type="xsd:string"/>
<xsd:element name="userReservedAmount" type="xsd:string"/>
<xsd:element name="userReservedNumber" type="xsd:string"/>
<xsd:element name="userReservedReference" type="xsd:string"/>
<xsd:element name="useConfigurationRule" type="xsd:string"/>
<xsd:element name="documentLineNumber" type="xsd:string"/>
<xsd:element name="businessUnitDestination" type="xsd:string"/>
<xsd:element name="reference" type="xsd:string"/>
<xsd:element name="agreementId" type="xsd:string"/>
<xsd:element name="agreementSupplement" type="xsd:string"/>
<xsd:element name="itemId" type="xsd:string"/>
<xsd:element name="itemProduct" type="xsd:string"/>
<xsd:element name="itemCatalog" type="xsd:string"/>
<xsd:element name="itemCustomer" type="xsd:string"/>
<xsd:element name="itemFreeForm" type="xsd:string"/>
<xsd:element name="lotNumber" type="xsd:string"/>
<xsd:element name="location" type="xsd:string"/>
<xsd:element name="itemWeight" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeWeight" type="xsd:string"/>
<xsd:element name="itemVolume" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeVolume" type="xsd:string"/>
<xsd:element name="description1" type="xsd:string"/>
<xsd:element name="description2" type="xsd:string"/>
<xsd:element name="quantityComponent" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeComponent" type="xsd:string"/>
<xsd:element name="lineTypeCode" type="xsd:string"/>
<xsd:element name="segmentNumber" type="xsd:string"/>
<xsd:element name="segmentValue" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodePricing" type="xsd:string"/>
<xsd:element name="isZeroPriceOverride" type="xsd:string"/>
<xsd:element name="datePriceEffective" type="xsd:string"/>
<xsd:element name="priceCode1" type="xsd:string"/>
<xsd:element name="priceCode2" type="xsd:string"/>
<xsd:element name="priceCode3" type="xsd:string"/>
<xsd:element name="priceUnitDomestic" type="xsd:string"/>
<xsd:element name="priceUnitForeign" type="xsd:string"/>
<xsd:element name="priceExtendedDomestic" type="xsd:string"/>
<xsd:element name="priceExtendedForeign" type="xsd:string"/>
<xsd:element name="itemPriceGroupCode" type="xsd:string"/>
<xsd:element name="taxableCode" type="xsd:string"/>
<xsd:element name="modeOfTransportCode" type="xsd:string"/>
<xsd:element name="subledger" type="xsd:string"/>
<xsd:element name="subledgerTypeCode" type="xsd:string"/>
<xsd:element name="dutyStatusCode" type="xsd:string"/>
<xsd:element name="quantityOrdered" type="xsd:string"/>
<xsd:element name="quantityShippable" type="xsd:string"/>
<xsd:element name="quantityBackOrdered" type="xsd:string"/>
<xsd:element name="quantityCanceled" type="xsd:string"/>
<xsd:element name="unitOfMeasureCodeTransaction" type="xsd:string"/>
<xsd:element name="lineOfBusinessCode" type="xsd:string"/>
<xsd:element name="endUseCode" type="xsd:string"/>
<xsd:element name="priorityCode" type="xsd:string"/>
<xsd:element name="datePromisedShip" type="xsd:string"/>
<xsd:element name="timePromisedShip" type="xsd:string"/>
<xsd:element name="datePromisedOriginal" type="xsd:string"/>
<xsd:element name="timePromisedOriginal" type="xsd:string"/>
<xsd:element name="datePromisedDelivery" type="xsd:string"/>
<xsd:element name="timePromisedDelivery" type="xsd:string"/>
<xsd:element name="statusCodeLast" type="xsd:string"/>
<xsd:element name="statusCodeNext" type="xsd:string"/>
<xsd:element name="categoryCode001" type="xsd:string"/>
<xsd:element name="categoryCode002" type="xsd:string"/>
<xsd:element name="categoryCode003" type="xsd:string"/>
<xsd:element name="categoryCode004" type="xsd:string"/>
<xsd:element name="categoryCode005" type="xsd:string"/>
<xsd:element name="messages" type="xsd:string"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="SalesOrderEntry">
<wsdl:part name="SalesOrderEntry" element="wsdns1:SalesOrderEntry"/>
</wsdl:message>
<wsdl:message name="SalesOrderEntryOutput">
<wsdl:part name="SalesOrderEntry" element="wsdns1:SalesOrderEntry"/>
</wsdl:message>
<wsdl:portType name="IntegrationPoints_FlowServicesPortType">
<wsdl:operation name="SalesOrderEntry">
<wsdl:input message="tns:SalesOrderEntry"/>
<wsdl:output message="tns:SalesOrderEntryOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="IntegrationPoints_FlowServicesBinding" type="tns:IntegrationPoints_FlowServicesPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="SalesOrderEntry">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="IntegrationPoints_FlowServicesService">
<wsdl:port name="IntegrationPoints_FlowServicesPort0" binding="tns:IntegrationPoints_FlowServicesBinding">
<soap:address location="http://galileo.wlgore.com:5555/soap/default"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thanks,
RM 
no longer an issue, please disregard 
Well it is resolved in Jdeveloper but fails at runtime:
This expression is fine in jdeveloper:
/ns1:Request/ns1:Header/MessageHeader/Environment
When deployed and executed, the following error occurs:
<selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result.
xpath variable/expression expression "/ns1:Request/ns1:Header/MessageHeader/Environment" is empty at line 106, when attempting reading/copying it.
Please make sure the variable/expression result "/ns1:Request/ns1:Header/MessageHeader/Environment" is not empty.
</summary>
</part></selectionFailure> 
Well the problem looks like it is has to do with the Header element and ns1. If I test using the html form, it fails. So I selected "Save Test" to examine the xml. This creates the following xml (only showing the portion of interest):
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body xmlns:ns1="http://www.oracle.com/SOEInput">
          <ns1:Request>
               <Header>
                    <MessageHeader>
                         <Environment>Development</Environment>
                    </MessageHeader>
               </Header>
          </ns1:Request>
     </soap:Body>
</soap:Envelope>
As you can see, ns1: is missing from the Header element, which explains why
"/ns1:Request/ns1:Header/MessageHeader/Environment" is failing. If I augment it by adding the ns1: manually it executes correctly:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <soap:Body xmlns:ns1="http://www.oracle.com/SOEInput">
          <ns1:Request>
               <ns1:Header>
                    <MessageHeader>
                         <Environment>Development</Environment>
                    </MessageHeader>
               </ns1:Header>
          </ns1:Request>
     </soap:Body>
</soap:Envelope>
Any idea why this would occur on the BPEL server ? I presumed the HTML form would contain the correct namespaces.

Setting xsi:type in XMLBeans

I'm trying to create a schema with an abstract class and two subclasses. (see
below)
The xml saves fine, but when I try to load it the parser doesn't resolve the classes
to the subclass. Is there a way of setting the xsi:type as an attribute so that
when the file is loaded the classes are resolved to their correct type. Is there
a better way of doing this?
Thanks in advance,
Andrew
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.books.org"
xmlns="http://www.books.org"
elementFormDefault="unqualified">
<xsd:complexType name="PublicationType" abstract="true">
<xsd:sequence>
<xsd:element name="Title" type="xsd:string"/>
<xsd:element name="Author" type="xsd:string" maxOccurs="unbounded"/>
<xsd:element name="Date" type="xsd:year"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="BookType">
<xsd:complexContent>
<xsd:extension base="PublicationType">
<xsd:sequence>
<xsd:element name="ISBN" type="xsd:string"/>
<xsd:element name="Publisher" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="MagazineType">
<xsd:complexContent>
<xsd:extension base="PublicationType">
<xsd:sequence>
<xsd:element name="A" type="xsd:string"/>
<xsd:element name="B" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="BookStore">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Publication" maxOccurs="unbounded" type="PublicationType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Andrew,
I'm not clear on what you mean when you ask "try to load it ... doesn't
resove the classes to the subclass."
Can you post a code snip here and what you would expect to see?
Roger
"Andrew" <af#asd.nl> wrote in message news:3f4494e2$1#newsgroups.bea.com...
>
I'm trying to create a schema with an abstract class and two subclasses.(see
below)
The xml saves fine, but when I try to load it the parser doesn't resolvethe classes
to the subclass. Is there a way of setting the xsi:type as an attribute sothat
when the file is loaded the classes are resolved to their correct type. Isthere
a better way of doing this?
Thanks in advance,
Andrew
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.books.org"
xmlns="http://www.books.org"
elementFormDefault="unqualified">
<xsd:complexType name="PublicationType" abstract="true">
<xsd:sequence>
<xsd:element name="Title" type="xsd:string"/>
<xsd:element name="Author" type="xsd:string"maxOccurs="unbounded"/>
<xsd:element name="Date" type="xsd:year"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="BookType">
<xsd:complexContent>
<xsd:extension base="PublicationType">
<xsd:sequence>
<xsd:element name="ISBN" type="xsd:string"/>
<xsd:element name="Publisher" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="MagazineType">
<xsd:complexContent>
<xsd:extension base="PublicationType">
<xsd:sequence>
<xsd:element name="A" type="xsd:string"/>
<xsd:element name="B" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="BookStore">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Publication" maxOccurs="unbounded"type="PublicationType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
We are having the same problem. Basically, we have the following schema:
<xs:element name="LOTSOFFOO" type="LOTSOFFOO">
<xs:complexType name="LOTSOFFOO">
<xs:sequence>
<xs:element name="Foo" type="Foo" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complextype>
Where Foo is an abstract type, and Bar is an extension of Foo.
We use the Factory in the Bar class to create a new Bar object, then we call
myLotsaFooObj.addFoo(myBarObject);
This works just fine, but in the XML output it does not have the xsi:type="Bar"
attribute,
therefore it does not validate since Foo is an abstract type, and it does not
bind to the
Bar class.
Example XML output:
<LOTSOFFOO>
<Foo>
<MyFooInfo/>
<MyBarInfo/>
</Foo>
</LOTSOFFOO>
EXPECTED XML output:
<LOTSOFFOO>
<Foo xsi:type="Bar">
<MyFooInfo/>
<MyBarInfo/>
</Foo>
</LOTSOFFOO>
"Roger Weber" <rogerweb#bea.com> wrote:
Andrew,
I'm not clear on what you mean when you ask "try to load it ... doesn't
resove the classes to the subclass."
Can you post a code snip here and what you would expect to see?
Roger
"Andrew" <af#asd.nl> wrote in message news:3f4494e2$1#newsgroups.bea.com...
I'm trying to create a schema with an abstract class and two subclasses.(see
below)
The xml saves fine, but when I try to load it the parser doesn't resolvethe classes
to the subclass. Is there a way of setting the xsi:type as an attributeso
that
when the file is loaded the classes are resolved to their correct type.Is
there
a better way of doing this?
Thanks in advance,
Andrew
So is this a bug, or is there some setting that we are missing? Can this even be
duplicated by the developers?
Thanks
"Clark Anthony" <canthony#ngc.com> wrote:
>
We are having the same problem. Basically, we have the following schema:
<xs:element name="LOTSOFFOO" type="LOTSOFFOO">
<xs:complexType name="LOTSOFFOO">
<xs:sequence>
<xs:element name="Foo" type="Foo" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complextype>
Where Foo is an abstract type, and Bar is an extension of Foo.
We use the Factory in the Bar class to create a new Bar object, then
we call
myLotsaFooObj.addFoo(myBarObject);
This works just fine, but in the XML output it does not have the xsi:type="Bar"
attribute,
therefore it does not validate since Foo is an abstract type, and it
does not
bind to the
Bar class.
Example XML output:
<LOTSOFFOO>
<Foo>
<MyFooInfo/>
<MyBarInfo/>
</Foo>
</LOTSOFFOO>
EXPECTED XML output:
<LOTSOFFOO>
<Foo xsi:type="Bar">
<MyFooInfo/>
<MyBarInfo/>
</Foo>
</LOTSOFFOO>
"Roger Weber" <rogerweb#bea.com> wrote:
Andrew,
I'm not clear on what you mean when you ask "try to load it ... doesn't
resove the classes to the subclass."
Can you post a code snip here and what you would expect to see?
Roger
"Andrew" <af#asd.nl> wrote in message news:3f4494e2$1#newsgroups.bea.com...
I'm trying to create a schema with an abstract class and two subclasses.(see
below)
The xml saves fine, but when I try to load it the parser doesn't resolvethe classes
to the subclass. Is there a way of setting the xsi:type as an attributeso
that
when the file is loaded the classes are resolved to their correcttype.
Is
there
a better way of doing this?
Thanks in advance,
Andrew

how to generate not nillable complexType with ant task autotype

Hi all,
The file types.xml created by ant task autotype contains, among others, all element definitions of my java classes.
For testing purposes I have a simple class that holds (wraps) only a string. In the types.xml it is shown as followed:
<xsd:complexType name="StringHolder">
<xsd:sequence>
<xsd:element name="mystring"
type="xsd:string"
nillable="true"
minOccurs="1"
maxOccurs="1">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
Somehow nullabel is always true, but I want to be false. Does anyone knows how?

problem with xsd:anyType in XML Schema

This is under WLI 2.1, my app view is having problems getting a data element of
type xsd:anyType into the service signature.
I have an existing XML Schema that includes the following:
<xsd:complexType name="serviceToPostToInput">
<xsd:sequence>
<xsd:element ref="whateverYouWant" minOccurs="1" maxOccurs="1"/>
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="whateverYouWant" type="xsd:anyType"/>
These elements are used to create a SOMSchema instance, which is saved as request
schema. By digging in to that instance, I find a SOMElement named 'whateverYouWant'.
Its SOMType has id of 'xsd:anyType', but SOMType.toString() returns this string:
"***ERROR*** unresolved reference (xsd:anyType) ***ERROR***".
Also, SOMSchema.toXML() returns these elements:
<xsd:element name="sample.contentHandler.test_serviceToPostToRequest">
<xsd:complexType name="serviceToPostToInput">
<xsd:sequence>
<xsd:element ref="whateverYouWant"/>
<xsd:any minOccurs="0" maxOccurs="unbounded">
</xsd:any>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="whateverYouWant"/>
Notice, there's no type attribute on this element. Finally, when viewing the
request schema for an app view service using this schema, that final element is:
<xsd:element name="whateverYouWant" type="xsd:string"/>
I'm not sure where the type gets added on. The result is that what begins as
xsd:anyType gets turned into xsd:string. This causes problems at test time since
the target of the service is not expecting a string.
Any ideas?
FYI - this is a bug. The SOMSchema constructor that converts XML string to SOMSchema
instance does not handle xsd:anyType properly. Change request for fix is CR073992.
"Rod Burgett" <rBurgett#webMethods.com> wrote:
>
This is under WLI 2.1, my app view is having problems getting a data
element of
type xsd:anyType into the service signature.
I have an existing XML Schema that includes the following:
<xsd:complexType name="serviceToPostToInput">
<xsd:sequence>
<xsd:element ref="whateverYouWant" minOccurs="1" maxOccurs="1"/>
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="whateverYouWant" type="xsd:anyType"/>
These elements are used to create a SOMSchema instance, which is saved
as request
schema. By digging in to that instance, I find a SOMElement named 'whateverYouWant'.
Its SOMType has id of 'xsd:anyType', but SOMType.toString() returns
this string:
"***ERROR*** unresolved reference (xsd:anyType) ***ERROR***".
Also, SOMSchema.toXML() returns these elements:
<xsd:element name="sample.contentHandler.test_serviceToPostToRequest">
<xsd:complexType name="serviceToPostToInput">
<xsd:sequence>
<xsd:element ref="whateverYouWant"/>
<xsd:any minOccurs="0" maxOccurs="unbounded">
</xsd:any>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="whateverYouWant"/>
Notice, there's no type attribute on this element. Finally, when viewing
the
request schema for an app view service using this schema, that final
element is:
<xsd:element name="whateverYouWant" type="xsd:string"/>
I'm not sure where the type gets added on. The result is that what begins
as
xsd:anyType gets turned into xsd:string. This causes problems at test
time since
the target of the service is not expecting a string.
Any ideas?

Create WSDL document from XSD

Hi experts
I am trying to create WSDL from XSD following the tutorial using my own XSD
http://fusionstack.blogspot.com/2009/09/creating-wsdl-file-from-xsd-file.html
however, i am stucj at the step where we have to Drag and Drop the XSD elemnt in Port Type window of WSDL visual editor. When i Drag the EmpId element to Port Type window, the drop operation is not functioning.
Any help in this regard?
i am using Jdeveloper 11.1.1.3 and the XSD is as under :-
<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:element name="HistoryRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="request">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="entityId" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="response">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="entityDetails">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="HistoryInfo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="PerformanceIndicator" type="xsd:decimal"/>
<xsd:element name="noInteractions" type="xsd:decimal"/>
<xsd:element name="securityLevel" type="xsd:decimal"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="xsi" type="xsd:string"/>
<xsd:attribute name="noNamespaceSchemaLocation" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema> 
Any help please???

Categories

Resources