Autogen with schema & then wsdl2service

Hi,
The new tasks in 7.1 sp1 are great thank you.
I'm running into a problem, however when I try to use autogen & then
wsdl2service.
Everything works great if I use autogen on the wsdl and then wsdl2service.
I run into problems, however, with I run autogen on the schema and then run
wsdl2service.
It appears that the root of the problem is that the schema isn't getting
copied into the web-services.xml.
I tried to work around this by doing an include ( <xsd:include
schemaLocation="Quote.xsd"/> ) of Quote.xsd in the wsdl, but wsdl2service
didn't care for that.
Obviously, I can just use the wsdl in the autogen tasks and I'll be fine --
I'm just trying to see what I can and can't do with the tasks so that I can
have a sane approach for our schema design.
Any thoughts? Is this a bug?
Here is an excerpt from my Ant build.xml:
<target name="autogenschema">
<mkdir dir="${tempAutoGenDir}"/>
<autotype schemaFile="./schema/Quote.xsd" packageName="com.webservice.types"
destDir="${tempAutoGenDir}"/>
</target>
<target name="wsdl2java">
<wsdl2service wsdl="./wsdl/mywsdl.wsdl" destDir="${tempWsdlServiceGenDir}"
typeMappingFile="${tempAutoGenDir}/types.xml" packageName="com.webservice">
<classpath>
<pathelement path="${tempAutoGenDir}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</wsdl2service>
</target>

Schem is parsed only by the autotyper. wsdl2service just use the
schema defined in the WSDL. A wrokaround could be
to use wsdl import instead of schema include.
<import
namespace="<wsdl-target-namespace>"
location=http://example.com/stockquote/stockquote.xsd" />
I have not tried it my self, but hope this will work.
regards,
-manoj
"Mike" <[email protected]> wrote in message
news:[email protected]..
Hi,
The new tasks in 7.1 sp1 are great thank you.
I'm running into a problem, however when I try to use autogen & then
wsdl2service.
Everything works great if I use autogen on the wsdl and then wsdl2service.
I run into problems, however, with I run autogen on the schema and thenrun
wsdl2service.
It appears that the root of the problem is that the schema isn't getting
copied into the web-services.xml.
I tried to work around this by doing an include ( <xsd:include
schemaLocation="Quote.xsd"/> ) of Quote.xsd in the wsdl, but wsdl2service
didn't care for that.
Obviously, I can just use the wsdl in the autogen tasks and I'll befine --
I'm just trying to see what I can and can't do with the tasks so that Ican
have a sane approach for our schema design.
Any thoughts? Is this a bug?
Here is an excerpt from my Ant build.xml:
<target name="autogenschema">
<mkdir dir="${tempAutoGenDir}"/>
<autotype schemaFile="./schema/Quote.xsd"packageName="com.webservice.types"
destDir="${tempAutoGenDir}"/>
</target>
<target name="wsdl2java">
<wsdl2service wsdl="./wsdl/mywsdl.wsdl" destDir="${tempWsdlServiceGenDir}"
typeMappingFile="${tempAutoGenDir}/types.xml"packageName="com.webservice">
<classpath>
<pathelement path="${tempAutoGenDir}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</wsdl2service>
</target>

