Getting error when trying to expose the java class as webservice

I am new to webservices and ESB.
I have two custom schemas. LegacyCustomer.xsd and CommonCustomer.xsd. I am compiling these schemas using JAXP. I am trying to map one custom data to another data using java class. I am trying to expose this java class into webservice.
public class Test implements Serializable {
private static final long serialVersionUID = 1L;
public Test() {
public CustomerType transform (CustomerDataType custDataType) {
CustomerType custType = new CustomerType();
custType.setCustomerId(custDataType.getCustomerId());
return custType;
Schemas used are:
Input Schema:
<schema targetNamespace="http://xmlns.oracle.com/Esb/CustomerData" xmlns:cust="http://xmlns.oracle.com/Esb/CustomerData" xmlns="http://www.w3.org/2001/XMLSchema">
     <element name="CustomerData" type="cust:CustomerDataType"/>
     <complexType name="CustomerDataType">
          <sequence>
               <element name="CustomerId" type="string"/>
</sequence>
     </complexType>
</schema>
Output Schema:
<schema targetNamespace="http://xmlns.oracle.com/Esb/CustomerProvision" xmlns:CU="http://xmlns.oracle.com/Esb/CustomerProvision" xmlns="http://www.w3.org/2001/XMLSchema">
     <element name="Customer" type="CU:CustomerType"/>
     <complexType name="CustomerType">
          <sequence>
               <element name="CustomerId" type="string"/>
          </sequence>
     </complexType>
</schema>
When I try to do this I am getting following error
CustomerType of method transform cannot be serialized into xml, and no custom serializer has been defined for it.
Why do we need custom serializer here? And if this is mandatory how can we define this custom serializer?

Thanks for your reply...
I tried second option that you specified first. I did the transformation of objects using xslt. It is working fine.
But I couldn't able to do this using first method...,
When I tried to compile the schema using jaxp it is actually creating classes without the private variables. and hence it is not able to recognize those variables to generate the wsdl.
But I am not sure how to generate the classes with those private variables and getter and setters (to generate wsdl specification it seems to be mandatory one).
Can you please tell me how can we do the schema compilation (other than xml beans and jaxp.... I tried both)?

Similar Messages

  • Getting error when tried to learn the documents in OFR Designer

    Hi All,
    As per project requirements, I have to create Classification and Verification LearnSets in Oracle Form Recognition Designer depending on three Invoice Types-- PO,Non-PO and Pre-Approved.
    First I created three derived classes under Generic Class -- PO,Non-PO and Pre-Approved.
    I can add documents in Classification and Extraction LearnSet, analyze them, but getting error when click on the Learn button, I couldn't make the engine ready in learned state from the Definition Mode.
    Always getting the below two errors:-
    1) Cannot compile. May be not enough classes defined or too few documents assigned to the classes.
    Cannot learn the BrainwareView : DefaultView
    SERbrainware : Learn, learning error (7)
    2) Cannot compile. May be not enough classes defined or too few documents assigned to the classes.
    Cannot create Brainware Dictionary for BrainwareView : DefaultView
    SERbrainware : Create/AppendDictionary, preprocessing error (3)
    Thanks in advance,
    Moumi.

    Hi All,
    The below mentioned error were resolved after adding documents in Void Class.
    Thanks,
    Moumi.
    Edited by: 903667 on Jan 31, 2013 8:34 PM

  • Getting error when trying to deploy the SQL project after making some changes

    I’m getting the below error message, when I’m trying to deploy the project by making some changes.
    In detail, The project was deployed successfully at first time. Later I did some changes(Added 1 more table) and I tried to deploy, but it was not sucess. I'm getting the below error message
    Error message:Cannot upgrade the DAC for database CTR_FIN_FINNOTE_DB because the compatibility level is 70 or lower. Alter the database to support a compatibility level of 80 or higher
    I checked in SQL, the compatibility level is 110 which is higher than 70. 
    Can any one help me out to overcome with this.
    Regards
    Sk.

    Try to uninstall you application and then deploy again with the new changes.
    jdweng

  • Getting an error msg while trying to run the java class from CMC

    Hi All,
    I am getting an error, while trying to run the java .class file, that which is imoported into CMC.
    Error msg:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at com.crystaldecisions.sdk.plugin.desktop.program.internal.ProgramWrapper.main(ProgramWrapper.java:49)
    I have imported .class file into CMC and trying to invoke the .class file by another java program from eclipse..When i tried to invoke the .class in cmc, i am getting an error msg, mentioned above. I thought there might be version conflict. So i changed the java complier version to 1.5 in my Eclipse. After that is done again i am facing the same problem.
    Can anyone help me to resolve this issue?
    Thanks in Advance.

