XML without namespace and prefix, modified package-info.java, JAX-WS option

Hello
I have created a consumer business service which will be called from JDEdwards EOne, pulls data from database and send it to Fusion Middleware.
SO, I have created proxy using JAX-WS option. And suggested in oracle doc, I created proxy outside OMW and then copied it to my project. XML payload is getting generated without namespace and prefix. After some research, I modified package-info.java. Now, I am able to send the payload and if test it locally from Jdeveloper and take xml output using marshaller I can see it has namespace and prefix as well. BUt, when I run this from server it does not have namespace and prefix.
Please help.
Thanks
TK

Just to clerify,
The common complex types are StatusInfo, IdcProperty and IdcPropertyList. I ahve 3 more WSDL's with the exact same entires for those 3.

Similar Messages

  • XML Payload does not have namespace and prefix.

    Hello
    I have created a consumer business service which will be called from JDEdwards EOne, pulls data from database and send it to Fusion Middleware.
    SO, I have created proxy using JAX-WS option. And suggested in oracle doc, I created proxy outside OMW and then copied it to my project. XML payload is getting generated without namespace and prefix. After some research, I modified package-info.java. Now, I am able to send the payload and if test it locally from Jdeveloper and take xml output using marshaller I can see it has namespace and prefix as well. BUt, when I run this from server it does not have namespace and prefix.
    Please help.
    Thanks
    TK

    Hi Naresh,
    The "rejectedMessage" property is for 10G, I am not 100% sure about its implementation in 11G.
    In 10G the faulted XML file moves to this location "Oracle_Home\bpel\domains\domain_name\jca\project_directory\rejectedMessages".
    This property is used to move the files which are not valid XML or which are not schema compliant. For DB polling I don't think this property is used.
    -Yatan

  • Namespace and prefix are not coming up in xml payload created from BSSV

    Hello
    I am facing this issue that when I am creating xml payload from BSSV, payload does not have namespace and no prefix. I googled on this and made code change in package-info. java file. Now, when I test BSSV locally from Jdeveloper xml gets created with namespace but when I run it from server, there's no namespace.
    Does this file package-info.java gets deployed on server? is it ok to make change to it? If not, then what is the other way to resolve this issue?
    Please suggest.
    Thanks
    TK

    Hi Peter,
    Thanks for the valuable input.
    We have already implemented note 378648 i.e these all parameters are already there under sidadm user in DB node.
    BR_OFS=1
    BR_OFS_RESOURCE=< database_resource_name>
    BR_OFS_CLUSTER=< cluster_name>
    BR_OFS_USER=<user_name>
    BR_OFS_DOMAIN=<domain>
    BR_OFS_PWD=<password>
    registry HKEY_LOCAL_MACHINE/Software/Oracle/HomeX ORA_<SID>_AUTOSTART is having value false.
    Please guide what could be the other possible reason?
    Regards
    Praveen

  • Problem with "package-info.java" using EJB 3.0 and OC4J

    Hi all.
    I already posted this question on JDeveloper forum, but didn't get any answer,
    so I'll try posting here.
    Anyway, I'm new both to JDeveloper and J2EE,
    so I'm trying out examples for EJB 3.0, and I got stuck at "Use Security Annotations with EJB 3.0"
    (http://www.oracle.com/technology/tech/java/oc4j/ejb3/howtos-ejb3/howtoejb30security/doc/how-to-ejb30-security-ejb.html).
    Example code is working perfectly, if one builds it using Ant, but I'm importing all examples into JDeveloper (or at least I'm trying to :))
    JDeveloper can't build file "package-info.java" containing following code:
    @javax.annotation.security.SecurityRoles(roleNames={"superuser", "user"})
    package oracle.ejb30;I'm getting following output in "Compiler - Log" window:
    Error(2,1): 'class', 'interface', or 'enum' expected.
    Help much appreciated...
    platform used:
    Windows XP SP2
    JDeveloper Studio (Version 10.1.3, Build 3412)
    JDK 1.5_06
    OC4J 10.1.3 developer preview 4 (standalone version)

    Since you're using EJBs, you can use JTA and can skip the getTransaction() calls. If you want to use getTransaction().begin() and commit(), then make sure that your EntityManager is resource-local. The configuration for this is in persistence.xml. Set a transaction-type of RESOURCE_LOCAL rather than JTA.

  • PI 7.4 - AF_Modules/XMLAnonymizerBean - remove namespace and prefix

    Hi,
    In my receiver SOAP adapter I would like to remove the namespace and prefix. To do this I have configured the receiver SOAP adapter to include AF_Modules/XMLAnonymizerBean:
    The message log shows "Anonimizer: successfully anonymized" but when I look at the message payload (after message mapping) it still contains the namespace and prefix. Is this because message monitoring does not show the payload after the Anonimizer has been processed? Is it only possible to see the Anonimized payload at the receiver party?
    Thanks
    Che

    Hi Che,
    Yes, you can only see the final result at the receiver's side.
    What you can do is temporarily use a receiver file adapter and write an XML on disk to verify.
    Kind regards,
    Dimitri

  • Delete namespace and prefix with Seeburger X.400 receiver

    Dear experts,
    I have a problem deleting a namespace and prefixes "ns0" from an XML output. When testing I was using an FTP receiver adapter with the AnonymizerBean which worked perfectly. I referred to: /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
    Now I have a Seeburger X.400 receiver adapter and the AnonymizerBean does not work anymore.
    The output message looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:ORDERRESPONSE xmlns:ns0="http://www.opentrans.org/XMLSchema/1.0" version="1.0">
    <ns0:ORDERRESPONSE_HEADER>
    <ns0:ORDERRESPONSE_INFO>
    <ns0:ORDER_ID>xxxxx</ns0:ORDER_ID>
    So I need to get rid of the namespace and the prefixes "ns0". Does anyone know how to configure the module of the X.400 receiver adapter to do this?
    Thank you very much for your help!
    Best regards,
    Peter

    Hey Guys,
    I am having issues with using anonymizer bean. Below is the data with namespaces I would like to strip:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:ExecuteXMLRequest xmlns:ns1="http://decisionintellect.com/inteport/">
    - <ns1:_sRequestXML>
    - <ns1:inteflow>
    - <ns1:request cd_type="submit">
    - <ns1:user>
      <ns1:id_oper>INTERFACE</ns1:id_oper>
      <ns1:tx_password>password</ns1:tx_password>
      </ns1:user>
      <ns1:cd_service>SUBMIT</ns1:cd_service>
      <ns1:cd_product>IFE</ns1:cd_product>
      <ns1:id_channel>INTEGATE</ns1:id_channel>
      <ns1:id_company>OFFICEWORKS</ns1:id_company>
      <ns1:id_merchant>OFFICEWORKS</ns1:id_merchant>
      <ns1:cd_country>61</ns1:cd_country>
      <ns1:cd_security>IFE</ns1:cd_security>
      </ns1:request>
    - <ns1:application_details>
      <ns1:id_product_credit>COMMERCIAL DECISIONING</ns1:id_product_credit>
      <ns1:id_reference_internal>[APP-ID]</ns1:id_reference_internal>
      <ns1:id_reference_external>[customer ref here]</ns1:id_reference_external>
      <ns1:id_merchant_submit>OFFICEWORKS</ns1:id_merchant_submit>
      </ns1:application_details>
    - <ns1:service>
    - <ns1:application>
    - <ns1:finance>
      <ns1:cd_type_finance>TERMS 30</ns1:cd_type_finance>
      <ns1:am_finance>4000</ns1:am_finance>
      </ns1:finance>
    - <ns1:applicant cd_type="Principal" fg_new="0">
    - <ns1:company>
      <ns1:cd_type_entity>SLTR</ns1:cd_type_entity>
      <ns1:tx_company_abn>41552470947</ns1:tx_company_abn>
      <ns1:nm_company_legal>WESTON, DEAN</ns1:nm_company_legal>
      <ns1:cd_type_industry>OTHER</ns1:cd_type_industry>
      <ns1:no_directors>1</ns1:no_directors>
      <ns1:no_employees>1</ns1:no_employees>
      </ns1:company>
      </ns1:applicant>
    - <ns1:applicant cd_type="CoBorrower1" fg_new="0">
    - <ns1:individual>
      <ns1:cd_title>Mr</ns1:cd_title>
      <ns1:nm_firstname>Dean</ns1:nm_firstname>
      <ns1:nm_surname>Weston</ns1:nm_surname>
      <ns1:dt_dob>1968-12-29</ns1:dt_dob>
      <ns1:cd_gender>M</ns1:cd_gender>
      <ns1:fg_act_privacy>1</ns1:fg_act_privacy>
      <ns1:cd_residence>61</ns1:cd_residence>
      </ns1:individual>
    - <ns1:address>
    - <ns1:current_address>
      <ns1:tx_no_unit>1</ns1:tx_no_unit>
      <ns1:tx_no_street>1</ns1:tx_no_street>
      <ns1:nm_street>Test</ns1:nm_street>
      <ns1:cd_type_street>Rd</ns1:cd_type_street>
      <ns1:nm_suburb>Testerville</ns1:nm_suburb>
      <ns1:cd_state>VIC</ns1:cd_state>
      <ns1:cd_postcode>3000</ns1:cd_postcode>
      <ns1:ct_address_at_time>21</ns1:ct_address_at_time>
      <ns1:cd_country>61</ns1:cd_country>
      </ns1:current_address>
      </ns1:address>
    - <ns1:address>
    - <ns1:previous_address>
      <ns1:tx_no_street>2</ns1:tx_no_street>
      <ns1:nm_street>Wayback</ns1:nm_street>
      <ns1:cd_type_street>Crs</ns1:cd_type_street>
      <ns1:nm_suburb>Sydney</ns1:nm_suburb>
      <ns1:cd_state>NSW</ns1:cd_state>
      <ns1:cd_postcode>2000</ns1:cd_postcode>
      <ns1:ct_address_at_time>117</ns1:ct_address_at_time>
      <ns1:cd_country>61</ns1:cd_country>
      </ns1:previous_address>
      </ns1:address>
    - <ns1:identification>
    - <ns1:drivers_license>
      <ns1:id_number>123456789</ns1:id_number>
      <ns1:fg_verified>1</ns1:fg_verified>
      </ns1:drivers_license>
      </ns1:identification>
    - <ns1:contact>
    - <ns1:home_phone>
      <ns1:tx_area>03</ns1:tx_area>
      <ns1:tx_number>99998888</ns1:tx_number>
      </ns1:home_phone>
      </ns1:contact>
    - <ns1:contact>
    - <ns1:work_phone>
      <ns1:tx_area>03</ns1:tx_area>
      <ns1:tx_number>88887777</ns1:tx_number>
      </ns1:work_phone>
      </ns1:contact>
    - <ns1:contact>
    - <ns1:other_phone>
      <ns1:tx_number>0400123123</ns1:tx_number>
      <ns1:cd_type>Mobile</ns1:cd_type>
      </ns1:other_phone>
      </ns1:contact>
    - <ns1:contact>
    - <ns1:other_phone>
      <ns1:tx_area>03</ns1:tx_area>
      <ns1:tx_number>77776666</ns1:tx_number>
      <ns1:cd_type>Other</ns1:cd_type>
      </ns1:other_phone>
      </ns1:contact>
      </ns1:applicant>
      </ns1:application>
      </ns1:service>
      </ns1:inteflow>
      </ns1:_sRequestXML>
      </ns1:ExecuteXMLRequest>
    Anonymizer bean is stripping the namespace prefix ns1 but it is also stripping the address http://decisionintellect.com/inteport/.
    Below is my anonymizer bean config in PI:
    Processing seq:
    1                    AF_Modules/XMLAnonymizerBean               local enterprise bean            0
    Module config:
    0                   anonymizer.acceptNamespaces                    http://decisionintellect.com/inteport ''
    0                    anonymizer.quote                                          '
    Can someone please suggest how to keep the http://decisionintellect.com/inteport and remove rest of namespace prefixes

  • [svn:bz-trunk] 10059: update two package-info.java files, and add one new one.

    Revision: 10059
    Author:   [email protected]
    Date:     2009-09-08 11:31:48 -0700 (Tue, 08 Sep 2009)
    Log Message:
    update two package-info.java files, and add one new one.
    Modified Paths:
        blazeds/trunk/modules/proxy/src/flex/messaging/services/http/proxy/package-info.java
    Added Paths:
        blazeds/trunk/modules/core/src/flex/messaging/util/concurrent/package-info.java
        blazeds/trunk/modules/core/src/flex/messaging/validators/package-info.java

    Revision: 10059
    Author:   [email protected]
    Date:     2009-09-08 11:31:48 -0700 (Tue, 08 Sep 2009)
    Log Message:
    update two package-info.java files, and add one new one.
    Modified Paths:
        blazeds/trunk/modules/proxy/src/flex/messaging/services/http/proxy/package-info.java
    Added Paths:
        blazeds/trunk/modules/core/src/flex/messaging/util/concurrent/package-info.java
        blazeds/trunk/modules/core/src/flex/messaging/validators/package-info.java

  • JMS Adapter getting xml without namespace

    Hello,
    We're using BPEL 10.1.3.4 and we need to integrate a legacy system with a new one. The legacy system writes in a JMS queue a simple xml message without namespaces (following although a specific schema). When in BPEL I try to get this xml I cannot access its elements and I'm getting errors like the following:
    variable/ expression is empty
    Which seems normal as bpel tries to access the element using namespaces.
    I found this thread which seems to be the same issue Re: writing XML without namespace? but I cannot actually understand the approach.
    Any help will be really usefull!
    Thank you!

    Hi,
    Did the solution mentioned in the other thread worked for you? I am having the exact problem.
    Thanks.

  • [svn:fx-trunk] 5899: Re: Sparkified this example with latest namespaces and prefixes.

    Revision: 5899
    Author: [email protected]
    Date: 2009-04-02 17:36:40 -0700 (Thu, 02 Apr 2009)
    Log Message:
    Re:Sparkified this example with latest namespaces and prefixes.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/ListExample.m xml

    I am not sure what's happening with IE9 (no live site) but I had real problems viewing your code in Live View - until I removed the HTML comment marked below. Basically your site was viewable in Design View but as soon a I hit Live view, it disappeared - much like IE9. See if removing the comment solves your issue.
    <style type="text/css">
    <!-- /*Remove this */
    body {
        margin: 0;
        padding: 0;
        color: #000;
        background:url(Images/websitebackgroundhomee.jpg) repeat scroll 0 0;
        font-family: David;
        font-size: 15px;
        height:100%;

  • Same Custome HR infotype twice once without namespace and with namespace

    Hello all i just want to know can we create same custom infotype (eg 9060) two times once with namespace (eg /companyname/9060) and also withoutname space (eg 9060).
    those who dont know what is namespace, we can reserve a namespace in accordance with SAP so that we can develop all our development component in ourname space instead of initiating with Z or Z. it starts with "/"  (eg "/namespace name/ object name")
    I tried it but Infotype attributes are same for both infotype but i have different other components eg. DDIC structurea and table name and screen name. i also tried to see in PA30 after creating it but it not able to see 2 infotype infact 1 only.
    So my question is it possible to create Custome infotype twice once without namespace and also with namespace???
    Any reply will be appreciated.
    Mani

    Well i am able to create two infotype component but when i am trying to access them then i am getting on first on. explaination below will give  u more light
    Infotype without namespace : 9060
    other component:
    P9060
    PA9060
    PS9060             
    etc
    Infotype with namespace : 9060
    /namespace/P9060
    /namespace/PS9060
    /namespace/PA9060      
    etc      
    But i dont need frontend of infotype so i am still confused can i go with this or not.
    the requirement arises as we developed an package previously with infotype without namespace but ow we have our own namespace and want to transfer all the stuff to our namespace.
    Mani

  • Creating package-info.java in Netbeans

    I'm a little frustrated that Netbeans won't even let you create a 'package-info.java' file because of its naming rules. Is there any way to get around this?

    I don't know NetBeans very well, so don't know of any workaround for the naming.
    You can just name the file "package.html" and it will do the same thing. The drawback is that it won't allow for package annotations -- it can still have javadoc tags, though.
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#packagecomment

  • Checkstyle warning: Missing package-info.java file

    Hi,
    I'm getting a checkstyle warning for a simple class which looks like:
    package tools.interprocess;
    * Class for testing RMI.
    * @author spinth
    public final class RMITest {
         * Private constructor.
        private RMITest() {
         * Main method.
         * @param args User arguments
        public static void main(final String[] args) {
    }The warning message says: Missing package-info.java file
    I really couldn't figure out what this means and how I can fix it. Do I have to add something to the source tree?
    I'm using Eclipse for development and Eclipse-cs as my checkstyle plug-in.
    Thanks.
    Edited by: spinth on Apr 15, 2010 12:37 PM

    If you don't want that warning then simply turn it of.
    A package-info.java file is there mostly to attach JavaDoc to the package itself.
    If you don't need/want that, then the checkstyle warning is useless. Checkstyle (and similar tools) are meant to be tweaked to your needs and not used blindly.

  • Annotations: package-info.java

    In Eclipse IDE I do the next thing:
    @MyAnnotation
    package annotations;
    @interface MyAnnotation {  
    }And Eclipse tells me that Package annotations must be in file package-info.java. In Java Language Specification I didn't find something about file package-info.java. Where I can read something about it?
    What is the syntax of the file package-info.java. Maybe you have an example?

    http://java.sun.com/docs/books/jls/third_edition/html/packages.html Discussion of Section 7.4.1.1

  • Writing XML without namespace?

    Hi,
    I have a "strange" xml schema in a system I need to export data to. It lacks any forms of namespace (possibly a converted DTD) and it seemd the FTP adapter (from BPEL) cant handle XML-types without namespaces.
    Is there a way to do this without using an opaque adapter and writing the data as "text"?
    The schema the file uses can be found here: http://services.agresso.com/schema/ABWSupplierCustomer/2004/07/02/ABWSupplierCustomer542.xsd
    // Michael Medin

    This works for both BPEL & ESB:
    1. Build an XSD for the source system adapter/process with no XSD.
    2. Build another XSD which acts like wrapper of original XSD.
    3. In the Wrapper XSD include the actual xsd.This one is sample xsd which has the piece of code
          <?xml version="1.0" encoding="windows-1252" ?>
           <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.org" targetNamespace="http://xmlns.oracle.com/BPELProcess2"
          xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" nxsd:version="DTD"
          elementFormDefault="qualified">
          <include schemaLocation="actual.xsd"/>
          </xsd:schema>The Target Namespace can be of any URL and this could be of anything.While polling the file or any JMS queue the adapter should include the wrapper xsd instead of actual xsd.This would read the file or any queue even if there is no namespace and the values can be transformed or assigned inside the process.
    Peace,
    G.

  • XmlBean to plain xml without namespaces

    I want to call a service wich takes a string as input
    But the string must contain plain xml like :
    "<quote><address>12 Springs</address></quote>"
    I did write a xsd file, and generated a xmlBeans, but
    how to get the plain xml in a string without the namespaces from the xmlBean
    Regards,
    reimer

    "David Baer" <[email protected]> wrote:
    >
    "RajeshRao" <[email protected]> wrote:
    Even I am trying but no luck,
    can somebody help !!
    ThanksThis works in my testing so far. Feedback on any malfunctions appreciated.
    This
    does not attempt to "namespace-unqualify" attribute names, only element
    names,
    but that's easily added.
    import com.bea.xml.XmlCursor;
    import com.bea.xml.XmlObject;
    import javax.xml.namespace.QName;
    private void localizeXmlFragment(XmlObject x)
    String s;
    XmlCursor c = x.newCursor();
    c.toNextToken();
    while (c.hasNextToken())
    if (c.isNamespace())
    c.removeXml();
    else
    if (c.isStart())
    s = c.getName().getLocalPart();
    c.setName(new QName(s));
    c.toNextToken();
    c.dispose();
    Don't know why the line breaks disappeared with the previous reply. Let's try
    it one more time.
    import com.bea.xml.XmlCursor;
    import com.bea.xml.XmlObject;
    import javax.xml.namespace.QName;
    private void localizeXmlFragment(XmlObject x)
    String s;
    XmlCursor c = x.newCursor();
    c.toNextToken();
    while (c.hasNextToken())
    if (c.isNamespace())
    c.removeXml();
    else
    if (c.isStart())
    s = c.getName().getLocalPart();
    c.setName(new QName(s));
    c.toNextToken();
    c.dispose();

Maybe you are looking for