Similar Messages

  • Create a wsdl file - with schemas inline - in JDeveloper

    Hi,
    We are trying to create a wsdl file using schemas in jdeveloper 11.1.1.3. We could generate the wsdl file using options available in jdeveloper, but the wsdl generated contains <types> element that has schemas referenced by only an "import" statement as below.
    <types>
    <xsd:schema>
    <xsd:import schemaLocation="../../../Test.xsd" namespace="http://www.openuri.org"/>
    </xsd:schema>
    </types>
    But, I would like get the schemas inlined or embedded within the wsdl instead of just an import statement.. This helps me in using the wsdl anywhere (creating webservices or use in my applications or give it to some one to use) without worrying about the actual schema definition files. The <types> element within the wsdl must have the schemas embedded, something like below.
    <types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://testWSDLproject/type" elementFormDefault="qualified">
    <xsd:element name="testIn">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="value" type="xsd:integer"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    Is there any way forward, with the Jdeveloper to create wsdl files with schemas inline ?

    Hi Vohra,
    The schema snippet pasted previously was just a sample.
    In actual, there are mulitple cross referencing xsd files that must be embedded within my wsdl file. Sometimes, such manual editing of wsdl (embedding so many schema definitions) is prone to errors.
    If there is an option in Jdeveloper which automatically does this embedding for us, then it becomes more handy. Have you come across any such options ?

  • Multi tenancy with schema per tenant

    Hello,
    I am tryign to run multi tenancy with schema per tenant. It seems to work good when tenant ID is set in XML as a property for persistance unit.
    But I need to set tenant in code. Is that possible? How?
    I found this article:
    codecrafters.blogspot.it/2013/03/multi-tenant-cloud-applications-with.html
    So I tried to set it in doBegin method in custom transaction manager. But that doesn't work. I guess relation descriptors aren't updated right.
    I could provide more info with exception stack also but first... have I pick the right approach?
    Thanks!
    Martin

    UPDATE 26.6.2015: This isn't completelly right solution. Read also comments below or go to my article at http://www.mafospace.com/articles/multi-tenancy-with-eclipselink-and-inherited-entities
    I've solved it finally. Maybe it will be helpful for someone. I've done that in similar way as described in article I linked in first post. Through custom transaction manager.
    import org.eclipse.persistence.config.PersistenceUnitProperties;
    import org.eclipse.persistence.internal.jpa.EntityManagerImpl;
    import org.eclipse.persistence.sessions.coordination.MetadataRefreshListener;
    import org.eclipse.persistence.sessions.server.ServerSession;
    import org.springframework.orm.jpa.JpaTransactionManager;
    import sk.bantip.hotel.server.security.SecurityHelper;
    import javax.persistence.EntityManager;
    import java.util.HashMap;
    import java.util.Map;
    public class MultiTenantJpaTransactionManager extends JpaTransactionManager {
    * NOTE:
    * Maybe it would be also possible to replace existing entityManager in transaction with new but it
    * isn't a good idea because of rollback and other problems.
    * So when new tenant is required always start new transaction for it.
    @Override
    protected javax.persistence.EntityManager createEntityManagerForTransaction() {
    EntityManager em = super.createEntityManagerForTransaction();
    boolean refreshed = false;
    String actualTenant = null;
    ServerSession ss = ((EntityManagerImpl) em.getDelegate()).getServerSession();
    Map sessionProp = ss.getProperties();
    actualTenant = (String) sessionProp.get(PersistenceUnitProperties.MULTITENANT_PROPERTY_DEFAULT);
    // don't run it if tenant didn't change
    // it should be quite faster then
    if ((actualTenant == null && SecurityHelper.getActiveTenantSchema() != null) ||
    (actualTenant != null && !actualTenant.equals(SecurityHelper.getActiveTenantSchema()))) {
    // set new tenant as property for actual session
    // while refreshing metadata it will be used from actual session for new session
    sessionProp.put(PersistenceUnitProperties.MULTITENANT_PROPERTY_DEFAULT, SecurityHelper.getActiveTenantSchema());
    MetadataRefreshListener mrl = ((EntityManagerImpl) em.getDelegate()).getServerSession().getRefreshMetadataListener();
    // metadata refresh listener is empty if it was already run for actual transaction (same entity manager)
    // because it is placed in createEntityManagerForTransaction now this shouldn't happen but to be sure...
    if (mrl != null) {
    Map<String, Object> prop = new HashMap<String, Object>();
    // metadata will be refreshed for next created entity manager
    mrl.triggerMetadataRefresh(prop);
    refreshed = true;
    // if metadata for "old" entity manager wasn't refreshed we don't need to create a new one
    return refreshed ? super.createEntityManagerForTransaction() : em;
    Everything seems to work except inheritance with strategy type JOINED now. To fix that use customizer.
    import org.eclipse.persistence.annotations.TenantTableDiscriminatorType;
    import org.eclipse.persistence.config.DescriptorCustomizer;
    import org.eclipse.persistence.descriptors.ClassDescriptor;
    import org.eclipse.persistence.descriptors.TablePerMultitenantPolicy;
    * For some reason when using table per tenant with schema discriminator isn't set good for child
    * entities with inheritance JOINED strategy. It stay as SUFFIX and therefore it doesn't work.
    public class InheritanceJoinedMTFixCustomizer implements DescriptorCustomizer {
    @Override
    public void customize(ClassDescriptor descriptor) throws Exception {
    // set discriminator to SCHEMA
    ((TablePerMultitenantPolicy) descriptor.getMultitenantPolicy())
    .setTenantTableDiscriminatorType(TenantTableDiscriminatorType.SCHEMA);
    And in child entities use it like this:
    @Customizer(InheritanceJoinedMTFixCustomizer.class)
    public class Person extends Contact {

  • Export synonyms with schema

    Hi all
    I am trying to export synonyms with the schema, but they do not show on the generated script.
    How can I add the synonyms?
    thanks
    J

    Exactly what synonyms are you trying to export? If they are owned by (i.e., exist within) the schema you are exporting, then they should be exported unless you uncheck the "Synonyms" box. If instead you want to export the synonyms that point to objects in the schema you are exporting, but are owned by another schema, then you can only do it by exporting that second schema separately.
    For instance, if you export schema "A' and it has synonyms to itself or to some other schema (or schemas), then they should be part of the script. If however schema "B" has synonyms pointing to schema "A" and you export schema "A" all you will get is schema "A"s objects; schema "B"s synonyms will not be included since they belong to it and not schema "A".
    Hope this helps.
    Ed. H.

  • How to setup ODBC query with schema

    I am trying to setup DIAdem to query a SQLserver database that was orginally created by Rockwell's Historian (a PLC database). This database is structured around a schema called "RSBizWare". To properly query the database, this schema name must be in the naming structure. I have been attemping to use some of the SQL examples posted in this forum but I cannot figure out how to include this schema field. Any help would ba appreciated.
    Thanks

    Hi RandallW,
    You have two options, you can set up a Windows ODBC Administrator profile that successfully applies the required schema, then use the DIAdem ODBC functions, which all start with SQL_...(), or you can construct an ADO connection string which successfully applies the required schema, the use native Windows ADO objects in a VBScript to query the data base.  If both are available, and you have DIAdem 10.1 or higher, I would recommend the ADO approach.  I really don't know how to tell you to apply this schema in your connection to your data base.  Do you have any other software that can connect to that data base?  There may be information on connecting to that data base available on the web.  Once you can connect to it, we can help you use that connection in DIAdem.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • I have just downloaded OSX Mavericks and am having a lot of problems with my iCloud account. I get a message "this iMac can't connect to iCloud because of a problem with (and then it quoted my e-mail address) Does anybody know what the problem could be??

    As mentioned above I have just downloaded OSX Maverick to my iMac. I am now having a lot of problems with iCloud. I get the message that "This iMac can't connect to iCloud because of a problem with, and then it goes on to quote my e-mail address. It then says to open iCloud preferences to fix this problem.
    I do this and no matter what I seem to do this message continues to return.
    Can anybody explain how to resolve this problem (please bear in mind that I am noy very computer literate).
    Many thanks
    Mike

    Hello John
    Sorry I haven't got back to you sooner.
    Thanks very much for your help, your solution solved my problem.
    Thanks again and kind regards
    Mike

  • Error message while executing international payroll with schema x000

    Dear Team,
    I am getting the below error message while running international payroll with schema x000.
       "Jump from DAYPR to detailed log
       Incorrect generation of wage types"
    Request forum members to help me on the same.
    Thank you,
    Srinivas

    Hi,
    Thank you for the reply please find below i reviewed all the below tables please gothrough and advice me if any i missed out.
    1)     T555E-Message Descriptions----
    2) T551C-Period work schedule evaluation---
    Grpg        Period ws     Description     Start Date      End Date      Cntg Class
       01     PWTC         Period WS     01.01.1990      31.12.9999     1
    3) V_551C_B-Valuation class for Periodic work schedule
    Grpg  Period ws  Description     start Date       End Date       Val.Classfor PWS
    01      PWTC      Period WS       01.01.1990    31.12.9999       1
    4) V_t508A-Work schedule rule
    ESG    ES grpg for ws     Holiday      Text      PSG   WSrule    St Date          End Date
    2        Salaried Employee   TCD             TC         01     TCWR    01.01.1900   31.12.9999
    5) V_001P_H-Personnel Subarea grouping for Time Recording
    Personnel area  Personnel Area Text Personnel Subarea Pers.Subarea  Ps Group
    1100                 JEDDAH            1110              MAIN OFFICE           01
    6) V_T555Z- Time type Determination
    Can you advice me on this what I need to maintain here
    7) V_T510S-Time wage type selection rule
    Tm.WT  Dy Grpg          No                                                   Wagetype  Wage Type Long Text
    54       01               001                                              1010            Basic Pay
    Regards,
    Srinivas

  • I deleted all my playlists provided. However, they are still on my Ipod Touch. Now, when I sync my Ipod with Itunes then the lists are copied back into Itunes?

    I deleted all my playlists provided. However, they are still on my Ipod Touch. Now, when I sync my Ipod with Itunes then the lists are copied back into Itunes?

    A playlist takes up almost no room. A few kB at most.
    It is simply a list of songs in the library
    Do you want the playlists or not?
    Now, when I sync my Ipod with Itunes then the lists are copied backinto iTunes?
    Do you want them copied back into iTunes?

  • How can I talk with more then one person at a time?

    How can I talk with more then one person at a time? With Faxe time? Is thier software needed to do this or can it be done with the basic package?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • During recovery on iPhone 4 I got : The iPhone could not be restored. Un unknown error occurred ( 3004 ). Then - iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes.Then I get error 3004

    During recovery on iPhone 4 I got : The iPhone could not be restored. Un unknown error occurred ( 3004 ). Then - iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes.Then I get error 3004 again. Latest iTunes and OS updates. I cant use the phone now. I did restart the destop,unplug the usb,...etc. Same iTune logo ,arrow and USB on the screen.THANK YOU SO MUCH,...!

    Perhaps the information in this Apple support article will help:
    http://support.apple.com/kb/TS3694#error3004
    Regards.

  • HT1766 I was backing up my phone with Icloud then all of a sudden it is saying that it needs to be plugged into Itunes.  Now I cannot use the phone, what can I do?

    I was backing up my phone with ICloud then all of a sudden it is saying that I have to plug into Itunes.  Waht can I do?

    Not really necessary to go into DFU mode when the device is just reporting it is in recovery mode if it is saying connect to iTunes. Connect to iTunes and do a restore. See this support document if you have any issues. http://support.apple.com/kb/HT1808

  • [AS] CS3- Find any text with style, then replace that text with a new applied fill color.

    I am trying to find the simplest way in cs3 to find any text with style, then replace that text with a new fill color. I can find text and change text. I can find a style and change it to a new style. I can't seem to find a style and change the applied fill color. I do not want to change the properties of the style, just the applied color. Yes, I want the + sign, for now. I know, why not update the style, I am not allowed to. Any help would be great. Since the search is not available, I need a new response.
    Thanks.

    You can work around the bug by just doing a find, then looping through the<br />results, changing the color one at a time. It'll be a fraction slower, but<br />should do the trick:<br /><br />tell application "Adobe InDesign CS3"<br />    set find text preferences to nothing<br />    set properties of find text preferences to {applied paragraph style:"The<br />name"}<br />    set theFinds to find text document 1<br />    repeat with i from 1 to count of theFinds<br />        set properties of item i of theFinds to {fill color:"Replace color"}<br />    end repeat<br />end tell<br /><br />The bug is fixed in CS4, BTW.<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

  • Xml validation with schema, unbounded and any order of elements

    Hi
    I want to validate a xml file the user creates. I am currently using schema to do this. However there needs to be the possibility of a totally random mix of three different types of elements in a parent element. I couldn't find out how to do this, maybe it is not possible with schema? I thought I could look at the error message generated and ignore it if it was caused by one of the three elements mentioned above, but while the error message generated says which element is expected, it does not say which element caused the error.
    Thanks in advance for any help.

    Ruskin wrote:
    However there needs to be the possibility of a totally random mix of three different types of elements in a parent element. Can you take your example to make it more clear? Does all three elements mutually exclusive?

  • If I video chat with Skype then my video is visible whom i chat but whom video is not visible in my iPad?

    If I video chat with Skype then my video is visible whom i chat but whom video is not visible in my iPad?

    Make sure the other person actually has a camera and the camera is turned on, and the video option is selected in their chat window.

  • SAX Parser Validation with Schemas (C, C++ and JAVA)

    We are currently using the Oracle XML Parser for C to parse and validate XML data using the SAX parser interface with validation turned on. We currently define our XML with a DTD, but would like to switch to schemas. However, the Oracle XML Parser 9.2.0.3.0 (C) only validates against a DTD, not a schema when using the SAX interface. Are there plans to add schema validation as an option? If so, when would this be available? Also, the same limitation appears to be true for C++ and JAVA. When will any of these provide SAX parsing with schema validation?
    Thanks!
    John

    Will get back to you after checked with development team...

