Dynamically Modifying Target XML Namespace

Dear All,
We have a requirement of dynamically modifying the namespace of the target XML   . The scenario is as follows:
There are multiple recipients of a message, and two of the recipients are using the same target structure, but with a different XML namespace. We are catering to the different receivers using different interfaces, but because these two recipients are using the same Target message type, hence they can only point to any one namespace (the XML namespace mentioned in this target message type). For example, the required target messages look like:
Message expected at recipient 1:
<ns0:root xmlns:ns0="http://target1.com">
<tagA/>
<tagB/>
<tagC/>
</ns0:root>
Message expected at recipient 2:
<ns0:root xmlns:ns0="http://target2.com">
<tagA/>
<tagB/>
<tagC/>
</ns0:root>
Obviously, we can only create one message type with name root, and that can point to only 1 namespace. However, we need 2 different namespaces, based on the input payload. For example, if a flag in the input has a value 1, we set the namespace as "http://target1.com"; if it has value 2, we set the namespace as "http://target2.com". We are thinking of dynamically deriving the namespace at the time of mapping, but can not figure out a way to do so. We are currently using Graphical Mapping for one of the recipients; do we have to employ XSLT/ABAP mapping to achieve this? Has anybody done a work around this kind of a problem?
Awaiting Answers.
Thanks and Sincere Regards,
Sid

Hi Peter,
Thanks for replying. Unfortunately, we are using PI 7.01 and not PI 7.1. Any other ideas?
Nice blog though!
P.S: Obviously, we could use 2 different interfaces pointing to the same message type, essentially creating two different communication channels towards the 2 receivers, and modify the payload within these channels using some Adapter Modules. However, this solution looks rather like firing a cannon to kill a fly, and I surely hope PI does have some other capabilities to achieve this using a single interface and single comm channel, which I do not know of (digging through help.sap right now), or can not think of right now.
Thanks and Regards,
Sid

