Write XML in a context field

Good morning forum
Have to implement the following solution.
In a Web Dynpro component I am consuming a web service, and reading an XML, it is now functioning properly.
But after the XML data is loaded into context, I must record all xml content in a context field.
I implemented the following logic:
Request_ITF_O_S_CONSULTA_CADASTRO requestMO = wdContext.currentRequestWSElement () modelObject (.);
requestMO.wdSetInvocationLogEnabled (true);
String xml = requestMO.wdGetResponseLog ();
However the variable "XML" is blank.
Does anyone have any tips on how to do this?

Hi Carlos,
have you even executed the the operation of your WS Model? I can't see that from your code. And ofcourse you have to set the LogEnabled to true before you execute the operation.
Here is some sample with explanations:
Request_NumberToWords requestMO = wdContext.currentRequest_NumberToWordsElement().modelObject(); 
if (logger.beDebug()) {
  requestMO.wdSetInvocationLogEnabled(true); //switch on logging for this model object
try {
  requestMO.execute();
  wdContext.nodeResponse().invalidate(); //update context from model
  } catch(Exception ce) {
  wdComponentAPI.getMessageManager().reportException(ce.getMessage(), false);
logger.debugT(requestMO.wdGetRequestLog()); //request log (HTTP header + SOAP request)
logger.debugT(requestMO.wdGetResponseLog()); //response log (HTTP header + SOAP response)
logger.debugT(requestMO.associatedModelClassInfo().getModelInfo().toString()); //model metadata in XML format
logger.debugT(requestMO.toString()); //model object tree in XML format (= model context node content)
Regards,
Tobias

Similar Messages

  • XML Mapping with B1 Field

    Hi Expert,
    can anybody know how to identify / map the xml document with b1 field. I did not found any link / documentation on this.
    Thanks,
    Tushar

    Hi Tushar
    You will need to be more specific. Do you want an XML layout to use for importing or exporting SAP Business One objects? Maybe give us details of the specific object. Most DI API objects have a write to XML which will give you the layout for that object. You can also refer to the REFDI.CHM file under the SDK Help folder.
    Kind regards
    Peter Juby

  • MICR font not displayed in PDF on SUSE Linux Server for Check Writer (XML)

    We are generating checks by running the Check Writer(XML) concurrent request and are not able to see MICR fonts on the Check. We downloaded the free version from IDAutomationSMICR.ttf and the fonts were registered under /usr/local/fonts/micr directory. I registered in APPS and uploaded the file IDAutomationSMICR.ttf. Am I missing any steps. The DBA's have registered the fonts under /usr/local/fonts/micr on SUSE Linux Server . The custom Checks are generated but no luck with the fonts. Please advise. Can I download MICR fonts other than IDAutomation site? Appreciate your response.
    Thanks,
    Hari

    I use version 11i, so the steps are probably different. Download a font file (gnuMICR for me). Extract it to a location of your choice on your operating system.
    Follow these steps to load the MICR font to the server. (Step 11 was missing in some of the metalink documents in late 2007. I think Jan. 2008 will be OK).
    1.     Log in as XML Publisher Administrator.
    2.     Navigate to Administration->Font Files->Create Font File.
    3.     Fields are Font Name and File. For Font Name choose any descriptive name. File will browse your PC to locate the font file.
    4.     Navigate to Font Mappings->Create Font Mapping Set.
    5.     Mapping name is the name you will give to a set of fonts. [MICR Font]
    6.     Mapping code is the internal name you will give to this set. [MICR]
    7.     Type: 'PDF Form' for PDF templates. 'FO to PDF' for all other template types.
    8.     Create Font Mapping (this allows you to add multiple fonts to a set).
    9.     Font Family is the exact same name you see in Word under Fonts. If you don't use the same name the font will not be picked up at runtime. [GnuMICR]
    10.     Style and weight must also match how you use the font in Windows. Normal and Normal are good defaults. [Normal, Normal]
    11.     DO NOT enter Language or Territory
    12.     Choose a value for Font Type. [Truetype]
    13.     Search for the Font you just created in step 3. [GnuMICR]
    14.     Navigate to Configuration -> FO Processing -> Font Mapping Set. Can also be done at data def and template level under Edit Configuration. Hierarchy is Site-> Data Def -> Template.
    15.     Select your new mapping set.
    16.     Make sure the font is not referenced under File->Properties->Custom in the RTF template file.
    17.     Select a temporary directory on your concurrent processing node (Configuration -> General). This needs to be a private area not shared by other processes, read writeable by the applmgr (owner of the $APPL_TOP file system). It should be fairly large 5 GB or 20x larger than any datafile being used. The fonts will be downloaded here the first time they are used.
    18.     Also at this site level select your font mapping set.
    19.     Upload a template that uses your special font and test using preview.

  • Check Writer (xml) is not showing current accrual hours

    Hi,
    We are on EBS 11.5.10.2, we are going live with new accrual plan of category Vacation, when we run the check writer (Xml) process it does not show the current period accrual , it does show correct Net accrual hours. What do I need to do to get this working.
    Thank you.
    Edited by: 924406 on Jun 19, 2012 3:22 PM

    Do you have the data field in the templae set right?
    Attach the template here if you can after taking out any sensitive company information you might have on it.

  • Segments in Check Writer XML data source

    Hi,
    Can anyone tell me what are the Segments 1-10 in the XML data source that I see for Check Writer (XML) when I use "Third Party Checks". I tried populating few fields in the Entry values for the corresponding element but that didn't work.
    We need an additional field to populate some reference number that needs to be printed on the check and we would like to use one of these segments since it eliminates the customization.
    - <EMPLOYEE_THIRD_PARTY_PAYMENTS>
    <ORG_PAYMENT_METHOD_ID>63</ORG_PAYMENT_METHOD_ID>
    <PERSONAL_PAYMENT_METHOD_ID>103704</PERSONAL_PAYMENT_METHOD_ID>
    <CHECK_DEPOSIT_NUMBER>166986</CHECK_DEPOSIT_NUMBER>
    <SEGMENT1 />
    <SEGMENT2 />
    <SEGMENT3 />
    <SEGMENT4 />
    <SEGMENT5 />
    <SEGMENT6 />
    <SEGMENT7 />
    <SEGMENT8 />
    <SEGMENT9 />
    <SEGMENT10 />
    <PRE_PAYMENT_ID>4077062</PRE_PAYMENT_ID>
    <VALUE>151</VALUE>
    <PREPAYMENT_ASSIGNMENT_ACTION>1363042534</PREPAYMENT_ASSIGNMENT_ACTION>
    <ORG_PAYMENT_METHOD_NAME>TP Bethesda</ORG_PAYMENT_METHOD_NAME>
    </EMPLOYEE_THIRD_PARTY_PAYMENTS>

    Ok..found it. Those are the bank details.

  • Check Writer (XML) - where to customize?

    Hi everyone,
    I have to add mailstop to the check writer (xml) process and it looks like it pulls the information from what is archived. Unfortunately, mailstop is in our system, but is not included in the archived data.
    I feel as if I'm not the only person who has to add an additional field to their checks, so how have you done this?
    At this point I am unable to even find the name of the package that pulls in the data to produce the XML output.
    Can anyone out there let me know how their developers have added additional data to use in the check output?
    Thank you in advance!
    -CC

    Hi,
    Please see if this thread helps.
    How Can We Change Number of Earnings on XML Checkwriter
    How Can We Change Number of Earnings on XML Checkwriter
    Regards,
    Hussein

  • XMLStreamException: Unable to write XML string which starts with the illegal XML char 0x0000

    Hi,
    I am trying to run a WebLogic 8.1 Workshop webservice using Tuxedo Controls. I
    am running in to an XML error:
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    If i look into the application server log file, It says:
    <FML32Deserializer::deserializeInteger>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer> <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <Exception deserializing field BUFFERSIZE, exception: weblogic.jws.control.ControlException:
    Error getting field BUFFERSIZE as a Integer, exception: 4 (FNOTPRES)>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer> <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <FML32Deserializer::deserializeField - Name=ROWID, type=class java.lang.String>
    But these fields are in the field table class file generated using java weblogic.wtc.jatmi.mkfldclass32

    I am pasting the response i get while i try to run this web service using WebLogic
    Workshop.
    Anyones help would be much appreciated.
    Thanks,
    Deepak
    Service Response
    Submitted at Friday, December 19, 2003 1:25:00 PM CST
    <error>
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    com.bea.wlw.runtime.core.request.ResponseValidationException: com.bea.xml.marshal.XmlEncodingException:
    Error writing XML stream: com.bea.xml.pure.XMLStreamException: Unable to write
    XML string which starts with the illegal XML char 0x0000
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:35)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:242)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
    at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000
    at com.bea.xml.marshal.MarshalContext.error(MarshalContext.java:140)
    at com.bea.xml.marshal.MarshalContext.writeCharacterData(MarshalContext.java:178)
    at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:79)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:358)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
    at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writePart(MimeXmlResponse.java:105)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writeOutputPart(MimeXmlResponse.java:97)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:31)
    ... 22 more
    </detail>
    </error>
    "Deepak" <[email protected]> wrote:
    >
    >
    >
    Hi,
    I am trying to run a WebLogic 8.1 Workshop webservice using Tuxedo Controls.
    I
    am running in to an XML error:
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing
    XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which
    starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    If i look into the application server log file, It says:
    <FML32Deserializer::deserializeInteger>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer>
    <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <Exception deserializing field BUFFERSIZE, exception: weblogic.jws.control.ControlException:
    Error getting field BUFFERSIZE as a Integer, exception: 4 (FNOTPRES)>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer>
    <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <FML32Deserializer::deserializeField - Name=ROWID, type=class
    java.lang.String>
    But these fields are in the field table class file generated using java
    weblogic.wtc.jatmi.mkfldclass32

  • How to write the description of a field in EBP screen.

    Hi All,
    i need to write the description of the field along with its value while clicking the f4.
    If the field displays G/L account value as 5000 and description as XYZ- i need to write the descritiption of
    along with the value.
    Could anybody can give some idea of how to do it in SRM5.0.
    Appreciate your reply.
    SNMPkumar

    Hi Prem / Kalandi,
    I have a similar problem like yours and would like to display the description of the ship to address while selecting the attribute value in Org plan (if possible along with address ID).
    Prem.. if the problem is resolved, please suggest me a solution.
    Hi Kalandi..study your solution word by word. However did not get where to set this? Is it in table
    T77OMATTR under search help FM?
    Still I could not make out how to resolve the issue. Can you please detail me how to do it?
    Vasu

  • Web Dynpro context field limitation for the form

    Hello,
       I have created a Web Dynpro with the context fields for Adobe form data from a structure (about 51 fields). When the form is created with reference to the context, the context is not transferred to the Adobe form.
    Similarly created another Web Dynpro context with only 2 fields from the structure for Adobe data, in such case the context fields are transferred to the Adobe form.
    Any limitation on the number of fields to be transferred from Web Dynpro Context to the Adobe form?
    NOTE: Using ABAP Web Dynpro.
    Thanks,
    Anjali
    Message was edited by: Anjali Joglekar

    Hello,
      I think I found the issue. The structure I was using had many fields with data type declared has STRING (with no definite length), in such cases the context is not copied over to the form.
    After modifying the structure fields, with appropriate length data elements, the same structure fields are carried over from Web Dynpro Context to the form.
    Any idea why such limitation is there for the structure field length?
    Thanks,
    Anjali

  • Write XML to the server... ? Problem !

    Hi,
    I need your help !
    I'm trying to reach the "Weather" example web service in WL 6.1.
    My aim is to write XML direct into a socket, over HTTP, and read the
    response...
    I have included the code I am using, but it is not successful for the
    moment.
    I keep getting a parse exception :
    HTTP/1.1 200 OK
    Date: Thu, 26 Jun 2003 07:57:33 GMT
    Server: WebLogic WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    Content-Type: text/xml; charset=UTF-8
    Transfer-Encoding: Chunked
    Connection: Close
    04da
    <?xml version="1.0" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>
    Server
    </faultcode>
    <faultstring>
    org.xml.sax.SAXException
    </faultstring>
    <detail>
    Server side error:
    org.xml.sax.SAXException: Could not find envelope element
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:87)
    at
    weblogic.soap.server.servlet.StatelessBeanAdapter.getInputMessage(Sta
    telessBeanAdapter.java:150)
    at
    weblogic.soap.server.servlet.StatelessBeanAdapter.doPost(StatelessBea
    nAdapter.java:100)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2495)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    0000
    ============ code ===============
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class ClientSocket {
    public static void main(String args[]) throws Exception
    if (args.length != 5)
    throw new Exception("Nombre de parametres incorrect");
    String site = args[0];
    Socket sock = new Socket("localhost", 7001);
    PrintWriter out = new PrintWriter(sock.getOutputStream());
    out.println("POST /weather/weatheruri HTTP/1.1");
    out.println("Host: localhost");
    out.println("Content-Type: text/xml; charset=\"utf-8\"");
    out.println("Content-Length: nnnn");
    //out.println("SOAPAction: \"http://localhost:7001/weather/weatheruri\"");
    //out.println("SOAPAction: ");
    out.println("SOAPAction: \"Some-URI\"");
    out.println("");
    out.println("<?xml version='1.0' encoding='UTF-8'?>");
    out.println("<SOAP-ENV:Envelope
    xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
    xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'>");
    out.println("<SOAP-ENV:Body>");
    out.println("<getTemp
    SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>");
    out.println("<message xsi:type='xsd:string'>");
    out.println("1212");
    out.println("</message>");
    out.println("</getTemp>");
    out.println("</SOAP-ENV:Body>");
    out.println("</SOAP-ENV:Envelope>");
    out.flush();
    BufferedReader in = new BufferedReader(new
    InputStreamReader(sock.getInputStream()));
    String str = null;
    while (((str = in.readLine()) != null))
    System.out.println(str);
    sock.close();

    Many thanks, Mike !!
    Mathew
    "Michael Wooten" <[email protected]> wrote in message
    news:[email protected]...
    >
    The attached Java source shows one example of how to use a Socket to senda SOAP
    message. Check it out, and see if it helps. It has some optimizations thataren't
    currently in the code you provided.
    Regards,
    Mike Wooten
    "W@p" <[email protected]> wrote:
    Hi,
    I need your help !
    I'm trying to reach the "Weather" example web service in WL 6.1.
    My aim is to write XML direct into a socket, over HTTP, and read the
    response...
    I have included the code I am using, but it is not successful for the
    moment.
    I keep getting a parse exception :
    HTTP/1.1 200 OK
    Date: Thu, 26 Jun 2003 07:57:33 GMT
    Server: WebLogic WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    Transfer-Encoding: Chunked
    Connection: Close
    04da
    <?xml version="1.0" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>
    Server
    </faultcode>
    <faultstring>
    org.xml.sax.SAXException
    </faultstring>
    <detail>
    Server side error:
    org.xml.sax.SAXException: Could not find envelope element
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:87)
    at
    weblogic.soap.server.servlet.StatelessBeanAdapter.getInputMessage(Sta
    telessBeanAdapter.java:150)
    at
    weblogic.soap.server.servlet.StatelessBeanAdapter.doPost(StatelessBea
    nAdapter.java:100)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2495)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    0000
    ============ code ===============
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class ClientSocket {
    public static void main(String args[]) throws Exception
    if (args.length != 5)
    throw new Exception("Nombre de parametres incorrect");
    String site = args[0];
    Socket sock = new Socket("localhost", 7001);
    PrintWriter out = new PrintWriter(sock.getOutputStream());
    out.println("POST /weather/weatheruri HTTP/1.1");
    out.println("Host: localhost");
    out.println("Content-Type: text/xml; charset=\"utf-8\"");
    out.println("Content-Length: nnnn");
    //out.println("SOAPAction:
    \"http://localhost:7001/weather/weatheruri\"");
    //out.println("SOAPAction: ");
    out.println("SOAPAction: \"Some-URI\"");
    out.println("");
    out.println("<?xml version='1.0' encoding='UTF-8'?>");
    out.println("<SOAP-ENV:Envelope
    xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
    xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'>");
    out.println("<SOAP-ENV:Body>");
    out.println("<getTemp
    SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>");
    out.println("<message xsi:type='xsd:string'>");
    out.println("1212");
    out.println("</message>");
    out.println("</getTemp>");
    out.println("</SOAP-ENV:Body>");
    out.println("</SOAP-ENV:Envelope>");
    out.flush();
    BufferedReader in = new BufferedReader(new
    InputStreamReader(sock.getInputStream()));
    String str = null;
    while (((str = in.readLine()) != null))
    System.out.println(str);
    sock.close();

  • Need help in learning XML in the context of ABAP

    Experts,
    I am wondering if you can help me.
    I know abap (up to SAP 4.6c versions) but I know nothing about XML ( I am literally zero on XML). I want to learn XML in the contexts of ABAP programs in SAP Netweaver versions. I tied to google XML tutorials but information is overwhelmingly too much. I do not intend to become an XML expert but want to be able to learn XML only to the level where where I can use them in ABAP programs.
    Can you guide me if there is some step by step material / documents/ tutorial on internet which is not too much?
    Thanks
    AP

    hi,
    check these:
    [http://help.sap.com/saphelp_nw70/helpdata/en/fd/9d734b389211d596a200a0c94260a5/frameset.htm]
    [http://searchsap.techtarget.com/generic/0,295582,sid21_gci1207657,00.html#]
    [http://sapblog.rmtiwari.com/2009/02/discovering-hidden-gem-generate-simple.html]
    These are just a few to start. Explore and google to dig more.
    Regards,
    Subramanian

  • Source xml is in one field

    Hi all,
    How to do the mapping since all source xml is in one field. I am on PI 71 ehp1.
    Thanks Janos

    How to do the mapping since all source xml is in one field. I am on PI 71 ehp1
    Is your source structure something like:
    <SRC>
    <Filed1><Name>SAP</Name><Location>Germany</Location></Field>
    </SRC>
    i.e. an XML in one node and now you want to separate it into the relevant message structure in XI?
    If yes then follow the De-serialization logic as mentioned by Udo in this thread:
    Re: Changing XML message into a string
    Regards,
    Abhishek.

  • Check writer XML not working.

    We are using the oracle provided Check writer XML program for HR Payroll check printing. Check writer XML program is getting error ed out when we attach MICR font set up to the Check writer XML Template in template definition, works fine if we remove the MICR font set up for the template. And MICR font set up is working fine for other custom programs we developed. Any suggestions?

    Ya i gone through the docs in the thread. the program works fine when we remove the MICR font setup for the template.
    configuration
    ==========
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.1
    Error is
    ========================
    HR_6859_HRPROC_OTHER_PROC_ERR
    APP-PAY-06859: An error has been detected by another process.
    Cause: During processing, the master or another slave process has detected an error, communicated by setting the Payroll status to 'Error'.
    Action: Examine the error log file and payroll messages to investigate the cause of the error.

  • How to write XML with attributes to a table in Oracle?

    I tried to find solutions over the internet. Some of the stuff I looked at:https://forums.oracle.com/thread/2182669 http://www.club-oracle.com/forums/how-to-insert-data-from-xml-to-table-t2845/
    In all these cases, the solution considers XML structure with only nodes and child nodes but not attributes. In fact, one of the solutions suggests transforming the XML into a canonical form with only nodes w/o attributes.
    This is a sample of xml structure I am working with:
    Sample XML
    <rep type="P" title="P List"> <as> <a id="3" /> <a id="4" /> </as> </rep>
    I am working with oracle client 11.2 and SQL developer
    My question is: how to write XML data into a table with attributes also as column values, beside the nodes?

    My question is: how to write XML data into a table with attributes also as column values, beside the nodes
    The question you should be asking is : "how do I access attributes in the XPath language?"
    and the answer to that is easily found in any XPath tutorial you may find over the Internet, it is not related to Oracle in particular.
    Short answer : you use an "attribute::" axis before the attribute name, or more commonly a "@", e.g. @type, @id etc.
    Using the method described in the first link, something like this will extract the root attributes :
    SELECT x.*
    FROM XMLTable(
           '/rep'
           passing <xmltype variable/column goes here>
           columns type  varchar2(1)  path '@type'
                 , title varchar2(30) path '@title'
    ) x ;
    For deeper levels, use additional XMLTable calls as described in the mentioned post.

  • XML and binary with field separator stock quote

    Hi All,
    I'm doing a comparison of data transmission between XML and binary with field separator.
    Example of XML
    <nasdaq>
    <high>100.00</high>
    <low>90.00</low>
    </nasdaq>
    Example of binary with field separator
    100.00|90.00
    Of course, using XML will consume of much resources and processing power but with easier maintenance and development.
    I'm doing some data feed with high transaction like Nasdaq, NYSE, etc. How you think about it...?
    Any web site does the comparison of the above? I have googled but not much information found.
    Cheers,
    Wikey

    XML is, of course, more flexible. For B2B transactions you should >>consider using gzip compression (avaiable in java.util.zip) if there's a >>fair bit of data in the message. That will reduced the effect of all the >>repetative XML furniture.yah, agreed but still not to a comfort level to proceed this technology. File size still big if compared to compressed non-XML data.
    Btw, I'm seeking for some efficient data feed product able to handle XML effectively and did some comparison with all other standard data formating mechanism of data transmission. Therefore, i can see the whole picture of it. Still trying my R&D luck on google...
    Cheers,

Maybe you are looking for