Maybe you are looking for

  • I have a trial version of Lightroom 4.. Will I loose my work if I buy Lightroom 5?

    I have a few days left on my free 30 day subscription of Lightroom 4. Can anyone let me know if I need to do anything special (as far as installation, etc) in order to buy lightroom 5? I want to keep my edits, collections, etc. Thanks!

  • Breadcrumbs

    Hi, I have been trying to add breadcrumbs to my pages using dreamweaver 8. I am aware that there are templates in snippets. but it appears as if the only way of using them is to place them on every page, manually changing the coding of each. Is this

  • Making an App like the Stocks App(the different sections)

    I've decided to make my app very similar to the Stocks App. Now the stocks app has 2 sections on its MainView. The chart and the table of stocks.. How do I seperate my main view into those sections? I'd also like to have a table in my top section. Th

  • Classic programs on Intel?

    I haven't found a place to ask this, so I'll try here I have several programs that work fine in Classic under 10.4.3. Will there be <<any>> way to run OS9 programs on Intel Macs? Kori

  • Makepkg was unable to build zoneminder package

    Using yaourt to build zoneminder but the charliemouse website has been down for a while now, can anyone suggest a workaround to install zoneminder. --2008-05-16 11:59:22-- (try: 3) http://www.charliemouse.com/code/cambozola/cambozola-0.50.tar.gz Conn