Similar Messages

  • Dynamically modifying web.xml

    Hi,
              I am trying to write code that will dynamically add a servlet definition to a deployed application. ie, the deployment descriptor is dynamically edited. In Tomcat, I am able to edit the web.xml file(when the app is exploded) or I can edit the in memory copy and produce a servlet definition on the fly
              I am trying to do the same of Weblogic 8.1. Everything is straightforward as long as the app is exploded, in which case I simply edit the web.xml file..when the app is not exploded, this is not possible. I tried using MBeans to see if I can add a servletRuntimeMBean to a deployed application, but this does not seem possible..looks like these beans are instantiated by the container and there is no handle for developers to create instances of these beans. I was wondering if it was possible to edit the in memory copy of web.xml that the servlet container records. Any suggestions in this regard would be highly welcome
              Thanks, and sorry for the lengthy email!
              Ram

    <taglib>
         <taglib-uri>/mytags</taglib-uri>
         <taglib-location>/mytags.tld</taglib-location>
    </taglib>That means that your tag libaray definition is located at /root/mytags.tld. Some people put them in the WEB-INF, which would make it /root/WEB-INF/mytags.tld.
    The taglib-uri is how you are going to reference it in your JSP. With the above setup, here is how you would reference in your JSP
    <%@ taglib uri="/mytags" prefix="myTagPrefix" %>
    <myTagPrefix:mySpecialTag/>
    Hope this helps.

  • Dynamically modify Task Flow at runtime

    I have a use case where I need to dynamically modify a task flow at runtime. In my use case, for all task flows I need to add a router that can navigate to any view activity on the flow. The router will need to have control flows from the router to each view activity and a case for each.
    What I've Tried
    I've written a test app that uses MDS to modify a single task flow. This works. I did it by using JDev in customization mode, adding the router and stuff to the flow manually, then running the app. This does exactly what I need it to do. The problem is, I need to do this dynamically at runtime. I'll need to have a process that looks at the task flow and generates the MDS metadata that will insert the router (and other stuff) at runtime. I'm not sure how to do this.
    What I'd like to do
    Ideally, I'd like to do this programmatically (not using MDS) by overriding the controller that returns task flow objects. I may be off the mark here, but I imagine that at runtime the task flow xml is represented by a java object. I also imagine that the java object gets returned by some controller based on the name (and maybe type) of the data requested. If I could override this controller to modify the task flow object before it gets returned, that would be ideal.
    I've found some links from others looking to do something similar to what I'm attempting here. These links are over a year old, so I imagine that some progress has been made on this.
    https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=7355435
    [ER] Add a way to decorate the current PageFlow
    Re: To Simon Lessard - Usecase required for ER request
    Thanks in advance for your help!!
    Cheers,
    Mike

    I have three usecases where I need this ability.
    - breadcrumbs - this should keep a historical trail of the pages the user has visited. clicking on a breadcrumb should take the user back to the page and remove the remainder of the trail.
    - favorites - this is essentially bookmarking within the app. the user should be able to add a page as a favorite the navigate back to it by clicking the link in the favorites drop down.
    - recent items - this is similar to breadcrumbs, but I imagine we will want it to persist across sessions for the user.
    We are using bounded task flows and page fragments. All of these features will need the ability to navigate to any view on a flow (not just the default view). I can navigate to a flow just fine. We have implemented our own version of the XMLMenuModel and are using a dynamic region for navigation. To navigate, we just replace the task flow ID on the dynamic region with the target task flow ID then the region refreshes. This part work just fine. The part that I am working on is how to navigate to a view on the flow. I'm managing state by passing parameters between flows and pages. That part is working ok too. It's just the navigation piece that is giving me grief.
    The little MDS prototype that I did looks promising, but I would need to figure some stuff out. The customization would need to apply to all users and all task flows. I'm not sure how to do that. Also, it would need to be dynamic. The MDS metadata that is responsible for the customization would be different for each task flow and would need to be generated at runtime. I can figure out how to generate the metadata at runtime based on the task flow, but I don't know where the hooks are in the MDS framework where I could put this logic. It would need to execute before the MDS framework tries to merge the base doc (the task flow) with the customization doc that I generate.
    Thanks!!
    Mike

  • Use of xml namespace within XI

    I'm trying to use XI to create an XML document that contains multiple namespaces.  Basically the target XML document was extended from a base document, and the extensions were created under a new namespace.  I don't see a way to change the context of which namespace I want to use, if I use the basic message mapping tool.
    Does anyone know if this is possible?
    If so how do you change the reference?
    Is this type of functionality beyond the scope of the message mapping tool? (do I have to use an XSLT transform or java program to accomplish?)
    Any thoughts would be appreciated!

    Liang -
    Yes, the target message structure is based on an imported schema file.
    The imported schema is pretty complex, and contains about a dozen imported XSD's.
    I have imported each file to resolve the external references, however, when I try and create a mapping object I import the root XSD as the target and only the root shows up as the  mapping window, no lower level fields are visible.
    Do you know if XI supports included files for the XSD defintion?
    IF so, how can you see all of the fields?
    Thanks for your help!
    - Mike

  • How to remove a node from a target xml payload in reciever file channel

    i have a scenario where i have to remove a node from my target xml file in receiver file channel and want xml as the output file. I don't want a fixed length file. How to do that in receiver channel? Do we need to use file content conversion for that?

    that will result in giving you a fixed file or a separator defined file.
    it will not give you an XML file.
    In case you want a XML file, instead of using variable substitution, use Dynamic configuration and adapter specific properties.
    Some ref:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

  • XML namespace to be changed in the outgoing xml message

    HI
    in my scenario I am sending data to a web service .
    The xml namespace that is being sent in t he data is the namespace under which the the object is created.
    while sending the data to the webservice i do not want the ns0: to be attached to the message type and the xml namespace to go as the xml namespace of the vendor.
    Thanks
    Nikhil

    Hi,
    As everyone said you need to remove the namespace in the Message Type screen. If it is a imported XSD you need to remove the attribute targetNamespace.
    After doing this do the mapping once again by selecting the modified message type.
    The above should work... if you are not able to solve it still you can use the following XSLT in the interface mapping after the massage mapping. This is will remove the namespaces and ns0: etc.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml" indent="no"/>
      <xsl:template match="/|comment()|processing-instruction()">
        <xsl:copy>
          <xsl:apply-templates/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="*">
        <xsl:element name="{local-name()}">
          <xsl:apply-templates select="@*|node()"/>
        </xsl:element>
      </xsl:template>
      <xsl:template match="@*">
        <xsl:attribute name="{local-name()}">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:template>
    </xsl:stylesheet>

  • XML Namespace problem in XMLType

    Hi,
    I am getting this error, if anyone has any information about it please let me know.
    extract() returns the following error when a reserverd xml namespace 'xml:lang' is used in the xml document. if the namespace is removed it dosent give error.
    If this is not an error, please let me know how to workaround it.
    Thanks,
    Divakar.
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00233: namespace prefixes starting with "xml" are reserved
    Error at line 71
    ORA-06512: at "XDB.DBMS_XMLDOM", line 3508
    ORA-06512: at "XDB.DBMS_XMLDOM", line 3551
    ORA-06512: at "OPS$DTANJORE.CDR_CDISC_TOPIC3", line 44
    ORA-06512: at line 1

    Hi Vijaykumar,
    Thanks for your reply.
    But it is standard proxy structure, Is it fine to modify this ?
    & it is proxy, so we have to regenerate it in SRM also.
    is it fine ?
    Study SAP

  • Change XML Namespace in XML

    Hi gurus,
    i have imported an XSD file as an external definition and use this for a mapping. After my mapping i have an xml file like:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Aviso xmlns:ns1="http://Post.AG/PartnerInterface/Schemas/PVSdeAt/Aviso_V1.0">
    - <ns2:Header xmlns:ns2="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoHeader">
      <ns2:DebitorAuftraggeber>0022022315</ns2:DebitorAuftraggeber>
      <ns2:Kundenname>WNT Deutschland GmbH</ns2:Kundenname>
      <ns2:Erstellungsdatum>2009-06-26T16:12:25</ns2:Erstellungsdatum>
      <ns2:Versanddatum>2009-06-26T16:12:25</ns2:Versanddatum>
      </ns2:Header>
    - <ns3:Absender xmlns:ns3="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoShipper">
      <ns3:Absendername1>WNT Deutschland GmbH</ns3:Absendername1>
      <ns3:Absendername2 />
      <ns3:Absendername3 />
      <ns3:Absendername4 />
    Now the question is how to change the namespace tags ns1 ns2 ns3? The target XML-File should view like this: (ns1 = ns0; ns2 = ns1; ns3 = ns2)
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Aviso xmlns:ns1="http://Post.AG/PartnerInterface/Schemas/PVSdeAt/Aviso_V1.0">
    - <ns1:Header xmlns:ns2="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoHeader">
      <ns1:DebitorAuftraggeber>0022022315</ns2:DebitorAuftraggeber>
      <ns1:Kundenname>WNT Deutschland GmbH</ns2:Kundenname>
      <ns1:Erstellungsdatum>2009-06-26T16:12:25</ns2:Erstellungsdatum>
      <ns1:Versanddatum>2009-06-26T16:12:25</ns2:Versanddatum>
      </ns1:Header>
    - <ns2:Absender xmlns:ns3="http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoShipper">
      <ns2:Absendername1>WNT Deutschland GmbH</ns3:Absendername1>
      <ns2:Absendername2 />
      <ns2:Absendername3 />
      <ns2:Absendername4 />
    Thanks a lot,
    Max

    Hi,
    you can use a XSLT mapping as step within you Interface mapping to change the namespace tags. Just make sure the produced message matches the XSD structure (external definition) of the destination message interface.
    Check:
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    Regards,
    Kai

  • Remove XML namespace value

    Hi,
    We are using file adapter to generate XML files based on XSD.
    We have a requirement were we need to remove to xml namespace value from the XML file generated by BPEL file adapter.
    Following is the snippet of the xml file generated :
    <?xml version="1.0" ?>
    <Consignment xmlns="http://targetnamespace.com/RSA/Consignment">
    <Details xmlns="">
    <Client>RENZA</Client>
    </Details>
    </Consignment>
    I dont want the xmlns="http://targetnamespace.com/RSA/Consignment".
    or atleast it should be just xmlns="" similar to what i have got in Details tag
    Thanks in advance
    Satish

    I tried removing the target namespace as well in the XSD, but the compiler complains.
    Tried removing it before deployment and it also failed.
    Is there any other place where i can specific some values to suppress this namespace generation ?
    Thanks
    Satish

  • Remove prefix ns from target xml

    Hi Guys,
    I have a target file that is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:MT_Case1 xmlns:ns0="urn:Case:Case1">
    <Field1></Field1>
    <Field2></Field2>
    <Field3></Field3>
       < ns /MT_Case1>
    How can I remove the pre fix ns from the target xml?
    can ne one help pls?
    Edited by: Ravindra Teja on Jul 6, 2011 6:58 PM
    Edited by: Ravindra Teja on Jul 6, 2011 7:00 PM

    You can add or remove the namespace prefix using XMLAnonymizerBean module. 
    Refer this [link|http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm]
    BTW, this namespace prefix might not cause any impact.. What do u test?  If the namespace prefix nso is removed using xmlspy editor then you dont get namespace prefix in the element tag.

  • Javax.servlet.ServletException: The name "" is not legal for JDOM/XML namespaces

    Dear all,
    First of all sorry, if this is not the right place for my question.
    I am facing some problem with the XFire Webservices. When i am trying to access the WSDL through the url. server is throwing the following exception :
    javax.servlet.ServletException: The name "" is not legal for JDOM/XML namespaces: Namespace URIs must be non-null and non-empty Strings.
         org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:143)
         org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML namespaces: Namespace URIs must be non-null and non-empty Strings.
         org.jdom.Namespace.getNamespace(Namespace.java:164)
         org.codehaus.xfire.util.NamespaceHelper.getUniquePrefix(NamespaceHelper.java:58)
         org.codehaus.xfire.aegis.type.basic.BeanType.writeSchema(BeanType.java:560)
         org.codehaus.xfire.wsdl.AbstractWSDL.addDependency(AbstractWSDL.java:224)
         org.codehaus.xfire.wsdl.AbstractWSDL.addDependency(AbstractWSDL.java:233)
         org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createDocLitPart(WSDLBuilder.java:403)
         org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createPart(WSDLBuilder.java:355)
         org.codehaus.xfire.wsdl11.builder.WSDLBuilder.writeParameters(WSDLBuilder.java:509)
    cont.......
    I am not able to figure out the root cause for this. The service.xml file looks like below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- START Service.xml -->
    <beans xmlns="http://xfire.codehaus.org/config/1.0">
    <!-- Construct the castor service factory by Spring -->
    <bean id="castorTypeRegistry" class="org.codehaus.xfire.castor.CastorTypeMappingRegistry"/>
    <bean id="bindingProvider" class="org.codehaus.xfire.aegis.AegisBindingProvider">
    <constructor-arg ref="castorTypeRegistry"/>
    </bean>
    <bean id="castorServiceFactory" class="org.codehaus.xfire.service.binding.ObjectServiceFactory">
    <constructor-arg index="0" ref="xfire.transportManager"/>
    <constructor-arg index="1" ref="bindingProvider"/>
    </bean>
    <service>
    <name>ReleaseManager</name>
    <namespace>ReleaseManager</namespace>
    <serviceClass>com.pinkroccade.jfoundation.calculation.releases.ReleaseManager</serviceClass>
    <implementationClass>com.pinkroccade.jfoundation.calculation.releases.ReleaseManagerImpl</implementationClass>
    <schemas>
    <schema>META-INF/schema/release-impact-worksheet-3.2.0.xsd</schema>
    </schemas>
    <style>document</style>
    <serviceFactory>#castorServiceFactory</serviceFactory>
    </service>
    </beans>
    <!-- END Service.xml-->
    The issue which i am facing is it due to the problem with the service.xml (Which i dont think so..), Or is it any thing to do with the XSD file which i am using.
    Can any body give me some guide lines for this ????
    Thanks in advance.
    Thanks and Regards,
    Manjunath.

    Any one any thoughts..
    I need to find out the solution for this as soon as possible; Not able to proceed further...
    Thanks and Regards,
    Manjunath.

  • Issue with XML namespace and Message structure

    Hi All,
    I am using Oracle SOA Suite 11.1.1.4. I have SOA web service application one-way messaging wherein I keep receiving messages from the third party. The issue I am facing is with the XML namespaces which conflicts with the third party's message structure. The details are as below.
    Our Web-service WSDL*
    <schema attributeFormDefault="unqualified" elementFormDefault="qualified"
    targetNamespace="http://amb.com/cad/RealTimeService"
    xmlns:cad="http://amb.com/cad/RealTimeService"
    xmlns:avl="http://schemas.com/asiapac/cad/datamodel/avl/1.0.0"
    xmlns:evn="http://schemas.com/asiapac/cad/datamodel/event/1.0.0"
    xmlns:uni="http://schemas.com/asiapac/cad/datamodel/unit/1.0.0"
    xmlns:dvt="http://schemas.com/asiapac/cad/datamodel/divert/1.0.0"
    xmlns:sui="http://schemas.com/asiapac/cad/datamodel/suppinfo/1.0.0"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.com/cad/datamodel/avl/1.0.0"
    schemaLocation="AvlCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/unit/1.0.0"
    schemaLocation="UnitCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/event/1.0.0"
    schemaLocation="EventCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/divert/1.0.0"
    schemaLocation="HewsCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/suppinfo/1.0.0"
    schemaLocation="SupplementalInformationCadSchema.xsd"/>
    <element name="AvlAuxData" type="avl:AvlAuxData" nillable="true"/>
    <element name="AgencyEvent" type="evn:AgencyEvent"/>
    <element name="Diversion" type="dvt:HospitalDiversionMessage"/>
    <element name="SupplementalInformation" type="sui:SupplementalInformation"/>
    <element name="UnitDetail" type="uni:UnitDetail"/>
    </schema>
    Using SOAP UI tool a HospitalDiversionMessage Request for the above WSDL will look like*
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:real="http://amb.com/cad/RealTimeService" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <*real*:Diversion>
    <ns:Action>?</ns:Action>
    <ns:Open>?</ns:Open>
    <!--Optional:-->
    <ns:Location>?</ns:Location>
    <ns:Type>?</ns:Type>
    <ns:SubType>?</ns:SubType>
    <!--Optional:-->
    <ns:ExpiryTimestamp>?</ns:ExpiryTimestamp>
    <!--Optional:-->
    <ns:Comment>?</ns:Comment>
    <!--Optional:-->
    <ns:ItemNumber>?</ns:ItemNumber>
    <!--Optional:-->
    <ns:Notifications>?</ns:Notifications>
    <ns:CreatedTerminal>?</ns:CreatedTerminal>
    <ns:CreatedTimestamp>?</ns:CreatedTimestamp>
    <!--Optional:-->
    <ns:ClosedBy>?</ns:ClosedBy>
    <!--Optional:-->
    <ns:ClosedComments>?</ns:ClosedComments>
    <!--Optional:-->
    <ns:ClosedTerminal>?</ns:ClosedTerminal>
    <!--Optional:-->
    <ns:ClosedTimestamp>?</ns:ClosedTimestamp>
    </real:Diversion>
    </soapenv:Body>
    </soapenv:Envelope>
    Now the third party sends a HospitalDiversionMessage in this format_
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://amb.com/cad/RealTimeService" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <ns0:Diversion>
    <ns0:Action>?</ns0:Action>
    <ns0:Open>?</ns0:Open>
    <!--Optional:-->
    <ns0:Location>?</ns0:Location>
    <ns0:Type>?</ns0:Type>
    <ns0:SubType>?</ns0:SubType>
    <!--Optional:-->
    <ns0:ExpiryTimestamp>?</ns0:ExpiryTimestamp>
    <!--Optional:-->
    <ns0:Comment>?</ns0:Comment>
    <!--Optional:-->
    <ns0:ItemNumber>?</ns0:ItemNumber>
    <!--Optional:-->
    <ns0:Notifications>?</ns0:Notifications>
    <ns0:CreatedTerminal>?</ns0:CreatedTerminal>
    <ns0:CreatedTimestamp>?</ns0:CreatedTimestamp>
    <!--Optional:-->
    <ns0:ClosedBy>?</ns0:ClosedBy>
    <!--Optional:-->
    <ns0:ClosedComments>?</ns0:ClosedComments>
    <!--Optional:-->
    <ns0:ClosedTerminal>?</ns0:ClosedTerminal>
    <!--Optional:-->
    <ns0:ClosedTimestamp>?</ns0:ClosedTimestamp>
    </ns0:Diversion>
    </soapenv:Body>
    </soapenv:Envelope>
    Questions*
    1) I cannot figure out how the SOAPUI tool or SOA substitutes "real" as the namespace prefix for the WSDL based HospitalDiversionMessage and what I need to do at my end to match the message structure as per what the third party needs.
    2) I need ns0 namespace prefix to whole of Diversion xml element. Currently it is "real" at top Diversion element and "ns" for its children
    Please suggest, I can attach the other imported XSD if need be.
    Thanks
    Edited by: user5108636 on Jun 13, 2011 6:55 PM
    Edited by: user5108636 on Jun 13, 2011 6:57 PM
    Edited by: user5108636 on Jun 13, 2011 7:02 PM

    Questions
    1) I cannot figure out how the SOAPUI tool or SOA substitutes "real" as the namespace prefix for the WSDL based HospitalDiversionMessage and what I need to do at my end to match the message structure as per what the third party needs.The xml namespace suffixes like real and ns0 are just references used by the XML Parsers. For that matter the "real" can be xyz as well.
    You dont need to make any changes as long as the xml namespace suffixes refer to the same namespace.
    If you see the first soapUI xml and the third party xml have the same namespace references and hence it is not a problem:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:real="*http://amb.com/cad/RealTimeService*" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <*real*:Diversion>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="*http://amb.com/cad/RealTimeService*" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <*ns0*:Diversion>
    2) I need ns0 namespace prefix to whole of Diversion xml element. Currently it is "real" at top Diversion element and "ns" for its childrenBased on this, logically both the xmls represent the same xml message. And hence you dont need to make any changes.
    Please refer to the basics of xml namespaces using the following links:
    http://en.wikipedia.org/wiki/XML_namespace
    http://zvon.org/comp/r/tut-Namespace.html#Pages~Introduction
    Let us know if you still need clarification.
    Hope this helps.
    Thanks,
    Patrick

  • XML namespace in xml converted pdf

    Hello everyone
    I have a problem when converting pdf's in xml. Everytime when I convert a PDF(either with Acrobat or with mailing the file as XML) in XML the date fields always in middle shows the xml namespace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" . We are using these xml's to transfer data to an accounting software but the software recognizes the xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" as an error and because of that the data couldn't be uploaded. We created the PDF using a xsd scheme made in the accounting software. Is there a way to get rid of xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" showing in the date fields.
    I appreciate every possible help

    Hi,
    It sounds like you have the nillable="true" attribute in you XSD for the date field.
    If you XSD looks like;
    <xs:element name="Date1" type="xs:date" nillable="true"/>
    Then you will get the following when the field Date1 is bound to is left blank.
    <Date1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
    This is the correct behaviour, so I am either not understanding the problem or there is a bug in the accounting software you are using.
    Maybe you could try replacing the nullable="true" with a minOccurs="0".  This will mean the element will not appear in the XML at all.
    Regards
    Bruce

  • Idoc to XML, namespace is not getting created in output XML

    Hi All
    My interface is idoc to XML.
    I am using graphical message mapping.
    In output xml , namespace is not  formed
    Can any one tell why namespace is not  created in the XML and
    How to add the  namespace to the  output XML .
    Kindly help
    Regards,
    Sheela

    Hi,
    You can change your external definition to achieve it.  just compare the structure of your xsd with some other normal data type xsd and change accordingly.
    Inder

  • Dynamically construct Target/Source Directory in File Adapter

    Hi All,
    Is it possible to Dynamically construct target/Source Directory in File Adapter? If yes can anyone plz provide details about the same.
    regards
    Vinay

    Hi vinay,
    have a look @ these threads..u may get some help!!
    Re: Dynamic directory name in Receiving File adapter
    Dynamic FileName and Directory - UDF
    Re: Dynamic Directory and File Naming in Receiver Adapter
    Re: target directory in file adapter
    Regards
    BILL

Maybe you are looking for

  • OFM 11.1.2 installation issue on HP-UX 11.31

    Hello all. Been trying to install OFM 11.1.2 on HP-UX for a few hours, but I am facing a problem at the linking phase of the installation. It throws an exception which reads "Error invoking target 'frmweb_install_frmcmp_install frmcmpb_install frmctr

  • Office:mac 2008 Word Question

    We just purchased Office:mac 2008 Home and Student Edition. I thought I could convert text to Chinese; however, it is not highlighted as an option (greyed out). Does anyone know how I can activate this?

  • How to create a Spry Gallery

    Sorry for the rudimentary question, but I want to actually create a spry gallery like the one in the demos, but I am lost as to where to start (using Dreamweaver). Thanks, Don

  • CS3: Any way to Batch convert files from different directories?

    Using CS3. I want to open a bunch of TIF files and re-save using different file options. The only way I know to do this is with File > Automate > Batch. But that only works if the destination folder for all files is the same. It's not. Ideally I woul

  • Document Split

    Hi This is query is of New GL. I had configured Document split. When a cross business area posting is done automatic entry is generated for business area clearing. But in GL view business area is blank. I had check the scenario in ledger, we had assi