Simple File Adapter Question [ XSD validity  ? ]

Imported an XSD into JD 101333. [ several large, known as good, used in Biztalk etc ]
tried to make ESB inbound adapter
spent ages trying to find out why it wouldn't accept it [ then I found a tiny tiny paragraph in the manual stating it must have a namespace ?  why , honestly who cares ]
2nd ; still won't validate, now it says "Invalid Reference" .. Which log setting do I switch on in Jdeveloper to see why it's throwing a hissy fit ?
Note : this is a known good set of XSDs and is in use production ; for it not to import into JD is a major drawback to the people I'm evaluating BPEL/ESB for... so please help.

2nd problem found .
The XSD elements use a ref:
e.g.
<xs:element ref="MyMessageType"/>
the solution is to add
targetNamespace="http://my.validators.com/msgs"
xmlns:pv="http://my.validators.com/msgs"
in the schemadef
now replace the xs:element with
<xs:element ref="pv:MyMessageType"/>
In all honesty where is this written in the manuals ? It's a fair question.
Added to that you have NO hint as to what is wrong ; I had to deconstruct about 3000 lines of XSD to find the problem. since if you use "Validate XML" in Jdeveloper it works just fine.
Massive hole guys.

Similar Messages

  • File adapter questions (beginner)

    Hi everyone,
    I two questions on two topics about file adapter.
    1. I have set up a File adapter for a CSV file to be the input file of my process. Now I would like to have an XML file as the input file, but the content is always ignored.
    here is the XSD :
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Employees" xmlns="urn:Employees">
    <xs:element name="Employee" type="EmployeeType"/>
    <xs:simpleType name="InitialType">
    <xs:restriction base="xs:string">
    <xs:maxLength value="1"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="AgeType">
    <xs:restriction base="xs:integer">
    <xs:minInclusive value="18"/>
    <xs:maxInclusive value="50"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="EmployeeType">
    <xs:sequence>
    <xs:element name="EmployeeID" type="xs:string"/>
    <xs:element name="FirstName" type="xs:string"/>
    <xs:element name="MiddleInitial" type="InitialType"/>
    <xs:element name="LastName" type="xs:string"/>
    <xs:element name="age" type="AgeType"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    And now the sample XML file :
    <?xml version="1.0" standalone="yes"?>
    <Employees>
    <Employee>
    <EmployeeID>1</EmployeeID>
    <FirstName>John</FirstName>
    <MiddleInitial>N</MiddleInitial>
    <LastName>Smith</LastName>
    <age>24</age>
    </Employee>
    <Employees>
    How can I do that ? Do I need the Oracle XML Gateway ?
    2. In the BPEL console, I can trace the successfull processes. Alright ... But when I put in a file with the wrong format (eg: missing fields), the process does not even appear in the console. How can I trace them ? (completionPersistPolicy is "on").
    Thank you :)

    I'm interested in 2 question (missing fields) too.
    Ema

  • Two file adapter questions

    First, can someone post a URL for detailed file adapter documentation?
    Second, I'm a little confused how to use the file adapter in the case where I'm writing out a message whose schema is contained in one of the wsdl files instead of in an xsd file.
    The particular case is that I call the Google search service, which returns a message of type doGoogleSearchResponse. The schema for this message is embedded in the google.wsdl file from Google. When I browse in the file adapter wizard to choose a schema for the write operation, I can only see schema from my projectName.xsd file, none from the google.wsdl file (even though it's in the project). How can I use the file adapter to write out the Google search reply?
    Thanks,
    Bret

    Hmmm. Step 4 of the file adapter wizard requires me to specify a "Message Schema". There is no apparant way to get past that step without choosing one. Should I just choose any schema in the project and then go back and fix the code?
    Bret

  • File Adapter Questions

    [Edwin moving internal questions to OTN]:
    I'm looking for answers on some BPEL questions I have.
    * Is it possible to iterate over an array in an assign element? How?
    * Where can I find a description of the JCA binding parameters when using the JCA Files adapter (oracle.tip.adapter.file.outbound.FileInteractionSpec)
    * When I modify the FileNamingConvention parameter of the JCA binding for the file adapter, it seems that I need to restart the whole BPEL PM in order for these chenges to take effect? Is this the only way?
    * The format of the %TIME% substitution parameter in the FileNamingConvention only contains the date, no time. Can this format be modified somehow?
    * Can the %TIME% substitution parameter in the FileNamingConvention be combined with the %SEQ%? It doesn't seem so.

    Hi Peter,
    When I modify the FileNamingConvention parameter of >>> the JCA binding for the file adapter, it seems that I >>> need to restart the whole BPEL PM in order for these >>> chenges to take effect? Is this the only way?When you modify the JCA binding parameters, all you need to do is re-deploy the process in question. You shouldn't need to restart the server since hot process deploy is supported.
    The format of the %TIME% substitution parameter in >>> the FileNamingConvention only contains the date, no >>> time. Can this format be modified somehow?We're already aware of this issue and have logged it as a bug. We'll try to make this more granular than a day, e.g. second.
    Can the %TIME% substitution parameter in the
    FileNamingConvention be combined with the %SEQ%? It
    doesn't seem so.No, these two substitution parameters cannot be combined and we haven't encountered this requirement. I assume you'd want this because the previous issue would mandate a SEQ to make multiple files written on the same day uniquely named. Would you still have use-cases for combining these two substitution parameters if TIME were made more granular?
    Where can I find a description of the JCA binding
    parameters when using the JCA Files adapter
    (oracle.tip.adapter.file.outbound.FileInteractionSpec)This will be coming out in documentation with the release. If you have specific questions or would need info on some particular things, e.g. some InteractionSpec params, we'd be happy to send it to you.
    thanks,
    Navneet

  • File Adapter Question - Part 2

    Hello Everyone,
    I'm hoping someone can help me.  I have a scenario in which I am trying to send an XML file (which is placed on our UNIX system, in a specific directory) to the Integration Engine and then have it mapped back into the R/3 system using an RFC which our development team has created.  I have set up the scenario in the Integration Directory, and have the mapping completed in the Integration Repository. 
    I'm just curious to know if anyone has done this and <b>can provide an example</b> of their scenario.
    Also, at this point, I have placed the file in the directory, which I have specificed in my File Adapter configuration, but I do not see messages in the RWB or SXMB_MONI.  Does anyone have any ideas as to why?
    Thanks so much for your help!  I do appreciate it.
    Regards,
    John

    John,
    satish's sugestion is regarding the process mode.
    But before you use delete mode, check the communication channel status.
    Go to the communication channel monitoring tool (RWB, Component Monitoring, Adapter Engine) and check it out.
    For the CCM: http://help.sap.com/saphelp_nw70/helpdata/en/44/2a1a8620323f0ee10000000a114a6b/frameset.htm
    Regards,
    Henrique.

  • File Adapter Question...

    Hi all,
    could somebody tell me if there is a way to limit the number of files processed by a File Adapter in a poll cycle?
    We need to load files from seven folders, each one has different priority (files from one folder have more priority than other folder ones)
    I hope to was clear...
    Best regards,
    Diego.

    Hi,
    There is no direct function to do this. I think.
    But you can use the OS command to execute the script to make the markings. So the Script will mark the files ReadOnly etc , then file adapter will pull the ReadOnly files only..
    This is workaround here.
    And you can think of EOIO also.
    Regards,
    Moorthy

  • File Adapter - Native XSD - DTD to XSD

    Hello,
    a. I have to read a data file using file adapters, which is sent in the following pattern (dtd below):
    <?xml version="1.0" encoding="US_ASCII"?>
    <!DOCTYPE message SYSTEM "d3l.dtd">
    <message name="ITEM" type="ItemArray" object="ITEM_BO">
    <struct id="ItemRecord">
         <field name="Process_Flag"><limstring delimiter=";"/></field>
         <field name="Item_Number"><limstring delimiter="|"/></field>
         <field name="Attribute2"><limstring delimiter="|"/></field>
    </struct>
    <limarray id="itarray" contchar="*" endchar="!">
         <typeref type="ItemRecord"/>
    </limarray>
    <struct id="ItemArray">
         <field name="ItemLine"><typeref type="itarray"/></field>
    </struct>
    </message>
    b. whose sample data is as below:
    ;P;|00030||TEST1|*;P;|00040||TEST2|!
    c. I am now in the process of designing my native xsd:
    i. I can either use convert dtd to xsd (or)
    ii. create my own sample schema definition which is similar to the above data structure
    In step (i), I could not convert the dtd to xsd, due to reference to d3l.dtd file.
    If anyone can advise where this d3l.dtd file can be found and where I should place it in 'SOA' it would be really helpful.
    In step (ii), I find that through the wizard I am able to create simple csv file styles, but not able to create the above data structure due to different delimiters (; and |) and also due to delimiter-embedding of data.
    It would be really helpful if someone can advise on how I must proceed with this issue.
    Thanks,
    Santhosh

    Hello Ramana,
    As for step one, the 'd3l.dtd' is a file which all Oracle Interconnect DTDs look up to. I am not able to locate it.
    As for step two, the data file the structure is of the following pattern :
    i. entire data is in single line of the data file..
    ii. first element will be embedded with semi colon
    iii. the other elements inside pipes
    iv. end of record is indicated using *
    v. end of file is indicated using !
    These are the rules based on which the data file is built.
    I don't have much experience in creating xsd (except for simple native xsds that I have created using the native xsd wizard of Jdev-BPEL).
    Using the native XSD wizard that is available with JDev-BPEL, I trust I cannot create complex data structure which is of the above pattern.
    If there is a good tool/method through which I can create the xsd as per the above listed rule structure, please advise.
    Thanks,
    Santhosh

  • File Adapter Question in SOA 11g

    Hello,
    just started with this soa stuff and looks like it can be very useful, i have a question:
    i am doing a SyncRead within a bpel process and want the file is not necessarily there as soon as that process runs, so if it doesnt find it i want it to wait 5 seconds and retry and i want it to retry this up to 3 times...
    what is the best approach to getting this done?
    thanks

    Hi,
    You can put the invoke(synchRead) within a scope activity. Now add a catchAll activity, and within it add wait activity(5 sec') and replay activity.
    The replay activity will always start the scope from the begining.
    You will also need to add an if condition with 3 times counter. 1 branch will go to the above activities, and the second one will continue with the process.
    Arik

  • Simple file import question

    I just installed Lr4 on my laptop.  When I plug in my Nikon D7000 and try to import photos, I just get a message "The following files could not be imported because they could not be read".  Then it lists the file names of the various files.  Message displays regardless if I try .NEF or .JPEG files.  The photos appear in the library module, so I know Lr is pulling them from the correct place (camera).  When I plug the camera into my desktop PC where I also have Lr installed, all works fine.  Help!

    Sounds like a hardware problem, if the desktop reads things fine.

  • Simple File Dialog Question

    Using LabView 6i:
    When I display the output of the File Dialog all I see is the path to the
    folder containing the selected file and not the name of the selected file.
    How do I get the name of the selected file?
    Thanks
    TP

    TP;
    Are you sure you don't get the name of the file? Make sure the path indicator in the front panel is long enough. If the path string do not fit completely in the indicator, it will look truncated.
    Enrique
    www.vartortech.com

  • Simple file placement question.

    I have a situation where after the WAR file is deployed, PDF files will be added to the site that need to be accessable (their URL will be known) from the web. Where should these PDF files be put?
    For example, after the web app is deployed, a new PDF file called test1.pdf is created that needs to be accessable from my web site. Under what directory should test1.pdf be placed?
    The layout I have is:
    SunAppServer8
    ----domains
    --------testdomain
    ------------applications
    THANKS!

    I have a situation where after the WAR file is deployed, PDF files will be added to the site that need to be accessable (their URL will be known) from the web. Where should these PDF files be put?
    For example, after the web app is deployed, a new PDF file called test1.pdf is created that needs to be accessable from my web site. Under what directory should test1.pdf be placed?
    The layout I have is:
    SunAppServer8
    ----domains
    --------testdomain
    ------------applications
    THANKS!

  • Simple file sharing question. Bug?

    How do I simply add or edit a file using File Sharing or FTP to the Sites directory to serve a web page?
    In Snow Leopard I was able to edit a page from another Mac and save the file. In Lion any pages edited via File Sharing/FTP cannot be displayed any more.
    If I edit the page locally the page saves and can be displayed.
    If I edit the page via File Sharing/FTP (logging on as the same user) a permissions error is displayed in the browser.

    How do I simply add or edit a file using File Sharing or FTP to the Sites directory to serve a web page?
    In Snow Leopard I was able to edit a page from another Mac and save the file. In Lion any pages edited via File Sharing/FTP cannot be displayed any more.
    If I edit the page locally the page saves and can be displayed.
    If I edit the page via File Sharing/FTP (logging on as the same user) a permissions error is displayed in the browser.

  • FTP Adapter XSD Validation

    Hi All,
    Oracle InterConnect 10.1.2
    Oracle Adapters (AQ,FTP) using XSD
    FTP Adapter on local filesystem
    In the FTP Adapter, Is there anyway to validate the XML content against the XSD?
    The validation is happening at the common view when i use the "Validate XML" check box while creating the event in iStudio. However this option does not appear while configuring the FTP adapter in iStudio. I would like FTP adapter to reject the XML file if the XSD validation fails and move the file to the exception folder.
    Objective: XSD should perform datatype, datasize and format validations.
    Thanks,
    Sherry

    Can anyone let me know how to enforce the XSD validation in the adapter. As of now only the structure of the message is being checked.

  • File adapter Read operation not working.

    Hi All,
    I have a simple file adapter which will read from a csv file and insert into a table. I have deployed the application successfully, but the application is not reading from the specific location. I am not getting any error in the EM console. Below is the XSD that I used.
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
                xmlns:tns="http://TargetNamespace.com/InboundService"
                targetNamespace="http://TargetNamespace.com/InboundService"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified"
                nxsd:version="NXSD"
                nxsd:stream="chars"
                nxsd:encoding="US-ASCII"
    >
      <xsd:element name="Root-Element">
        <xsd:complexType>
          <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=",">
            <xsd:element name="Student" nxsd:conditionValue="R">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element name="Roll" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
                  <xsd:element name="Name" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
                  <xsd:element name="Flag" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" />
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:choice>
        </xsd:complexType>
      </xsd:element>
    This is the file that I want to read:
    5,Ram,N
    6,Shyam,N
    Please help friends.

    You should extensively practice the samples given in Oracle's documentation guide for modelling Native XSD. That will give you a better idea, about how to go about the native xsd schemas.. Anyways, I looked into your schema.. You need to make 2 changes to make this xsd work..
    (1) Change "xsd:choice" tags to "xsd:sequence".
    (2) Include a closing tag of "xsd:schema" to make the xsd well-formed.

  • File Adapter failed to write a file

    Greetings,
    I have a simple file adapter that writes information from a message in a pipe-delimited format. During an execution I got the following error:
    file:/D:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_BPELProcessAppendFile_1.0.jar/AppendFileAdapter.wsdl [ Write_ptt::Write(Root-Element) ] - WSIF JCA Execute of operation 'Write' failed due to: Translation Error. Error while translating message to native format. ; nested exception is: ORABPEL-11017 Translation Error. Error while translating message to native format. Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    I coudn't find a before mentioned error stack in any of log file. This message is all I get and it's not enough to figure out why it fails. Any advice?
    Thank you.

    False alarm. I had incorrect mapping between BPEL variables.

Maybe you are looking for

  • How can I play multiple music videos continuously on Apple TV?

    Regular music plays continuously, one song to another, etc. I can't get my music videos to do the same. One plays, and after it's over, ATV won't go to the next video. I can't figure it out. Does anyone out there know how to do it?

  • Captivate 4 publishing for LMS

    Hello, First, sorry for my bad english : I'm french. Please  someone can help me : I do not can launch my captivate project on my  LMS : the message written is : The archive is not standard to SCORM 2004  (3rd or 4th ed) I've already check the folder

  • IfThen() function issue

    Hi, I am trying to perform looping of IfThen() function to calculate variance percentage for different conditions and whenever I am trying to validate it, it's giving me an error "At position 123 : Unrecognized character(s):')'" I am not sure what th

  • Error in displaying 235 columns

    Hi All, I have created an IR on a table which has 235 columns. It runs fine when the source query has 200 columns . But for another additional 35 columns, the following error is thrown: ORA-06502: PL/SQL: numeric or value error: character string buff

  • Passing objects as parameters

    Hi folks, I've got a general rather than a specific query here, and just need a bit of clarification as to whether or not I'm doing things right (I'm relatively new to Java). Basically, I've set up several "sub classes" extending a parent class. In m