    i have installed BO SDK 3.1 , Service pack 3. It comes woth JDK 1.5 version. i have not done any chnages to it. I impoprted all the jar files related to BO into eclipse.
    1)  Actually, i am writing java code on eclipse. When i run code from the eclipse, it creates a session to cmc and creates folder structure what i need.
    2)  But the thing is, that code needs to run, when i import the .class file into cmc. The process how i imported the .class file to cmc.
    Manage> Add> Program File-->Java (Check Box). In this way i added java class file from the eclipse workspace (class file from the bin directory).
    3) So when i run the .class file externally by another java program or also when i log in to CMC and run that .class file, the instance shows sucess, but when i see the logfile i am getting an exception that which i mentioned above.
    If my method is worng can you please let me know the stepts how to run java program in cmc.
    Thanks in Advance

  • I'm getting a -2003F error when trying to run the internet recovery after installing a new hard disk in my macbook pro, any suggestions?

    After installing a new hard drive in my 2011 macbook pro, I'm getting a apple.com/support -2003F error when trying to run the internet recovery.  Any suggestions?

    Did you format the new HDD?  What is the status of the old HDD?
    Do you have an early or late 2011 MBP?
    Ciao.

  • I keep getting an error when trying to receive the new update iOS7 on iPhone5.  Any suggestions?

    I keep getting an error when trying to receive the new update iOS7 on iPhone5.  Any suggestions?

    Do the update using iTunes on your computer.
    Plug your iPhone into iTunes (current version), let it sync, then click "Check for Updates" on the iPhone's summary page in iTunes.

  • I am getting an error when trying to download  the new Game of Thrones shows. The error is err = -61 You do not have the privilege to make changes. (err = -61) you do not have the privilege  to make changes. I have not had this problem before

    I am getting an error when trying to download  the new Game of Thrones shows. The error is err = -61 You do not have the privilege to make changes. (err = -61) you do not have the privilege  to make changes. I have not had this problem before

    Solution:
    Open Disk Utility.
    Select your external hard disk and run a “verify” on it. After a few minutes (depending on the size of your drive), you should be good to go. You don’t need to run a “repair” on it... (at least I didn’t have to). See photo for reference.
    This should fix the permissions issue, because on my Mac running Mountain Lion I was unable to edit the permissions in the get info dialog window even after "unlocking" the drive.

  • I get an error when trying to open "The application Creative Cloud can't be opened. -1712

    I get an error when trying to open "The application Creative Cloud can't be opened. -1712

    The application Install.app can't be opened. -1712

  • Always getting a server error when trying to download the products

    I' always getting a server error when trying to download the products since yesterday, what can I do ?

    Try using a different browser

  • HT4796 I keep getting a Windows Mail error when trying to run the assistant on my pc, but I don't have any email programs open.

    I keep getting a Windows Mail error when trying to run the assistant on my pc, but I don't have any email programs open.

    You could of course use Safari your default browser as a quick method of accessing gmail until you figure out the Firefox problem. (More than one browser may be used on a Mac or other computer).
    Is this the only site you have problems with ? and does Safari work ok ?
    Often this problem requires the page to be reloaded
    * try pressing the shift key as you reload the page
    Another problem is sometimes the cookies for that site need clearing
    * see [[Delete cookies to remove the information websites have stored on your computer#w_delete-cookies-for-a-single-site]]_delete-cookies-for-a-single-site
    * see also [[Firefox and other browsers can't load websites]] or[[Firefox can't load websites but other browsers can]]

  • I get the following error when trying to use the itunes store "your apple id has been disabled"

    I get the following error when trying to use the itunes store "your apple id has been disabled".  My account was disabled when someone else had been using it without my knowledge.  I changed my apple id password and the apple id is still fine, but itunes has it disabled.  I verified that the computer is authorized for this apple id.  What to do now?

    Welcome to the Apple Community.
    Contact Apple through iTunes Store Support

  • Getting error when trying to open Job Manager

    Hi List
    we are getting the below error when trying to open the Job Manager,which worked fine until yesterday.
    [nqs error 46105] Error executing Process: "C:\Program Files\Java\jdk1.6.0\bin\javaw.exe" - Xmx1024m -cp D:\OracleBI\server\Bin\JobManager\startup.jar org.eclipse.core.launcher.Main -data D:\OracleBIData\jobmanager -configuration C:\OracleBIData\jobmanager The system cannot find the path specified
    Please advice.
    Thanks..

    Did you change your JDK path by any chance? Also you are getting a strange error message. It is trying to point to both D:\OracleBIData\jobmanager and C:\OracleBIData\jobmanager. Is there anything that you changed prior to doing this?
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Error when trying to access the RBAC User editor and Message tracking

    Hi,
    I am getting an error when trying to access the RBAC User editor and Message tracking on the Web Mgmt interface. I verified that the admin account trying to access is in the Organization Management group and has the correct Role Assignment Policy applied.
    I searched through this thread below and saw that matching the msExchRoleLink and msExchUserLink attributes fixed the issue. 
    https://social.technet.microsoft.com/Forums/exchange/en-US/fc568cc6-8691-4127-b70b-bcc82f9b1f7f/first-2010-cas-server-no-administrator-rights-emc-permissions-gone?forum=exchange2010
    However I have another environment where this is not the case and works just fine; the msExchUserLink attribute has a value of CN=Organization Management,OU=Microsoft Exchange Security Groups,DC=Domain,DC=Local which is different as per the issue outlined in
    the above thread so I am not convinced that this will work and also don’t want to blindly edit something in adsiedit without being sure.
    I then checked the event logs on the server and saw the below error logged;
    Current user: 'Domain/Server Services Accounts/administrator'
    Request for URL 'https://server.domain.com/ecp/default.aspx?p=AdminDeliveryReports&exsvurl=1' failed with the following error:
    System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Exchange.Management.ControlPanel.UrlNotFoundOrNoAccessException: The page may not be available or you might not have permission to open the
    page. Please contact your administrator for the required credentials. For new credentials to take effect, you have to close this window and log on again.
       at Microsoft.Exchange.Management.ControlPanel._Default.CreateNavTree()
       at Microsoft.Exchange.Management.ControlPanel._Default.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       --- End of inner exception stack trace ---
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.default_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    Microsoft.Exchange.Management.ControlPanel.UrlNotFoundOrNoAccessException: The page may not be available or you might not have permission to open the page. Please contact your administrator for the required credentials. For new credentials to take effect, you
    have to close this window and log on again.
       at Microsoft.Exchange.Management.ControlPanel._Default.CreateNavTree()
       at Microsoft.Exchange.Management.ControlPanel._Default.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    I then had a look at the IIS permissions for ecp and owa. The account did not have permissions so I added them there but still got the same error. I’ve also tried all of the above with a newly-created account but still got the same issue.
    Any ideas as to what the above event log is specifically referring to?

    Hi,
    From your description, I would like to clarify the following thing:
    If you want to search message tracking logs, the account you use should be a member of the role groups below:
    Organization Management role group, Records Management role group, Recipient Management role group.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Getting error when trying to create Exchange Connector in System Center Service Manager 2012

    Getting error when trying to create Exchange Connector in System Center Service Manager 2012
    The connection to the server was unsuccessful. Please check the server name and/or credentials entered.
    Additional Information: The server URL is not accessible or the user does not have permission to access it (message: The request failed. The remote server returned an error: (401) Unauthorized.
    Warm Regards, Pramod Kumar Singh Manager-IT

    Someone sorted out this issue by installing API 1.2 and copying the dll files to the service manager server ,service folder and replacing it with API 2.0 dll files.
    Also, your question is related to SCSM, please post at SCSM forum if you have further question.
    Juke Chou
    TechNet Community Support

  • Error when trying to refresh the current report-Invalid prompt def.WIS00005

    I am trying to create a Webi report using a Universe created with Universe Design Tool 4.0. I have created a new universe with a secured relational connection from a cube in our BBD system. The Universe can be created and exported in UDT (and when I test the connection, I get a message saying the server is responding). I can see values for the BEx query in BEx analyzer.
    When I open Webi and connect to a universe, I can see the universe, but when I put a dimension to our results tab and go to "run query", I first get the error "Error when trying to refresh the current report". If I close this error I get the error "Invalid Prompt Definiton - WIS00005". Has anybody else had this issue and if so, where can I begin to troubleshoot the error?

    Hi,
    Please note that if the object parses at Universe level it may still fail at runtime especially for the prompts.
    If you still experience the error after applying Patch 11 please analyze the characteristics of the prompt, get some trace logs with High level of detail, they surely  will help.
    Thanks!
    Best regards,
    Simone

Maybe you are looking for

  • Problem with FTE in DataTips of PlotChart (missing texts)

    Hi @all, we have decided to use the Flex 4.1 and Flash text engine in our projects. Now I have the following problem with the dataTips: the texts are appearing only partly if datatips of more than one point are showing. The behavior is not regularly.

  • Suspend to ram doesen't work

    Hi. I would like to ask for your advice. I have problem with suspend to ram. In order to have nvidia drivers i had to install newest kernel, 3.12.xx. I found that suspend to ram doesen't work. I put my computer in sleep mode by typing sudo systemctl

  • Workflow for marking clips and then exporting them out as individual clips with audio?

    Hello, I'm just starting to use Prelude.  I recorded an interview for my daughter for a school project last week.  The interview went well, but I want to mark as "sub-clips" all of the video interview's question/answer combos (e.g. "What is your name

  • Why are pre-built graphics blurry on retina displays?

    I have designed multiple vector infographics in Inkpad (iPad app) and imported them into Adobe Muse. The desktop version of graphics looks great. iPad version is blurry and pixelated. No matter how I export the grpahics (ie: .png, .jpeg, .gif) it is

  • Getting the entire dataTableEx contents

    Hi, I am working on hx:dataTableEx to get some records from the db and display on the page. This works fine. I also wanted to create an Excel when one clicks the excel button on the page with the tabledata in it. The problem is , though i am able to