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>

Similar Messages

  • Namespace-URI is wrong in the metadata.xml??

    Dear Captivate-Community,
    I am running into troubles importing SCORM packages from Captivate 6 into our LMS.
    Our LMS  (Viversa 7.1 from VIWIS) interprets SCORM 1.2 very strict.
    It seems that the namespace-URI is wrong in the metadata.xml!
    wrong is...
    Line 4:   xmlns:pkgprop="http://www.scorm.com/ScormEnginePackageProperties"
    correct is:
    Line 4:   xmlns:pkgprop="http://www.scorm.com/xsd/ScormEnginePackageProperties"
    Has anyone else the same experience? I don´t want to change each exported file by hand...
    Thx
    :-) michael

    Hi Michael,
    yes, currently I actually have the same problem, also using the LMS Viversa. The solution from RodWard was very helpful. I change the template in Line 67 and add the "xsd/". Now it works!
    Regards
    Katharina

  • What else can you manually change in the Manifest XML?

    I am developing native Java apps as well as Adobe AIR for Android apps.
    I know you can manually change the AndroidManifest.xml file (even if you're using the Flash CS5 Adobe AIR for Android plug-in) to do some different things.
    What have you guys had success doing?  I've only figured out how to enable moving the apps to the SD card (location "auto").
    Anyone else?
    -Adele
    AdmobAndroid.com

    Laxidasical,
    Make sure you set the location to auto manually within the XML file, then don't touch the publish settings within the .FLA
    file.  Next time you publish, you should be able to manually move it to SD card.  I can show you the settings if you want it to default to SD card as well.
    If it's not working for you, please let me know your process and maybe I can troubleshoot it.
    Everyone else,
    Do you know of other things to manually change in the manifest xml file?
    I also develop native apps in Eclipse and there's tons more I can do there, but so far, I haven't been able to get any of those changes to work in Adobe AIR for Android.
    -Adele
    http://admobandroid.com

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • Did something change on the outgoing mail settings?

    My droid all the sudden cant send email, I get incoming mail fine but cant send anything. Has the outgoing mail server changed? Can someone please give me the correct setting to use?
    My phone keep saying outgoing server does not support authenication if that helps. It was set on smtp.mac.com and was changed to smtp.me.com and same message.
    Thanks all.....

    Your out going server is wrong.
    See http://support.apple.com/kb/HT4864

  • 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

  • Generating target XML tag from a value in the Source XML document

    Hi there,
    I have a scenario where the following transformation needs to occur:
    Source Message...
    <Catalogue>
      <key>abc<\key>
      <value>123<\value>
      <key>def<\key>
      <value>456<\value>
    <\Catalogue>
    Target Message...
    <Catalogue>
      <abc>123<\abc>  --> Value of KEY becomes the XML tag and the VALUE gets assigned to it
      <def>456<\abc>
    <\Catalogue>
    The target message is written to an xml file using the receiver file adapter.
    I would like the target message generation to be dynamic so that when a new key-value pair is added, it would not require a change in the XI mapping layer.  Is there a way to accomplish this without having to code or enhance the adapter.  I am trying to avoid doing this in the mapping because that would mean changing the mapping every time a new key-value pair needs to be added.
    Any suggestions to accomplish this are welcome.
    Thanks all.

    Hi,
    I doubt if it will work for you. you can generate dynamic values using this but not tags dynamically. You need to see if there are any methods to generate tags dynamically.
    One way of doing this is by using Java Mapping and playing around with InputStream and OutputStream.It will work for sure with this.
    Thanks
    Amit

  • XML Beans 1.0.4 parsing the response XML.

    Hi,
    I am reading an XML Document that was sent as a Stream from another Servlet using XMLBeans technology
    objectInputStream = new ObjectInputStream(new BufferedInputStream( postmethod.getResponseBodyAsaStream());
    abcResponseDocument = ABCResponseDocument.Factory.parse((InputStream)objectInputStream);
    This was the error I'm encountering at the first line.
    java.io.StreamCorruptedException: invalid stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737) at java.io.ObjectInputStream.(ObjectInputStream.java:253.....
    Please let me know what more needs to be done in order to get this fixed and also shed some light when this particular exception occurs(like due to internal inconsistency checks etc..) and how handle this.
    Thanks,
    Kartheek

    So,
    Could you please elaborate what needs to be done in this case.I.e., StreamCorruptedException implies that the other part was not sending the data as expected or the processing of XML Document was not properly being done on our side??
    As Suggested by you, I changed the code as follows
    abcResponseDocument = ABCResponseDocument.Factory.parse(postMethod.getResponseBodyAsString());
    Here's the error I'm facing
    org.apache.xmlbeans.XmlException: error: White spaces are required between publicId and systemId. at org.apache.xmlbeans.impl.store.Root$SaxLoader.load(Root.java:762) at org.apache.xmlbeans.impl.store.Root.loadXml(Root.java:1036) at org.apache.xmlbeans.impl.store.Root.loadXml(Root.java:1028) at
    Please advise.
    Thanks,
    Kartheek
    Edited by: 811914 on Dec 25, 2011 10:43 PM

  • Upgraded to IOS 8.  iMessage has changed for the worse, losing messages now.  How can I force iMessage to use SMS for some contacts?

    SMS works well and is generally free for most plans here.  I'd like to be able to send messages via SMS from my iPhone for many of these contacts because something changed in IOS 8 iMessage and now iMessages seem to get lost.   Plus as before they can end up in multiple threads.  This latter issue seems to be worse as well with iOS8 but not sure why. 
    For example one friend set up an iPad with her apple ID and subsequently gave it to her son.  She also has an iPhone. I've been exchanging iMessage/SMS's with her which worked fine until the upgrade.  Then she stopped getting my messages on her iPhone.  Turns out that they were landing on the iPad.  While it may be that she doesn't have things sorted correctly on her iPhone that doesn't change the fact that prior to iOS8 she could get my messages.  So I'd like to designate her and a number of other contacts as SMS only.
    Additionally I am seeing more multiple threads from the same contacts.  Not sure why but it seems to have something to do with iOS 8 sucking in additional email addresses, e.g. @icloud.com and subsequently using these in some messages even though the contact is the same person.  I've tried adding the new email address into the contact card I have on file for that person and this simply resulted in two threads with the same contact name.
    Really what is up with this and why does Messages need to keep track of all this info?  The only requirement to direct a message between to iDevices should be valid Apple ID's on both with a means to reference this (Phone Number, Apple ID Email Address) in the respective contact.  In the absence of this the message should be sent as SMS.

    I have the same problem on iOS 7.0.3. With one particular friend I receive iMessages from her just fine and I can send her iMessages from Mac OS X and Messages on iPad, but Messages on my iPhone keep sending her my messages as Text messages. I send iMessages just fine from the same iPhone. SFChuch, what ios version is your recipient using? Did they sign up on iCloud? I wonder if the problem happens with recipients who are not properly registered on iCloud or some special case like that.

  • XML dig. signatures: how to identify the root XML element?

    Hello, according to tutorials I need to do these two things to sign a XML document:
    ref = fac.newReference("#invoice",
      fac.newDigestMethod(DigestMethod.SHA1, null));
            XMLObject obj = fac.newXMLObject(Collections.singletonList(content),
                    "invoice", null, null);I need to create a general signing proces that will accept any XML file. In this piece of code I have "invoice" strings directly in the source code. Is it possible to replace them with some general strings? For both methods documentation reads "can be null" but I am getting the "XMLSignatureException: javax.xml.crypto.URIReferenceException: ResourceResolverException: Could not find a resolver for URI null and Base null".
    I have also tried "/" - this should be URI for the root element in the XPath. This leads to "URIReferenceException: java.lang.NullPointerException".
    I could "pre-parse" the XML and find the root element name but there must be "cleaner" method.
    Thanks in advance

    Hello, according to tutorials I need to do these two
    things to sign a XML document:
    ref = fac.newReference("#invoice",
    fac.newDigestMethod(DigestMethod.SHA1, null));
    XMLObject obj =
    fac.newXMLObject(Collections.singletonList(content),
    "invoice", null, null);
    ed to create a general signing proces that will
    accept any XML file. In this piece of code I have
    "invoice" strings directly in the source code. Is it
    possible to replace them with some general strings?
    For both methods documentation reads "can be null"
    but I am getting the "XMLSignatureException:
    javax.xml.crypto.URIReferenceException:
    ResourceResolverException: Could not find a resolver
    for URI null and Base null".
    I have also tried "/" - this should be URI for the
    root element in the XPath. This leads to
    "URIReferenceException:
    java.lang.NullPointerException".
    I could "pre-parse" the XML and find the root element
    name but there must be "cleaner" method.I am not quite sure what you are trying to do. What do you mean by "replace
    them with general strings"? If all you want to do is sign the entire contents of
    an arbitrary XML document, you should probably create an enveloped signature. For
    that you need to specify a URI of "" when creating your Reference (this indicates
    the root of the document) and also specify an enveloped Transform. There is
    an example of how to do this in the XMLDSig Tutorial (the genEnveloped example):
    http://java.sun.com/javase/6/docs/technotes/guides/security/xmldsig/XMLDigitalSignature.html

  • How open and edit the coherence.xml file?

    How can I open and edit the coherence.xml file?
    I cannot find the coherence.xml file in the coherence.jar package.
    Thank you,
    June

    If you are intent on changing the coherence.xml file, then you could use the JAR command (that comes with Java) to extract the coherence.xml file from coherence.jar and the later repackage the coherence.jar file using the udpated coherence.xml file, e.g.:
    C:\java\opt\coherence-331\lib>jar -xvf coherence.jar tangosol-coherence.xmlextracted: tangosol-coherence.xml>
    Instead of using JAR, on Windows you can associate the .JAR, .WAR and .EAR extensions with WinZip and use it to access / modify the contents of JAR files.
    However, the suggested approach is as follows, and does not include any changes to the tangosol.jar file:
    The tangosol-coherence-override-dev.xml file can be found in the coherence.jar file. After editing this file (in this case to define a unique value for the port system-property value for the multicast listener), save the file and add it to the server's classpath. When the server is executed, the values in the tangosol-coherence-override-dev.xml file will override any corresponding settings in the tangosol-coherence.xml file.Peace,
    Cameron Purdy | Oracle Coherence

  • Using external XML document to update / change text fields inside of published captivate output.

    Hello
    I currently have a project where the client has requested to have the ability to update the text fields inside the project at a later date.
    This is due to the nature of the content changing rather rapidly, i would like to set this up so the client can manage this them selfs.
    What would the best way to do this be?
    I'm thinking XML, an external XML sheet were by Captivate imports the text from this XML sheet and then displays it within the specific text fields contained within the captivate output.
    This way the client would just update the external XML document(cut and paste the text in) and then the text would be dynamically updated in the published Captivate document.
    any help would be amazing !
    Thanks in advance
    Nick

    Hi Lieve
    But isn't this thread more about an end user having an ability to change text after the Captivate has been published and delivered? I could see where that might be useful if making changes then publishing to create a new output. But I'm interpreting that the situation here is that a Captivate project has been published and delivered, and some mechanism is desired that allows the recipient to modify an external XML file to influence changes in the already compiled Captivate output.
    Cheers... Rick

  • Problem with the deleted instance of the subform in the generated XML

    Hi
    I have a dropdown and it has 3 values in it and I have 3 subforms(min count=0, max count=1).
    Based on the selection of the dropdown
    If value is 1, I am adding an instance of subform 1
    If value is 2, I am adding an instance of subform 2 and deleting the instance of subform 1
    and so on.
    This functionality works fine.
    The question is when i generate XML using "submit by email" button, the generated XML also contains the tags of the subforms which are not present in the form and got deleted. They appears as an empty tag in the xml which i do not want in that file if that subform instance got deleted.
    Pls. Help
    Thanks
    Abhiram

    Hi,
    As you know the binding is set in the Object > Bindling palette. You can't change the binding using script at runtime, therefore if objects have a binding Name/Normal or Global, then they will participate in the XML data processing.
    I don't think you can change this in LC Designer/Acrobat. You might be able to process the XML file once you have received it.
    Good luck,
    Niall

  • Would you put XML and HTML files stored in the database as files?

    Hi,
    Basically that is my question. My criteria is that I will be given some XML files, I need to save the XML file somewhere for future reference. However I also have to store when it was registered and so on.
    Would you install this in the database? Or you would just store the path where it is deployed?
    Regards,
    Sim085

    Hi,
    Basically that is my question. My criteria is that I
    will be given some XML files, I need to save the XML
    file somewhere for future reference. However I also
    have to store when it was registered and so on. So the XML won't be changing unless the registration date is updated?
    A file modification time could give you the same effect.
    Would you install this in the database? Or you would
    just store the path where it is deployed?I'd favor the latter for the sake of an argument.
    If you put it in the database, you wouldn't be able to query for the XML except by ID or registration date. Not much point in having it there.
    %

  • XML Namespace in WebService Request/Response

    Hi all,
    I have a question regarding xml namespace usage in wsdl and the corresponding request/response messages.
    I have already browsed quite some articles about xml namespaces as well as some forum threads, but I am still not sure.
    I have the following part of a wsdl document (generated by Integration Directory), defining a targetnamespace.
    u2026
    <wsdl:types>
        <xsd:schema targetNamespace="http://www.dorma.com/sap/xi/finance"
                             xmlns="http://www.dorma.com/sap/xi/finance"
                             xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:element name="DebtorGetDetailResponse" type="Z_BAPI_DEBTOR_GETDETAIL_Response"></xsd:element>
            u2026
            <xsd:complexType name="Z_BAPI_DEBTOR_GETDETAIL_Response">
                <xsd:sequence>
                    <xsd:element name="DEBITOR_COMPANY_DETAIL" type="BAPI1007_5" minOccurs="0">
                    </xsd:element> u2026
                </xsd:sequence>
            </xsd:complexType>
            u2026
        </xsd:schema>
        u2026
    </wsdl:types>
    u2026
    In my understanding, all types defined in the schema section of a wsdl document will be in the targetnamespace, if defined.
    Therefore the element DEBITOR_COMPANY_DETAIL would be in the namesapce
    http://www.dorma.com/sap/xi/finance
    However, the ABAP proxy generates a response message like follows,
    where only the root element is in this namespace and the child elements are in the global namespace:
    <?xml version="1.0" encoding="utf-8"?>
    <ns1:DebtorGetDetailResponse xmlns:ns1="http://www.dorma.com/sap/xi/finance"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <DEBITOR_COMPANY_DETAIL>
            u2026
        </DEBITOR_COMPANY_DETAIL>
        u2026
    </ns1:DebtorGetDetailResponse>
    Do I have a wrong understand of the wsdl (xml schema) or is this an erroneous behavior?
    The problem is that some 3rd-party software web service module does not accept
    the response message as not complient with the respective wsdl document.
    Any input is appreciated.
    Thanks
    Hans
    Edited by: Hans-Jürgen Schwippert on Oct 1, 2008 12:02 PM

    I have the same problem. I am trying to connect to a webservice running on IBM websphere but it doesn't accept the xml in my request. It appears to be the same namespace issue.
    Did you ever find a solution for this?
    Is it a valid webservice call if you omit the namespace for an element or is this a bug in the Adaptive WS implementation?
    Web Dynpro web service model generated request:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
    <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
    <enableSession>true</enableSession>
    </sapsess:Session>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    look between these lines -
    <ns1:tamKontrolleraKontoLastAnrop xmlns:ns1="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
    <AnvandarNamn>30039647</AnvandarNamn>
    </ns1:tamKontrolleraKontoLastAnrop>
    look between these lines -
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    As you can see the tag
    <AnvandarNamn>30039647</AnvandarNamn>
    is missing a namespace.
    It should be
    <ns1:AnvandarNamn>30039647</ns1:AnvandarNamn>
    Using a third part tool called Soapui i generate this request that works:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tam="http://schemas.fora.se/modell/tam/1.0/TAM_Data">
       <soapenv:Header/>
       <soapenv:Body>
          <tam:tamKontrolleraKontoLastAnrop>
             <tam:AnvandarNamn>30039647</tam:AnvandarNamn>
          </tam:tamKontrolleraKontoLastAnrop>
       </soapenv:Body>
    </soapenv:Envelope>

Maybe you are looking for