Receiving XML message

Hi,
can any one tell me how to receive an xml message from a different server(which will be sending the xml message) using plsql
Thank,
Sudheer

Big5 is an encoding for Chinese characters. The problem seems to be that the XML parser either thinks that the document is in UTF-8 encoding or it is trying to convert the Big5 encoding into UTF-8. and that where it is failing.
Can you try to convert the document from Big5 to UTF-8 explicitly and then parse the UTF-8 xml file?
The logic to convert a Big5 file to UTF-8 is explained here http://www.linuxforum.net/chinese/develop/java.html
I think once the document has been converted to UTF-8 Xerces should have no problem in parsing it.
Also make sure that the encoding of the xml document is not changing to something else when the file is getting downloaded over http.
Hope this helps. I wish I could have tested the code in the link myself...but sorry I don't have a Big5 enabled computer here in India :-)
regards,
Abhishek.

Similar Messages

  • Creating ABAP webservice to receive XML message

    Hi All,
    I have a requirement to create an webservice/application in SAP ECC6 system which will receive XML message through a http request, parse the XML and update the data in some Z tables.
    Does anyone have any idea how to achieve that ?
    Do I need to write a BSP application/ WebDynpro for ABAP application ?
    Any input is highly appreciated.
    Points will be rewarded for helpful answers.
    Thanks,
    Atanu

    Hi Atanu,
    You do not need BSP/WebDynpro for this. Please go through the links below.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46d6c25d-0b01-0010-06a9-8e8218753c02">1. SAP Webservice</a>
    <a href="/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap Consuming Web Service from ABAP</a>
    Please reward points if you find them useful.
    Cheers,
    Sougata.

  • Deserialize_header error webserivce while receiving XML message

    Hi,
    I am using weservice. When i check in Payload Trace in SOAMANAGER. I can see the proper Request and Response Payload.
    However there is a deserialize_header error in CL_SOAP_MESSAGE_11 at position id 1with internal error id 14.
    It says there is an unexpected element.
    Why is this error coming?
    Is there some configuration that is needed to receive XML message?
    Thanks,
    Girishkumar Hegde

    The problem is solved now.
    There was an error in the incoming message

  • Send Receive xml messages

    Hi all,
    I want to find the best way to exchange xml messages with third party system (eg DI Server,  B1iSN).
    Thanks,
    Vangelis
    Edited by: Vangelis Kanellopoulos on Oct 9, 2010 5:34 PM

    I use XML Island on the Browser end.
    Browser
    <XML id="xmlDSO"></XML>
    xmlDSO.async = false;
    xmlDSO.load("Source.xml");
    /The source could be jsp as well but it should return xml in html/text format. SHould not have any HTML tags.
    Do the processing using IE XML
    Then
    <FORM>
    <INPUT NAME=xmlFIELD>
    </FORM>
    In
    function subForm() {
    form.xmlFIELD.value = xmlDSO.xml
    form.submit()
    In the servlet you should be able to receive the xml in a String.
    Which you can process.
    I have go so far as the getting XML into DOM.
    But I started getting into problem once I started using XPATH on the DOM.
    XPATH only takes Node as input. I need to get the DOM so I can start passing the NODE.
    If you don't need to use XPATH, you should be able to get to the stage where I am.
    -Krishna

  • Read XML message from a CLOB

    We are currently receiving XML messages from a business partner that goes
    through a transformation/parser first to make sure the xml document was
    in MISMO form (Mortgage Industry Standard Message Organization). Then the
    document is stored in a clob in a table. The document is stored Without
    the tags. We are storing these XML messages into a CLOB datatype for
    later processing. I want to read the CLOB and then parse out the
    individual fields to store into a table. What is the best way to
    accomplish this in PL/SQL? Here is one sample record:
    <MORTGAGEDATA>
    <APPLICATION LoanPurposeType="OTHER">
    <LenderCaseIdentifier>3631681</LenderCaseIdentifier>
    <LendersBranchIdentifier>2966448</LendersBranchIdentifier>
    </APPLICATION>
    <PROPERTY PropertyUsageType="Primary">
    <Address1>1335 test</Address1>
    <City>las cruces</City>
    <State>NM</State>
    <PostalCode>88001</PostalCode>
    </PROPERTY>
    <SUBJECTPROPERTY>
    <SubjectPropertyEstimatedValueAmount>69000</SubjectPropertyEstimatedValueAmount>
    </SUBJECTPROPERTY>
    <BORROWERRECONCILEDLIABILITY LiabilityType="HelocSubjectProperty">
    <LiabilityUnpaidBalanceAmount>0</LiabilityUnpaidBalanceAmount>
    <LiabilityMonthlyPaymentAmount>0</LiabilityMonthlyPaymentAmount>
    </BORROWERRECONCILEDLIABILITY>
    <BORROWERRECONCILEDLIABILITY LiabilityType="MortgageLoanSubjectProperty">
    <LiabilityUnpaidBalanceAmount>0</LiabilityUnpaidBalanceAmount>
    </BORROWERRECONCILEDLIABILITY>
    <BORROWER>
    <FirstName>scooby</FirstName>
    <MiddleName/>
    <LastName>doo</LastName>
    <NameSuffix/>
    <MothersMaidenName>velma</MothersMaidenName>
    </BORROWER>
    </MORTGAGEDATA>
    NOTE: I have tried to use DBMS_XMLQUERY and it comes out like this using a
    stored procedure called printclob: When I do this the data is put into
    one field called xml_app_msg. The problem is how do I reference the
    individual fields like FirstName and so on to store in another table? Can
    I apply a stylesheet and if so, how?
    Or do I create an object type called xml_app_msg with the fields lastname
    and so on?
    -- The table is raw_xml_msg_tbl and the field with the stored infomation is
    xml_app_msg.
    set serveroutput on size 50000
    declare
    queryCtx DBMS_XMLquery.ctxType;
    result CLOB;
    begin
    queryCtx := DBMS_XMLQuery.newContext('select xml_app_msg from raw_xml_msg_tbl where app_id = :APP_ID');
    -- DBMS_XMLQuery.clearBindValue(queryCtx);
    DBMS_XMLQuery.setBindValue(queryCtx,'APP_ID','LT1001');
    -- get the result..!
    result := DBMS_XMLQuery.getXML(queryCtx);
    -- Now you can use the result to put it in tables/send as messages..
    printClobOut(result);
    DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
    end;
    OUTPUT:
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <XML_APP_MSG><MORTGAGEDATA>
    <BORROWER>
    <FirstName>Falls</FirstName>
    <MiddleName/>
    <LastName>Water</LastName>
    <NameSuffix/>
    <SSN>123-45-6789</SSN>
    </BORROWER>
    </MORTGAGEDATA>
    </XML_APP_MSG>
    </ROW>
    </ROWSET>
    null

    I parse the XML doc into a domdocument and then loop through using xpath.valueof to pull the individual values from the nodes and then build a generic insert. It works quite well with a small number of columns. I'm not sure how it would work with a lot of columns. You can get code examples from Steve Muench's book "Developing Oracle XML Applications".

  • Handling multiple XML message types in a webservice

    My below scenario is
    I have a webservice that receives XML messages from third party. The webservice populates 3 database tables through Mediator and DBAdapter from these XML files. Data for each table comes in a single XML file. How will I design the single werbservice to receive all the three different types of messages. eg: Customer, Order, OrderItem.
    My WSDL is given below:
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <wsdl:definitions
    name="receiveData"
    targetNamespace="http://xmlns.oracle.com/sca/soapservice/receiveData"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:inp1="http://xmlns.oracle.com/pcbpel/adapter/db/top/Order"
    xmlns:tns="http://xmlns.oracle.com/sca/soapservice/ESTAProcessing/receiveData" >
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/Order" schemaLocation="xsd/Order.xsd" />
    </schema>
    </wsdl:types>
    <wsdl:message name="requestMessage">
    <wsdl:part name="request" element="inp1:Order"/>
    </wsdl:message>
    <wsdl:portType name="execute_ptt">
    <wsdl:operation name="execute">
    <wsdl:input message="tns:requestMessage"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    Any similar example will be really good. Let me know if it does make sense. Here what I am looking for is whether a single operation can handle all three types of XML schema defintions and if yes how to put that in the WSDL

    Technically you can do with XSD switch option however you should rethink towards your design of accepting three different message in single web service. specially the case you have taken customer and order.

  • XML messages eamil (Problem)

    http://www.flickr.com/photos/25222280@N03/
    Hi, All
    We are using XI 3.0 Support package: 20
    I can expalin the probelm step by step please help me about thanks in advanced
    Step: 1
    I am trying to get XML message from XI system messages shows in SXMB_MONI with some read flags
    Step 2
    SAPconnect working fine... I can send email anyone internaly through so01 so connections works
    Step 3
    Goto ALRTCATDEF and create alert category which is XDV_ALRT then goto RWB and click Alrt configuration, select classification and click Roules its does show my user ID and Alert cagt. there
    Then I received XML messages my eamil with Attachment file and subject: Alert, which is I didn't define anywhere... I didn't know where this messages comes from?
    Step 4: I put some others users using alrtcatdef tr such as make_m and amer_J and my user id in it as well but only I am getting these messages not others I double check user profile and roles all pretty much same look like...
    My simple question is that I want to setup XML messages to some users through email thats it
    I am sending some screen shot I thing someitng is missing or I am getting some wrong please look at this
    http://www.flickr.com/photos/25222280@N03/
    Thanks

    Hello Aamir
    Thanks for very fast responsed, Aamir when I goto SXMB_MONI first screen comes up "Monitor processed for XML messages"
    First Screen
    view is = Defaul
    Status group is empty
    Standard selection criteria  (from date to date = I just define date couple of days ago!)
    Sender and receiver all fields are empty
    2nd Screen
    When I execute its shows xml messages with black flag and Red dot all Red dot comes with attachemnt eamil
    in this screen they have some button like "display", "error information" "referencing infromation" "reset" 'shows"
    with Error look like that before I click on it
    @5C\QSystem Error - Restart Not Possible@     @5F@     02.04.2008     02:14:39 02.04.2008     02:14:43                    MOL_NQA tp://www.abc.com/MOL/OnlineStore     O_msgIF_CHECK_BILLING
    dbcinqa     http://www.mitel.com/MOL/OnlineStore     I_msgIF_CHECK_BILLING     "Current Status"     @5F@     @5F@     @5F@               6          
    When I click on that 3rd screen comesup with some bottons like windows1 windows2, ....
    with RED error messages in right side....
    that error messages comes with my attachment....
    I didn't see anything scenarios, how may I check that where is it? please let me know
    My name is also Aamir
    Thanks

  • Digitally Signing XML messages

    My servlets receive XML messages and after processing and filling in some values, Digitally Sign the XMLs and send over secure connection to another server. How could possibly this be performed?
    Please support your answer with code samples.
    Awaiting Response

    Hi,
    You may need to sigm in, but try this (it's free)
    http://207.68.162.250/cgi-bin/linkrd?_lang=EN&lah=7ffae4f4a6000dbf55d82280194c86c1&lat=1031873112&hm___action=http%3a%2f%2fwww%2einformit%2ecom%2fcontent%2findex%2easp%3fproduct_id%3d%7bC5920864%2d705B%2d45D3%2dBF71%2dC1E18270319A%7d%26amp%3b090102
    yes, bit of a mouthful, isn't it?
    best
    kev
    (probably a digital signature)

  • XML messages Filter in RBW

    Hello
    In XI 30, look like very small question about RWB container variables filter...
    Simple how to Filter XML error messages in RWB (Alert configure), I couldn't find that answer anywhere... is anyone has idea
    We are receiving XML messages in E mail and (To Interface: continair variable) shows value "Acknowledgement" thease messages we don't need to display, so how to Filter it in RWB or some other palce....
    Please Advised, at lest little advise
    Thanks a lot

    Hi,
    Sure, I can exaplin this clearly!
    Question #1
    In (Exchange Infrastructure 3.0 SP20), setup XML messages (Error) and all error messages goes E mail + blackbarry, We receiving of 90% messages for "Acknowledgment" and display result (To Interface: Acknowledgment) so we would like to Filter it thease messages
    Question #2
    I am another question related same issue
    In SXMB_MONI shows list of XML error messages: and its also display under SOAP Header (Error)
    <SAP:Stack>No receiver could be determined</SAP:Stack>
    I would like to display above line in E mail, but I couldn't found any continair variable or may be it has some other procedure
    I am sending Screenshot to see clear view...
    http://www.flickr.com/photos/25222280@N03/2701501246/sizes/o/
    Thanks for your time... and really appriciated it for fast response
    J

  • Send XML Message via HTTP and Receive Response

    Hello,
    We have a scenario where we need to update Currency Exchange Rates in R/3 via a 3rd party called Oanda.  I'd like to use XI for this Interface, if possible. 
    Basically, we need to send XML over HTTP.  Here's the URL and the XML we need to use for our POST (I'll need to perform the look-up for about 15 currency codes - I plan on using a BPM process to loop through each currency code specified in a flat file):
    http://www.oanda.com/cgi-bin/fxml/fxml?fxmlrequest=<CONVERT><CLIENT_ID>TestAccount1</CLIENT_ID><EXCH>USD</EXCH><EXPR>CAD</EXPR><DATE>03/25/2008</DATE></CONVERT>
    And the reponse looks like this:
    <RESPONSE>
      <EXPR>CAD</EXPR>
      <EXCH>USD</EXCH>
      <AMOUNT>1</AMOUNT>
      <NPRICES>1</NPRICES>
      <CONVERSION>
        <DATE>Mon, 24 Mar 2008 20:00:00 GMT</DATE>
        <ASK>1.0257</ASK>
        <BID>1.0251</BID>
      </CONVERSION>
    </RESPONSE>
    I plan on mapping each reponse to BAPI_EXCHRATE_CREATEMULTIPLE, using BPM.
    So my question is this:  Should I use the HTTP adapter for the out going POST to Oanda?  If so, would the HTTP adapter be consider the sender or the receiver?  Also, how would the XML message be automatically appended to the end of the URL (i.e., after the fxmlrequest parameter)?  I guess I'm a little confused on how to use the HTTP adapter...  Are there any blogs that discuss this type of scenario?
    Thanks,
    Matt

    Hi guys,
    I have few concerns for setting up this scenario.
    1). I have created a data type for request mapping, and teste the mapping.
    The output looks like below:
      <?xml version="1.0" encoding="UTF-8" ?>
      <ns1:MT_CONVERT xmlns:ns1="http://test.com/ExchngRate">
       <CONVERT>
         <CLIENT_ID>test</CLIENT_ID>
         <EXPR>CAD</EXPR>
         <EXCH>USD</EXCH>
         <DATE>10/21/2009</DATE>
         <AMOUNT>1</AMOUNT>
       </CONVERT>
      </ns1:MT_CONVERT>
    How to pass only
      <CONVERT>
         <CLIENT_ID>test</CLIENT_ID>
         <EXPR>CAD</EXPR>
         <EXCH>USD</EXCH>
         <DATE>10/21/2009</DATE>
         <AMOUNT>1</AMOUNT>
       </CONVERT>
    to the receiver HTTP adapter.
    2) I am using URL address in the receiver HTTP adapter.
    Target Host: www.oanda.com
    Path Prefix: cgi-bin/fxml/fxml?fxmlrequest=
    What is will be Service Number?
    Looking forward for you help. Your help is greatly appreciated.
    Thanks,
    Namadev
    Edited by: Namadev Chillal on Oct 21, 2009 5:35 PM

  • Implement a SOAP Request in an SSIS Package that sends a SOAP Message (Env) with Authentication Info, Receives XML FIle?

    We need a small SSIS package to pass a SOAP message to a SOAP server and receive the response xml message. 
    We have the SOAP Endpoint, SOAP Action, and SOAP Message (which contains authentication elements). They work in a Talend Data Integration job (using
    Talend's tSOAP component). A screenshot showing the Talend job and the configuration of the tSOAP component
    is attached.
    We need to implement the same thing in a Microsoft SQL Server 2012 SSIS package but haven't been able to get an SSIS Web Services task to work. 
    We haven't been able to configure it to pass the SOAP Action and SOAP Message.  
    How should this be accomplished in SSIS?
    kholberger

    I guess I was not clear.  The Talend job works perfectly (and it took only a few minutes to configure). 
    I need to replicate the SOAP request function in an SSIS package.  I've been trying to configure an SSIS Web Services Task to do that without success. 
    The SSIS Web Service Task asks for the .wsdl file, which I provide (though the Talend component
    does not ask for it), but the SSIS WST does not ask for the SOAP Action or SOAP message.  The target web service is protected by a security gateway that rejects the SSIS WST request.  Somehow, the Talend tSOAP component sends the
    SOAP message, which contains the security definition and authentication credentials (you can see part of that in the screen shot) which the endpoint accepts.
    The question is: "How does one implement a SOAP web service request in an SSIS package that sends the SOAP Message".
    Thanks.
    kholberger

  • How to convert XML message in text format by using HTTPS-Receiver adapter

    Is it possible to convert XML message in text format when we use HTTPS as the receiver adapter?
    If yes, how?
    Thanks!
    Mrudula

    Hi Mrudula,
    As far as i know there are no content conversion methodology for HTTPS as the recevier adapter.
    Also you can read through these links to confirm the same:
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/sap_xi/sapximst30.htm
    SAP NetWeaver - XML Communication Interface (CA-XML) [original link is broken]
    Regards,
    abhy
    note: reward the helpful.

  • Encrypt xml message in receive pipeline

    Hi,
       I am new to biztalk .
       I have a requirement where i need to encrypt the xml message in the receive pipeline.I know i have to develop a custom pipeline component to do this but i don't know in which stage of receive pipeline should i place this component in?  
    please advice .
    Thanks in advance 

    Hi Rose,
    To decrypt the message in receive pipeline and you will place the custom pipeline component in Decode stage
    of the receive pipeline and encryption will be done at send pipeline and you will place the custom pipeline component in Encode stage of the send pipeline.
    Decryption at receive pipeline:
    Encryption at
    send pipeline:
    BizTalk
    Server 2013: Encrypting and Decrypting a Message
    You can also refer the MSDN articles on how to decrypt and
    encrypt message in BizTalk.
    How to Configure BizTalk Server for Receiving Encrypted Messages
    How to Configure BizTalk Server for Sending Encrypted Messages
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Receiver of an XML message

    Hi,
    During  inbound processing When the receiver of an XML message is determined
    Thanx ,
    Somenath

    Hi,
    It is Receiver Determination.
    A Receiver Determination defines one or more receivers for a sender and an outbound interface. Receiver Determination is to specify which receivers a message is to be sent to.
    Enhanced Receiver Determination:
    It is used to determine your receivers dynamically using a mapping program.
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/frameset.htm
    ---Ram

  • Sending an XML message and using proxy at receiver end

    hi all,
    please suggest me the steps to be followed in order to send a XML message and accepting this message using proxies.
    please help me out with detailed procedure.
    thanks+regards,
    Ujwalkumar

    Hi UjwalKumar,
    Follow this link:
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    This blog gives an excellent description of 'FILE to Proxy' scenario.
    what you need is XML to proxy...i.e. your scenario is very similar to this one...only diffrence is  that  , you wont be using FCC .since your source msg is in XML format..
    Hope this helps..
    Regards ,
    Sushil

Maybe you are looking for

  • Ipod not recognized by Windows or ITunes (Ipod updater)

    My Ipod Nano was being charged when my 2 year old hit the reset button on the computer. After the computer rebooted I found out what happened. Now my Ipod just flashes the Apple logo . . . it does nothing else. Neither windows nor Itunes recognizes t

  • Phone numbers not formatting properly

    I just got a new iPhone 4S.  The numbers in my address book don't seem to be formatting properly.  They just have a string of numbers, e.g.., 6025551212, rather than the normal format of area code in parentheses and a hyphen in the number. This goes

  • Looking for desktop calendar & contacts (not Outlook, Yahoo etc)

    I just bought my first ipod Touch. I'm looking for a stand alone calendar and address book that will sync with my Touch. I don't want to use Outlook, Gmail, Yahoo or anything like that. I use PC's with Windows XP.

  • Moving average price

    Hai all MM gurus, While invoice posting, system is showing the error message " Moving average price is negative for the material ". How to post the invoice .

  • New Zen Connectivity Quest

    Im a Zen Vision M owner and very happy with the product. Its just a bit on the large size on some occasions so Im looking to buy the new Zen 6Gb model when it is released in the UK. I'd like to know if audio and or video can be output to external spe