XSD problem
Hi,
my assign command is failing for the following error:
<selectionFailure>
<part name="summary" >
<summary>empty variable/expression result. xpath variable/expression expression "/ns2:OrderXml/ns2:Envelope/ns2:Sender" is empty at line 31, when attempting reading/copying it. Please make sure the variable/expression result "/ns2:OrderXml/ns2:Envelope/ns2:Sender" is not empty. </summary>
</part>
</selectionFailure>
The xsi:noNamespaceSchemaLocation... (see below) was not added by me
as you can see the sernder node is not empty
i suspect something is wrong with my xsd file which starts like this:
<xs:schema attributeFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="myNS"
xmlns="myNS"
elementFormDefault="qualified">
<xs:element name="OrderXml">
<xs:complexType>
Any idea?
Thanks
<OrderXml xsi:noNamespaceSchemaLocation="X:\Technology\Development\_Customers\teva\trd_order.xsd" >
<Envelope>
<Sender>5013546032634</Sender>
<SenderName>EAST ANGLIAN PHARMACEUTICALS</SenderName>
<Receiver>5017007000004</Receiver>
<ReceiverName>APS/BERK</ReceiverName>
<DocType>TRDORD</DocType>
<APRF>ORDERS</APRF>
<SNRF>REF883</SNRF>
<Ackn/>
<TestInd/>
<MessDate>051026</MessDate>
<MessTime>172412</MessTime>
<Header>
<CustomerOrderNo>0510260028</CustomerOrderNo>
<SupplierOrderNo/>
<OrderDatePlacedCust>051026</OrderDatePlacedCust>
<OrderDateReceivSuppl/>
<OrderClass>105</OrderClass>
<OrderCode/>
<SpecificationNo/>
<ContractNo/>
<CustANACode>5013546032634</CustANACode>
<CustOwnCode/>
<SupplCustCode>271301</SupplCustCode>
<CustName>EAST ANGLIAN PHARMACEUTICALS</CustName>
<CustAddr1>PINETREES BUSINESS PARK</CustAddr1>
<CustAddr2>PINETREES ROAD</CustAddr2>
<CustAddr3>NORWICH</CustAddr3>
<CustAddr4/>
<CustPostCode>NR7 9BB</CustPostCode>
<DeliveryDateEarliest/>
<DeliveryDateLatest/>
<EarliestTime/>
<LatestTime/>
<DelInstructionLine1/>
<DelInstructionLine2/>
<DelInstructionLine3/>
<DelInstructionLine4/>
<DelivaryInstructionNumber/>
<CodeTableNo/>
<CodeValue/>
<FirstRegisteredApplicationCode/>
<FirstApplicationText/>
<SecondRegisteredApplicationCode/>
<SecondApplicationText/>
<ThirdRegisteredApplicationCode/>
<ThirdApplicationText/>
<FourthRegisteredApplicationCode/>
<FourthApplicationText/>
<GeneralNarativeLine1/>
<GeneralNarativeLine2/>
<GeneralNarativeLine3/>
<GeneralNarativeLine4/>
<Details>
<Line>
<LineNo>1</LineNo>
<EANCodeTradedUnit>5017007847335</EANCodeTradedUnit>
<SupplierCodeTradedUnit/>
<DUNCodeTradedUnit/>
<SupplEANCodeConsumerUnit/>
<CustBrandEAN/>
<CustItemCode/>
<ConsumerUnitsinTradedUnit>1</ConsumerUnitsinTradedUnit>
<OrderingMeasure/>
<OrMeasureIndicator/>
<NumberOfTraderUnits>50</NumberOfTraderUnits>
<TotalMeasure/>
<TMeasureIndicator/>
<CostPrice/>
<CMeasureIndicator/>
<SpecialPriceIndicator/>
<ToFollowIndicator/>
<TradedUnitDescription1>MORPHINE SULPH SR TABS 10MG CD APS</TradedUnitDescription1>
<TradedUnitDescription2> 00060</TradedUnitDescription2>
<LSpecificationNo/>
<LContractNo/>
<LCodeTableNo/>
<LCodeValue/>
<LFirstRegisteredApplicationCode/>
<LFirstApplicationText/>
<LSecondRegisteredApplicationCode/>
<LSecondApplicationText/>
<LThirdRegisteredApplicationCode/>
<LThirdApplicationText/>
<LFourthRegisteredApplicationCode/>
<LFourthApplicationText/>
<LGeneralNarativeLine1/>
<LGeneralNarativeLine2/>
<LGeneralNarativeLine3/>
<LGeneralNarativeLine4/>
</Line>
<Line>
<LineNo>2</LineNo>
<EANCodeTradedUnit>5017007847359</EANCodeTradedUnit>
<SupplierCodeTradedUnit/>
<DUNCodeTradedUnit/>
<SupplEANCodeConsumerUnit/>
<CustBrandEAN/>
<CustItemCode/>
<ConsumerUnitsinTradedUnit>1</ConsumerUnitsinTradedUnit>
<OrderingMeasure/>
<OrMeasureIndicator/>
<NumberOfTraderUnits>30</NumberOfTraderUnits>
<TotalMeasure/>
<TMeasureIndicator/>
<CostPrice/>
<CMeasureIndicator/>
<SpecialPriceIndicator/>
<ToFollowIndicator/>
<TradedUnitDescription1>MORPHINE SULPH SR TABS 30MG CD APS</TradedUnitDescription1>
<TradedUnitDescription2> 00060</TradedUnitDescription2>
<LSpecificationNo/>
<LContractNo/>
<LCodeTableNo/>
<LCodeValue/>
<LFirstRegisteredApplicationCode/>
<LFirstApplicationText/>
<LSecondRegisteredApplicationCode/>
<LSecondApplicationText/>
<LThirdRegisteredApplicationCode/>
<LThirdApplicationText/>
<LFourthRegisteredApplicationCode/>
<LFourthApplicationText/>
<LGeneralNarativeLine1/>
<LGeneralNarativeLine2/>
<LGeneralNarativeLine3/>
<LGeneralNarativeLine4/>
</Line>
</Details>
<Summary>
<LinesOrdered>2</LinesOrdered>
<TotalQtyOrdered/>
</Summary>
</Header>
</Envelope>
</OrderXml>
Hmm. Just discovered that this is apparently because of the way I'm doing the namespacing: the following XSD and XML files work fine:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:attribute name="code" type="xs:string"/>
<xs:element name="foo">
<xs:complexType>
<xs:attribute ref="code" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="body">
<xs:complexType>
<xs:sequence>
<xs:element ref="foo" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./test.xsd">
<foo code="bar" />
</body>Does anyone have any clue what the difference here is? What did I do wrong in my original files?
Thanks!
Similar Messages
-
I deployed one pl/sql web services using jdeveloper10g to oc4j. within this webservices, there are two operations which reture two set of xml data.
For each operation call, the biztalk server need to validate against xsd files that we provide to them.
Here are the problems:
1. The xsd was generated from database. but in the soap body, there are two extra tags being added by (see below)
<env:Body>
<ns0:getSuppliersCsResponseElement>
<ns0:pdatasetOut><SUPPLIERS><SUPPLIER><SUPPLIER_ID>6144</SUPPLIER_ID><SUPPLIER_NAME>Botanica</SUPPLIER_NAME>
<SUPPLIER_LAST_MODIFIED>2006-01-22</SUPPLIER_LAST_MODIFIED><JI_OWNED>1</JI_OWNED><BRANDS_EXCLUSIVE_TO_JI></BRANDS_EXCLUSIVE_TO_JI><LIBRARIES><LIBRARY><LIBRARY_ID>5514</LIBRARY_ID><LIBRARY_NAME>Botanica</LIBRARY_NAME><LIBRARY_TYPE>Rights Managed</LIBRARY_TYPE><LIBRARY_LAST_MODIFIED>2005-09-01</LIBRARY_LAST_MODIFIED><RESTRICTIONS><WEBSITE><WEBSITE_ID>2</WEBSITE_ID><WEBSITE_NAME>PictureQuest</WEBSITE_NAME><COUNTRY_CODES><ISO3>ABW</ISO3><ISO3>AND</ISO3></COUNTRY_CODES></WEBSITE></RESTRICTIONS></LIBRARY></LIBRARIES></SUPPLIER></SUPPLIERS></ns0:pdatasetOut>
</ns0:getSuppliersCsResponseElement>
</env:Body>
there two <ns0:getSuppliersCsResponseElement> and <ns0:pdatasetOut> are not in my original xsd file. so biztalk returned failure when it validate message body. Shall I change me xsd to add these two or there is anyway doing this?
2. I have two operations with different xsd files. How to attach correct or both xsd files within the soap message? or can i do something with WSDL file to inclulde two schemalocations?
3. the soap body can be over 100MB big. How to streaming the message?The following is the WSDL file generated by Jdeveloper
<definitions
name="tt"
targetNamespace="http://webdevdb/Tt.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://webdevdb/Tt.wsdl"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webdevdb/Tt.wsdl"
elementFormDefault="qualified" xmlns:tns="http://webdevdb/Tt.wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap12-enc="http://www.w3.org/2003/05/soap-encoding">
<element name="getRfitemsCsElement" type="decimal" nillable="true"/>
<element name="getRfitemsCsResponseElement" type="tns:TtUser_getRfitemsCs_Out" nillable="true"/>
<complexType name="TtUser_getRfitemsCs_Out">
<sequence>
<element name="pdatasetOut" type="string" nillable="true"/>
</sequence>
</complexType>
<element name="getSuppliersCsElement" type="string" nillable="true"/>
<element name="getSuppliersCsResponseElement" type="tns:TtUser_getSuppliersCs_Out"
nillable="true"/>
<complexType name="TtUser_getSuppliersCs_Out">
<sequence>
<element name="pdatasetOut" type="string" nillable="true"/>
</sequence>
</complexType>
</schema>
</types>
<message name="Tt_getRfitemsCs">
<part name="parameters" element="tns:getRfitemsCsElement"/>
</message>
<message name="Tt_getRfitemsCsResponse">
<part name="result" element="tns:getRfitemsCsResponseElement"/>
</message>
<message name="Tt_getSuppliersCs">
<part name="parameters" element="tns:getSuppliersCsElement"/>
</message>
<message name="Tt_getSuppliersCsResponse">
<part name="result" element="tns:getSuppliersCsResponseElement"/>
</message>
<portType name="tt">
<operation name="getRfitemsCs">
<input message="tns:Tt_getRfitemsCs"/>
<output message="tns:Tt_getRfitemsCsResponse"/>
</operation>
<operation name="getSuppliersCs">
<input message="tns:Tt_getSuppliersCs"/>
<output message="tns:Tt_getSuppliersCsResponse"/>
</operation>
</portType>
<binding name="ttSoap12Http" type="tns:tt">
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getRfitemsCs">
<soap12:operation soapAction="http://webdevdb/Tt.wsdl/getRfitemsCs" soapActionRequired="false"/>
<input>
<soap12:body use="literal"/>
</input>
<output>
<soap12:body use="literal" parts="result"/>
</output>
</operation>
<operation name="getSuppliersCs">
<soap12:operation soapAction="http://webdevdb/Tt.wsdl/getSuppliersCs" soapActionRequired="false"/>
<input>
<soap12:body use="literal"/>
</input>
<output>
<soap12:body use="literal" parts="result"/>
</output>
</operation>
</binding>
<service name="tt">
<port name="ttSoap12HttpPort" binding="tns:ttSoap12Http">
<soap12:address location="http://192.168.10.151:8888/Application2-proj1-context-root/ttSoap12HttpPort"/>
</port>
</service>
</definitions> -
I'm using two xsd.
The first one is like a dictionory the second one form specific.
In the form specific xsd I use restriction from the dictionary
for eg: dictionary.xsd is like this
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org/Base"
targetNamespace="http://www.example.org/Base"
elementFormDefault="unqualified">
<xs:element name="A" type="AType" />
<xs:complexType name="AType">
<xs:sequence>
<xs:element name="title" type="xs:string" />
<xs:element name="name" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:schema>
form.xsd is
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org/Restriction"
targetNamespace="http://www.example.org/Restriction"
xmlns:base="http://www.example.org/Base"
elementFormDefault="unqualified">
<xs:import namespace="http://www.example.org/Base"
schemaLocation="dictionary.xsd" />
<xs:element name="ARestricted" type="ARestrictedType" />
<xs:complexType name="ARestrictedType">
<xs:complexContent>
<xs:restriction base="base:AType">
<xs:sequence>
<xs:element name="name" type="xs:string" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>
when i import this into livecyle I'm expecting to see only restricted elements but i see all the elements from dictionary.
Here in this case I want to see in dataview only "name", but i see both "title" and "name"
In my actual forms "dictionary xsd" is so big which makes my livecycle designe very slow.
As a result i get this error message, if i remove some of the elements then livecycle can import.
Can somebody help me please.EMF doesn't provide any tools for doing DTD to XML Schema conversion.
The first error sounds like there are things with names that aren't well
formed and the second sounds like references either to a namespace that
isn't imported or that doesn't define the referenced name.
as13 wrote:
> Hello,
> I got a problem by importing an xsd schema.
> I converted a dtd to a xsd schema first by Stylus Studio. After that i
> tried to create a new EMF project by importing the xsd schema.
>
> Allways got problems like that:
>
> "Problems were detected while validating and converting the XML Schemas
> Error: XSD: The value 'xxx' of attribute 'name' must conform to
> pattern '(\i\c*) & ([\i-[:]][\c-[:]]*)' as constrained by
> 'http://www.w3.org/2001/XMLSchema#NCName' : URI
> file:/C:/.../EnterpriseDTD.xsd Line 21 Column 4
>
> or
>
> Error: XSD: Element reference 'UML#xxx' is unresolved : URI
> file:/C:/.../EnterpriseDTD.xsd Line 569 Column 5
>
>
> Because of the xsd Schema is about 700kB, these problems appears round
> about 3000 times!!!
>
> Does anyone has an idea? I think it´s about a not valid xsd schema,
> but I don´t know, how i can generate a valid xsd schema out of a DTD.
> I tried it with stylus Studio an XMLSpy. Couldn´t get a "valid" Schema...
>
>
>
> greets
> -
Hi,
I am trying to compile a set of generated jaxb classes from the xsd defined below. During compilation I get an error stating "Nested type GuestCountType hides an enclosing type". Does anyone see a problem with my xsd file. Appreciate any help with this problem
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:complexType name="GuestCountType">
<xs:sequence>
<xs:element name="GuestCount" maxOccurs="99">
<xs:complexType>
<xs:attributeGroup ref="GuestCountGroup"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="IsPerRoom" type="xs:boolean" use="optional"/>
</xs:complexType>
<xs:complexType name="RoomStayCandidateType">
<xs:sequence>
<xs:element name="GuestCounts" type="GuestCountType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:attributeGroup name="GuestCountGroup"/>
</xs:schema>Refer to section
E.2 Not Required XML Schema
concepts
"A JAXB implementation is not required to support the following XML Schema
concepts for this version of the specification. A JAXB implementation may
choose to support these features in an implementation dependent manner."
E.2.2 Not supported while manipulating the XML
content
Schema component: wildcard
(any)
how can i know if an xml element with xsi:nil="true" (unmarshal)
and set xsi:nil="true" for an element (marshal) ?
According to the JAXB 1.0 specification:
If {nillable} is "true", the methods setNil() and isNil() are
generated. -
Hi! I have created a XML to load the catalog item in batch mode and I understand that I have to use a XSD. So, I got a generated copy of the XSD (using XMLSpy), added the XML schema in the MDM Console and assigned it to the appropriate Port. I then loaded the product file in the Ready folder and the file disappeared - indicating that it has been processed. An exception occurred on checking the status of the load. In the report, there is a message - Source file does not conform to XML Schema.
I then tried to import the XML through Import Manager and am able to import without problem. However, if I do the import using XSD, I found that the data did not appear at all for the structure. I reckon that may be the reason why the batch import did not work. However, I am not sure what is wrong with the XSD. Anybody has any idea? Thanks in advance for any help rendered.
Below are my XML data and XSD:
<?xml version="1.0" encoding="utf-8"?>
<ProductCatalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\TEMP\Product Load XML.xsd">
<MaterialContent>
<Category>OTHER</Category>
<MfgPartNum/>
<MfgName/>
<SupPartNum>9999TEST</SupPartNum>
<SupName>Company ABC</SupName>
<SupID>5650</SupID>
<Description>9999 TEST ITEM</Description>
<ScaleValue>1</ScaleValue>
<Price>2.0</Price>
<InfoRecord/>
<PurOrg/>
<Currency>NZD</Currency>
<UOM>EA</UOM>
<LongDescription/>
<Picture/>
<UNSPSC>44122011</UNSPSC>
<UNSPSCDesc>Folders</UNSPSCDesc>
<LeadTime>2</LeadTime>
<Aliases/>
<ProdGroup>00603</ProdGroup>
<ItemType/>
<Type/>
<MimeType/>
<URLDesc/>
<URLLink/>
</MaterialContent>
</ProductCatalog>
XSD:
<?xml version="1.0" encoding="UTF-8"?>
<!W3C Schema generated by XMLSpy v2008 rel. 2 (http://www.altova.com)>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="URLLink">
<xs:complexType/>
</xs:element>
<xs:element name="URLDesc">
<xs:complexType/>
</xs:element>
<xs:element name="UOM" type="xs:string"/>
<xs:element name="UNSPSCDesc" type="xs:string"/>
<xs:element name="UNSPSC" type="xs:int"/>
<xs:element name="Type">
<xs:complexType/>
</xs:element>
<xs:element name="SupPartNum" type="xs:string"/>
<xs:element name="SupName" type="xs:string"/>
<xs:element name="SupID" type="xs:short"/>
<xs:element name="ScaleValue" type="xs:byte"/>
<xs:element name="PurOrg">
<xs:complexType/>
</xs:element>
<xs:element name="ProductCatalog">
<xs:complexType>
<xs:sequence>
<xs:element ref="MaterialContent" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProdGroup" type="xs:short"/>
<xs:element name="Price" type="xs:decimal"/>
<xs:element name="Picture" type="xs:string"/>
<xs:element name="MimeType">
<xs:complexType/>
</xs:element>
<xs:element name="MfgPartNum">
<xs:complexType/>
</xs:element>
<xs:element name="MfgName">
<xs:complexType/>
</xs:element>
<xs:element name="MaterialContent">
<xs:complexType>
<xs:sequence>
<xs:element ref="Category"/>
<xs:element ref="MfgPartNum"/>
<xs:element ref="MfgName"/>
<xs:element ref="SupPartNum"/>
<xs:element ref="SupName"/>
<xs:element ref="SupID"/>
<xs:element ref="Description"/>
<xs:element ref="ScaleValue"/>
<xs:element ref="Price"/>
<xs:element ref="InfoRecord"/>
<xs:element ref="PurOrg"/>
<xs:element ref="Currency"/>
<xs:element ref="UOM"/>
<xs:element ref="LongDescription"/>
<xs:element ref="Picture"/>
<xs:element ref="UNSPSC"/>
<xs:element ref="UNSPSCDesc"/>
<xs:element ref="LeadTime"/>
<xs:element ref="Aliases"/>
<xs:element ref="ProdGroup"/>
<xs:element ref="ItemType"/>
<xs:element ref="Type"/>
<xs:element ref="MimeType"/>
<xs:element ref="URLDesc"/>
<xs:element ref="URLLink"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LongDescription">
<xs:complexType/>
</xs:element>
<xs:element name="LeadTime" type="xs:byte"/>
<xs:element name="ItemType">
<xs:complexType/>
</xs:element>
<xs:element name="InfoRecord">
<xs:complexType/>
</xs:element>
<xs:element name="Description" type="xs:string"/>
<xs:element name="Currency" type="xs:string"/>
<xs:element name="Category" type="xs:string"/>
<xs:element name="Aliases">
<xs:complexType/>
</xs:element>
</xs:schema>Hi I have finally resolved the problem! I did that by modifying the XSD into a simpler format which at least I can understand
In general, I grouped the element definitions together and then put the top element at the bottom to reference to these elements. I also changed the type of some of the elements from complex to simple. Note that I didn't have to remove the namespace here.
For those who are interested, below is the XSD I have modified from the generated XSD shown in my original posting on this problem:
<?xml version="1.0" encoding="UTF-8"?>
<!W3C Schema generated by XMLSpy v2008 rel. 2 (http://www.altova.com)>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- definition of elements -->
<xs:element name="URLLink" type="xs:string"/>
<xs:element name="URLDesc" type="xs:string"/>
<xs:element name="UOM" type="xs:string"/>
<xs:element name="UNSPSCDesc" type="xs:string"/>
<xs:element name="UNSPSC" type="xs:int"/>
<xs:element name="Type" type="xs:string"/>
<xs:element name="SupPartNum" type="xs:string"/>
<xs:element name="SupName" type="xs:string"/>
<xs:element name="SupID" type="xs:short"/>
<xs:element name="ScaleValue" type="xs:byte"/>
<xs:element name="PurOrg" type="xs:string"/>
<xs:element name="ProdGroup" type="xs:short"/>
<xs:element name="Price" type="xs:decimal"/>
<xs:element name="Picture" type="xs:string"/>
<xs:element name="MimeType" type="xs:string"/>
<xs:element name="MfgPartNum" type="xs:string"/>
<xs:element name="MfgName" type="xs:string"/>
<xs:element name="LongDescription" type="xs:string"/>
<xs:element name="LeadTime" type="xs:byte"/>
<xs:element name="ItemType" type="xs:string"/>
<xs:element name="InfoRecord" type="xs:string"/>
<xs:element name="Description" type="xs:string"/>
<xs:element name="Currency" type="xs:string"/>
<xs:element name="Category" type="xs:string"/>
<xs:element name="Aliases" type="xs:string"/>
<!-- definition of complex elements -->
<xs:element name="MaterialContent">
<xs:complexType>
<xs:sequence>
<xs:element ref="Category"/>
<xs:element ref="MfgPartNum"/>
<xs:element ref="MfgName"/>
<xs:element ref="SupPartNum"/>
<xs:element ref="SupName"/>
<xs:element ref="SupID"/>
<xs:element ref="Description"/>
<xs:element ref="ScaleValue"/>
<xs:element ref="Price"/>
<xs:element ref="InfoRecord"/>
<xs:element ref="PurOrg"/>
<xs:element ref="Currency"/>
<xs:element ref="UOM"/>
<xs:element ref="LongDescription"/>
<xs:element ref="Picture"/>
<xs:element ref="UNSPSC"/>
<xs:element ref="UNSPSCDesc"/>
<xs:element ref="LeadTime"/>
<xs:element ref="Aliases"/>
<xs:element ref="ProdGroup"/>
<xs:element ref="ItemType"/>
<xs:element ref="Type"/>
<xs:element ref="MimeType"/>
<xs:element ref="URLDesc"/>
<xs:element ref="URLLink"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProductCatalog">
<xs:complexType>
<xs:sequence>
<xs:element ref="MaterialContent" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Edited by: SF on Dec 3, 2008 11:17 AM -
Hi,
I m trying to create a XSD which inturn would be converted to JAXB related classes. My problem is i would be getting an xml like this :-
<Parent>
<child>
<child>
<child/>
<child/>
</child>
</child>
<child>
</child>
</Parent>
As you can see from the xml that there could be n levels of child tags composed within a child tag. I tried using XML spy for generating the XSD. But ended up having problems. Can any one help me in creating the xsd for such an xml ?
I m real sorry if the xml shown above isnt indented. as i tried getting it indented but the forum somehow didnt allow me to show it indented.
Thanks in advance !!
CheersThis forum is for the program Pages.
Assuming you are actually using Pages:
Menu > Arrange > Flip Horizontally
Since there is no shortcut I know of to do this accidentally, I can only think you flipped something and have been using copies of the reversed object which maintains its mirror image no matter what you stick in it. If so make a new image/textbox and use that instead.
Peter -
Hi B2B Gurus,
We are facing the problem with ECS and XSD files from past 2 weeks, Steps we followed
1. Created a ECS file in document editor version 11g: 6.6.0
2. ECS files consists only from ST and SE segments
Ex: ST
BCH
CUR
REF
PER -- Exclude
TAX -- Exclude
SE
3: Generated a XSD file from ECS file( File --> export---> Oracle B2B) in document ediotr
4. We imported a ECS and XSD file in B2B console( documents---docdef-transaction set ECS file) and XSD File
5. We tested one file from manually we face below error:
Error Code B2B-51507
Error Description Machine Info: (usmtnz-dinfap19.dev.emrsn.org) Description: Payload validation error.
Error Level ERROR_LEVEL_COLLABORATION
Error Severity ERROR
Error Text
and some times it shows Guideline load Error or simply Error
Please help us to resolve this
RegardsAnuj,
We are sending the EDI XML file from backend, then B2B will convert it into EDI file, How can we analyze EDI XML file with ECS file, B2B is not converting to EDI.
1. Can we use 10g ECS file and XSD file in 11G
2. I tried to import it, but it showing below error while doing testing
App Message property {MSG_ID=90422086, Sequencing=false, DOCTYPE_REVISION=5020, MSG_TYPE=1, FROM_PARTY=EMERSON, DOCTYPE_NAME=850, TO_PARTY=APLL, ATTACHMENT=}
Direction OUTBOUND
State MSG_ERROR
Error Code B2B-51507
Error Text Error Brief : The element does not include any significant data.
Error Description Error : The Element PER02 does not include any significant data characters. Segment PER is defined in the guideline at position 3600.{br}{br}This error was detected at:{br}{tab}Segment Count: 11{br}{tab}Element Count: 2{br}{tab}Characters: 5395 through 5397
Created Date 06/20/2011 02:52 PM
Modified Date 06/20/2011 02:52 PM
Note: I used the same files in 10G its working fine.
Regards
Edited by: Francis on Jun 20, 2011 10:48 AM -
XSD Resolution problem - Unable to load Translation schemas
Hi,
I've run into a very strange kind of problem (not to say some are less strange then others). Let me explain the context of the situation.
I've got a BPEL process calling two plsql packages on ORA database, one Java web service running on the same weblogic server and couple of other services (eg. notification services, jdbc select/insert, etc.). There is no problem with the last listed, but definitely something wrong with the web service and the plsql callouts.
When I deploy the BPEL process and execute it, the first two instances always fail. The same happens when I restart the server, the errors are repeated after a certain period as well (for example over night). The process always fails EXACTLY TWICE, before running normally. Every other instance executed after the two initial failures runs WITHOUT the following error.
I mentioned there are two plsql callouts in the process, earlier the first instance failed on the second one and the second instance failed on the first. Now, it mostly fails on the second callout. I've made no significant changes in the code. Perhaps the strangest thing about this is that it fails when invoking the plsql package but the error concerns xsd definitions of the web service that plays no role at this stage.
All my services are correctly deployed, I deleted all interface definitions from MDS repository and redeployed SOA bundle again before installing each service.
I think it has something to do with generated xsd definitions by the java web service (it's the http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 and http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 from following stack trace), but I can't figure out what exactly is wrong with them.
Anybody come accross a similar error? Thanks for tips, I've run out of ideas.
Error Message: {http://schemas.oracle.com/bpel/extension}bindingFault
Fault ID default/S50001KontrolaSouboruBS!1.0*soa_be986963-f9d9-412d-b692-43804a35b3ee/KontrolaSouboru/830023-BpInv18-BpSeq8.12-2
Fault Time 14-Feb-2012 11:11:16
Non Recoverable System Fault :
<bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'LogFile' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.db.DBStoredProcedureInteractionSpec due to: XSD Resolution problem. XSD Resolution problem. Unable to load Translation schemas from for http://xmlns.oracle.com/pcbpel/adapter/db/TST_IP/LOG_FILE/LOG_FILE/ due to: Different schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentGlobal element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 82] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:82] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 36] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:36] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 21] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:21] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 51] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:51] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 66] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:66] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 112] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:112] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 127] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:127] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 97] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:97] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 115] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 52] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:117] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:54] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 175] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 98] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:177] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:100] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 153] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 128] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:155] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:130] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 64] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 83] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:66] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:85] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 93] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 22] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:95] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:24] Please make sure all used XML schemas are imported/included correctly. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>Different schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/Common.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and oramds:/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentDifferent schema default values detected between: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=2 and http://localhost:8001/soa-infra/services/default/S50035NotifikaceChybyBS/apps/LCRInterface/DataObjects/Common/V1/DataTypes.xsd elementFormDefault values are differentGlobal element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 82] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:7] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:82] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 36] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:9] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:36] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 21] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:19] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:21] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 51] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:11] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:51] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 66] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:5] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:66] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 112] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:13] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:112] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 127] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:15] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:127] Global element declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDM' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 97] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:17] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:97] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 115] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 52] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:117] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:54] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}RenameFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 175] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 98] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:177] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:100] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetTextFileRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 153] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 128] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:155] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:130] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}GetFileListByMaskRespDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 64] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 83] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:66] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:85] Global Type declaration/definition of name '{http://xmlns.lesycr.cz/DO/PrenosSouboru/V1}SaveFileDataType' are duplicated at the following locations: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [line#: 93] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [line#: 22] There are at least two of them looking different: http://localhost:8001/S50040PrenosSouboruBS/PrenosSouboruBSSOAP11BindingPort?xsd=1 [difference starting at line#:95] oramds:/apps/LCRInterface/DataObjects/D500Proces/PrenosSouboru/V1/PrenosSouboruDM.xsd [difference starting at line#:24] </detail></part><part name="code"><code>null</code></part></bindingFault></bpelFault>I had similar issue, when i deployed composite using Jdeveloper. The problem was with my adf-config.xml pointing to dev server and all my references in my composite.xml referring to test server.
I changed property of 'oracle.mds.persistence.stores.db.DBMetadataStore' in adf-config.xml to test server. After adf-config.xml change in Jdev my compilation went smooth.
Note: If above changes doesn't work, try restarting JDeveloper, sometimes the changes in adf-config.xml is not getting effect immediately.
Regards,
Ziaur Rahuman S
Edited by: Ziaur Rahuman on Feb 13, 2013 10:58 PM -
Problem with XSD validation in Java 5
Hi everyone,
my application creates in memory schema using JDOM. In Java 6 validation runs fine, but in Java 5 (which is the target platform currently) it fails.
I tried a second test with just parsing an existing XSD document (not created using JDOM) and that works.
The textual representation of both (file and JDOM generated) are identical. If I replace the XSD file with the JDOM output, the "file test" runs fine, too.
Here's the test code:
protected void assertXsdValid(Source xsdSource, InputSource xmlInputSource) throws SAXException, ParserConfigurationException, IOException {
isValid = true;
SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
sf.setErrorHandler(myErrorHandler);
Schema schema = sf.newSchema(xsdSource); // <<--------- THIS LINE FAILS IN JAVA 5
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setSchema(schema);
DocumentBuilder db = dbf.newDocumentBuilder();
db.setErrorHandler(myErrorHandler);
db.parse(xmlInputSource);
assertTrue(isValid);
}This is the XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://some.org/metamodel" elementFormDefault="qualified">
<xs:element name="system">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="vendor" type="xs:string" />
<xs:element name="version" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>This is the error message I get:
ERROR: org.xml.sax.SAXParseException: s4s-att-invalid-value: Invalid attribute value for 'type' in element 'element'. Recorded reason: UndeclaredPrefix: Cannot resolve 'xs:string' as a QName: the prefix 'xs' is not declared.
This is how I call the test code in the JDOM test:
assertXsdValid(new JDOMSource(xsdDoc), new JDOMSource(xmlDoc).getInputSource());If I change the code to parsing not the JDOMSource, but a StreamSource reading the textual representation of the XSD, it works fine!
assertXsdValid(new StreamSource(new ByteArrayInputStream(new XMLOutputter().outputString(xsdDoc).getBytes())), new JDOMSource(xmlDoc).getInputSource());But this is not what I want (I expect suboptimal performance with large XSD documents). So, if it works with Java 6, then why doesn't it work with Java 5?
How can I use the Java 6 JAXP in Java 5?
Thank you.A new user name?
I can think of ways round your problem but can you first provide a reference that indicates that byte 0x80 is the MS936 encoding for the Euro?
P.S. This is a forum and the vast majority of participants, including me, have no direct relationship with Oracle so getting definitive answers from Oracle via this forum is unlikely. If you think you have found a bug in 1.5 and/or 1.6, and I am not convinced you have, you need to report it via the bug database. If it is a bug then the response time for a fix is likely to be months rather than days.
P.P.S No I can't explain why it works in 1.7! -
JAXB compiler problem in handling xsd:any and nillble = "true"
Dear all,
i am using jdeveloper 10.1.3.1 production release version.
i am designing a xml schema that contain element of attribute nillable="true", for extensible, contain tag <xsd:any>.
but i encounter 2 problem:
1. for xml schema element with attribute nillable="true", no corresponding isNil(), setNil
method is generated (refer to jaxb 1.0 spec. 5.7.1)
2. cannot handle tag <xs:any> that generate incorrect java source code (cannot compile) [refer to jaxb 1.0 spec 5.9.5)
*** i have add jaxb customization tag inside the <xs:any> tag
*** <xs:annotation><xs:appinfo>
*** <jaxb:property name="Extension"/>
***</xs:appinfo></xs:annotation>
Does oracle's JAXB implementation conform to the JAXB 1.0 spec?
Is it a known bug?
Could anybody help me?Refer to section
E.2 Not Required XML Schema
concepts
"A JAXB implementation is not required to support the following XML Schema
concepts for this version of the specification. A JAXB implementation may
choose to support these features in an implementation dependent manner."
E.2.2 Not supported while manipulating the XML
content
Schema component: wildcard
(any)
how can i know if an xml element with xsi:nil="true" (unmarshal)
and set xsi:nil="true" for an element (marshal) ?
According to the JAXB 1.0 specification:
If {nillable} is "true", the methods setNil() and isNil() are
generated. -
Problem with import tag in xsl files and include in xsd files
Hello,
I've been developing an application using JBoss as server. Then, i created an especific path for xsd and another path for xsl files. In both cases, i created a main file that include (xsd) or import (xsl) the other files. My problem is that i have to specify the exactly path where the imported xsl or the included xsd files are, even though they are in the same path as the main file. What i want to know is how i say that the other xsd and xsl files are in the same path that the main file that is importing them?
here's an example of my import and include declarations:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../server/jboss/deploy/application.ear/pack.jar/xsl/transformer1.xsl"/>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="../server/jboss/deploy/application.ear/pack.jar/xsd/schema1.xsd"/>
thanks for your helpyes, thats not the value returned of
URL url = this.getClass().
getResource("/xsl//transformer.xsl");the expression i posted is an string i'm using to test.... but i think it's not incorrect, because if the files i'm trying to open are not in the path, he throws the following exception:
java.io.FileNotFoundException: C:\cpqd\isp\tools\third-party\jboss\server\jbossISP1\deploy\cpqd-ispeng-EngEJB-3.3.0.0.ear\cpqd-ispinv-ServiceEJB.jar\xsl\isp_transformer_manufacturer.xsl
at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:80)
at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:89)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:323)
at org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:192)
at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788)
at br.com.cpqd.oss.isp.service.adapter.FrameworkAdapter.createExternalData(FrameworkAdapter.java:131)
at br.com.cpqd.oss.isp.service.message.ExternalDataMDBBean.onMessage(ExternalDataMDBBean.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:284)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
at org.jboss.ejb.Container.invoke(Container.java:709)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:928)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1205)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
at org.jboss.mq.SpySession.run(SpySession.java:351)
at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
at java.lang.Thread.run(Thread.java:534)and when the files are in the path, he throws the other exception... thats why i think the problem it's not the URL.... -
Facing problem in xml schema xsd file registration
Hi,
i am facing problem in xml schema xsd file registration when
the number of column is more. It is showing persing error.
if i am deleting few column from xsd file . It is working otherwise
showing error. Is there any solution for that please suggest me.
The Error is
ORA-31011:XML parsing failed
ORA_19202: Error occurred in XML processing
LPX-00230 : (message vary time to time-like invalid tag ending etc.)
Regards
Manoranjan
and thanks in advanceWhere is you XML coming from. Are you sure it's valid. If you are hard coding it as a SQL String constant are you hitting the 4k / 32K limit on the size of SQL / PL/SQL constant. Have you tried loading the content from a bfile..
-
Actually I have a problem relating to Oracle 10g XML DB. Ill explain the scenario.
1. First an xml file needs to be loaded into the database( after registering the schema)
2. Later maybe after inserting suppose 10 xml files into the table, I need to add an element in the xml.
3. And the new xml's which are later loaded will have that additional field coming in. so how should I go about from here.
What Ive thought is:
1. Generate a new XSD schema (dont know how to generate this automatically), implementing the additional field change.(can u help me in this)
2. Create a new XSL depending on the new XSD schema (dont know how to generate this automatically). (can u help me in this)
3. apply the new xsl to the original xml to get the new xml.
4. in the meantime, keep the old xml in a temporary tables, and later, update those xml corresponding to the new schema (can u help me in this)
I dont know if this a correct procedure, if in case, there is a different and an easy method to do it, please let me know.
regards,
atharDoes the following help
SQL> set long 10000 pages 50
SQL> --
SQL> declare
2 res boolean;
3 xmlschema xmltype := xmltype(
4 '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://x
5 <xsd:complexType name="T_person" xdb:SQLType="PERSON_T">
6 <xsd:all>
7 <xsd:element name="first_name" type="xsd:string" />
8 <xsd:element name="last_name" type="xsd:string" />
9 <xsd:element name="birth_day" type="xsd:date" />
10 </xsd:all>
11 <xsd:attribute name="employee_id" type="xsd:positiveInteger" />
12 </xsd:complexType>
13 <xsd:element name="person" type="T_person" xdb:defaultTable="XML_LOAD"/>
14 </xsd:schema>');
15 begin
16 if (dbms_xdb.existsResource('/public/testcase.xsd')) then
17 dbms_xdb.deleteResource('/public/testcase.xsd');
18 end if;
19 res := dbms_xdb.createResource('/public/testcase.xsd',xmlschema);
20 end;
21 /
PL/SQL procedure successfully completed.
SQL> call dbms_xmlschema.deleteSchema('www.WMDurl.com',4)
2 /
Call completed.
SQL> begin
2 dbms_xmlschema.registerSchema ('www.WMDurl.com',xdburitype('/public/testcas
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> desc XML_LOAD
Name Null? Type
TABLE of SYS.XMLTYPE(XMLSchema "www.WMDurl.com" Element "person") STORAGE Object-r
SQL> --
SQL> desc PERSON_T
PERSON_T is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
employee_id NUMBER(38)
first_name VARCHAR2(4000 CHAR)
last_name VARCHAR2(4000 CHAR)
birth_day DATE
SQL> --
SQL> insert into xml_load values (xmltype(
2 '<person employee_id="1">
3 <first_name>mark</first_name>
4 <last_name>drake</last_name>
5 <birth_day>2006-01-31</birth_day>
6 </person>'
7 ))
8 /
1 row created.
SQL> commit
2 /
Commit complete.
SQL> set long 10000
SQL> --
SQL> select * from xml_load
2 /
SYS_NC_ROWINFO$
<person employee_id="1">
<first_name>mark</first_name>
<last_name>drake</last_name>
<birth_day>2006-01-31</birth_day>
</person>
SQL> insert into xml_load values (xmltype(
2 '<person employee_id="1">
3 <first_name>barney</first_name>
4 <last_name>rubble</last_name>
5 <birth_day>2006-01-31</birth_day>
6 <address>Bedrock</address>
7 </person>'
8 ))
9 /
insert into xml_load values (xmltype(
ERROR at line 1:
ORA-30937: No schema definition for 'address' (namespace '##local') in parent
'/person'
SQL> commit
2 /
Commit complete.
SQL> set long 10000
SQL> --
SQL> select * from xml_load
2 /
SYS_NC_ROWINFO$
<person employee_id="1">
<first_name>mark</first_name>
<last_name>drake</last_name>
<birth_day>2006-01-31</birth_day>
</person>
SQL> select xdbUriType('/public/testcase.xsd').getXML()
2 from dual
3 /
XDBURITYPE('/PUBLIC/TESTCASE.XSD').GETXML()
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns
.oracle.com/xdb">
<xsd:complexType name="T_person" xdb:SQLType="PERSON_T">
<xsd:all>
<xsd:element name="first_name" type="xsd:string"/>
<xsd:element name="last_name" type="xsd:string"/>
<xsd:element name="birth_day" type="xsd:date"/>
</xsd:all>
<xsd:attribute name="employee_id" type="xsd:positiveInteger"/>
</xsd:complexType>
<xsd:element name="person" type="T_person" xdb:defaultTable="XML_LOAD"/>
</xsd:schema>
SQL> declare
2 xmlschema xmltype := xdburitype('/public/testcase.xsd').getXML();
3 res boolean;
4 begin
5 select insertChildXML
6 (
7 xmlschema,
8 '/xsd:schema/xsd:complexType[@name="T_person"]/xsd:all',
9 'xsd:element',
10 xmltype('<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema"
11 'xmlns:xsd="http://www.w3.org/2001/XMLSchema"'
12 )
13 into xmlSchema
14 from dual;
15 if (dbms_xdb.existsResource('/public/newTestcase.xsd')) then
16 dbms_xdb.deleteResource('/public/newTestcase.xsd');
17 end if;
18 res := dbms_xdb.createResource('/public/newTestcase.xsd',xmlschema);
19 end;
20 /
PL/SQL procedure successfully completed.
SQL> select xdbUriType('/public/newTestcase.xsd').getXML()
2 from dual
3 /
XDBURITYPE('/PUBLIC/NEWTESTCASE.XSD').GETXML()
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns
.oracle.com/xdb">
<xsd:complexType name="T_person" xdb:SQLType="PERSON_T">
<xsd:all>
<xsd:element name="first_name" type="xsd:string"/>
<xsd:element name="last_name" type="xsd:string"/>
<xsd:element name="birth_day" type="xsd:date"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="address" t
ype="xsd:string"/>
</xsd:all>
<xsd:attribute name="employee_id" type="xsd:positiveInteger"/>
</xsd:complexType>
<xsd:element name="person" type="T_person" xdb:defaultTable="XML_LOAD"/>
</xsd:schema>
SQL> begin
2 dbms_xmlschema.CopyEvolve
3 (
4 xdb$string_list_t('www.WMDurl.com'),
5 XMLSequenceType(xdburitype('/public/newTestcase.xsd').getXML()),
6 null
7 );
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> desc XML_LOAD
Name Null? Type
TABLE of SYS.XMLTYPE(XMLSchema "www.WMDurl.com" Element "person") STORAGE Object-r
SQL> --
SQL> desc PERSON_T
PERSON_T is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
employee_id NUMBER(38)
first_name VARCHAR2(4000 CHAR)
last_name VARCHAR2(4000 CHAR)
birth_day DATE
address VARCHAR2(4000 CHAR)
SQL> --
SQL> insert into xml_load values (xmltype(
2 '<person employee_id="2">
3 <first_name>barney</first_name>
4 <last_name>rubble</last_name>
5 <birth_day>2006-01-31</birth_day>
6 <address>Bedrock</address>
7 </person>'
8 ))
9 /
1 row created.
SQL> commit
2 /
Commit complete.
SQL> set long 10000
SQL> --
SQL> select * from xml_load
2 /
SYS_NC_ROWINFO$
<person employee_id="1">
<first_name>mark</first_name>
<last_name>drake</last_name>
<birth_day>2006-01-31</birth_day>
</person>
<person employee_id="2">
<first_name>barney</first_name>
<last_name>rubble</last_name>
<birth_day>2006-01-31</birth_day>
<address>Bedrock</address>
</person>
SQL> update XML_LOAD
2 set object_value = insertChildXML
3 (
4 object_value,
5 '/person',
6 'address',
7 xmltype('<address/>')
8 )
9 where existsNode(object_value,'/person/address') = 0
10 /
1 row updated.
SQL> commit
2 /
Commit complete.
SQL> select * from xml_load
2 /
SYS_NC_ROWINFO$
<person employee_id="1">
<first_name>mark</first_name>
<last_name>drake</last_name>
<birth_day>2006-01-31</birth_day>
<address/>
</person>
<person employee_id="2">
<first_name>barney</first_name>
<last_name>rubble</last_name>
<birth_day>2006-01-31</birth_day>
<address>Bedrock</address>
</person> -
Problem Import WSDL with XSD import Schema
Hi SCN, i have problem
I have a WSDL that references an xsd, but the structure is not visible in PI.
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://bilbolab****.net/ServiceItemHO.svc?xsd=xsd0" namespace="http://tempuri.org/" />
<xsd:import schemaLocation="http://bilbolab.****.net/ServiceItemHO.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
<xsd:import schemaLocation="http://bilbolab.*****.net/ServiceItemHO.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/ItemHO.BO" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="iVistaHO_AddItemHO_InputMessage">
<wsdl:part name="parameters" element="tns:AddItemHO" />
</wsdl:message>
WSDL works well using SoapUI.
When imported to PI parameters is not displayed
I Need Help
Thank you.Hi, Dihiansan. I don't understand your proposal
I need you see the structure in PI how in SoapUI.
It is possible?
Regards -
Problem: bpel deployment with xsd choice
hi!
i have the problem that after deploying my bpel process i dont see the choice defined in my xsd. with a very simple example the choice just dont show in the bpel console. (bpel processes => initiate => xml source just shows the xml without the choice)
i use jdeveloper 10.1.3.1.0.3984.
does anyone know a solution for this problem?
thanks
my xsd:
<?xml version="1.0" encoding="ISO-8859-15" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
<xsd:element name="exampleElement">
<xsd:annotation>
<xsd:documentation>
A sample element
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="element1" type="xsd:string"/>
<xsd:choice>
<xsd:element name="element3" type="xsd:string"/>
<xsd:element name="element4" type="xsd:string"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>the bpel process consists just of an assign-component.Is JAXB 1.0 used to generate the client code. xsd:choice is supported, but xsd:any is not supported by JAXB 1.0.
Maybe you are looking for
-
Join, union, and order
I've been looking at some of the other posts on this and have not seen my exact problem (granted, I have not looked at all of the posts, as there are quite a few, so please forgive me if this has been covered before). I have two tables, A & B, that I
-
I have created a working php contact file but I do not know how get it onto my website properly
Hi, I don't know if this a big job or too complicated for me, but I thought I would ask anyway. I have a contact page www.bristolequestrianservices.co.uk/contactus.html which has never ever actually worked. I have now spend ages and ages doing a new
-
Help! Error Message I Can't Decode!
Starting a couple of days ago, my iTunes will not open when prompted, citing a problem with my audio configuration. This is all the information I've been able to get. I've downloaded new drivers, uninstalled and reinstalled my hardware, and uninstall
-
Date(0) returns 19:00h !!!
Hi, Im formatting a Date using a SimpleDateFormatter and it always add 19:00h to the time.... SimpleDateFormat sdf = new SimpleDateFormat("h:mm:ss", getLocale()); Date d = new Date(0); sdf.format(d);it gives me 19:00:00 instead of 00:00:00 I think th
-
My Windows XP failed to install Adobe Reader XI Int Explorer script error?
On my Windows XP, I failed to install Adobe Reader XI because of Internet Explorer script error - how can I overcome this?