URGENT - Posting a XML file to a listener URL

Hi all,
I have a situation like this: A servlet Client should post a XML file
to a listener URL, and the listener responds back with a XML file
after the processing the posted XML file.
1. Before posting, the servlet client should establish a session with
the server on which the listener URL is sitting and the Server will
return a cookie with the authentication credentials to the servlet
client.
2. That cookie should be added to the HTTPResponse and then the
posting of the file should happen.
The first part is happening okay ..and i could add that cookie to the
HTTPresponse.
Now, did anyone successfully post a XML file to a listener URL like this from a servlet?
I tried using URLConnection, but my cookie got lost and i got back a 401 error. The key there is i should use the same HTTPrequest and HTTPresponse objects, as the cokie needs to be retained!
Any example code please!!
thanks a lot
Rox

Thanks for your response, but i dont think using authenticator would work. To tell you exactly what is happening there, the url to which the sevlet posts the XML file is protected by Siteminder ( a Enterprise securty platform) and all it requires is a cookie with authenticated credentials on the httprequest/httpresponse objects which are trying to post to that URL. If it find the cookie with the credentials, then the requestor will not be challenged for credentials.
Here is what i am doing:
String urlString = "http://webservicesURL.com/ws";
Cookie SMSESSION = setSMSession();
          if(SMSESSION != null)
               response.addCookie(SMSESSION);     
          System.out.println("\n..Cookie confirmation..\n"+SMSESSION.getName()+" : "+SMSESSION.getValue());
URL u = new URL(urlString);
          URLConnection conn = u.openConnection();
          conn.setDoOutput(true);
          conn.setDoInput(true);
          conn.setRequestProperty(SMSESSION.getName(),SMSESSION.getValue());
          OutputStream out = conn.getOutputStream();
BufferedReader in = new BufferedReader(new FileReader(file));
          while((s = in.readLine())!= null)
               xml_line = xml_line+s;
          writer.println("The XML file is ..\n");
          writer.println(xml_line);
          writer.println("\n\n\n");
          out.write(xml_line.getBytes());
          InputStream ins = conn.getInputStream();
when i execute the servlet, i get a tomcat error 401 on the last line above.
So the new URLConnection that is being opened, is not carying the credentials with it, or the siteminder is unable to read the credentails from the URLConnection. But i am positive that it can read the credentials from the cookie from the HttpResponse object.
Do you have any more ideas, please?
thanks

Similar Messages

  • Posting of XML file on a client's site.

    Dear All,
    I am required to POST our XML export file on client's site. To do so, the client has created for us a test environment and gave us the IP address, i.e.
    http://192.168.6.23:8080/XTI/upload.html. In return, I shall get back client's XML import file.
    How can I implement it at all? Where to start? Can I use Oracle for that?

    I'll have to process the analogies a bit further which I tend to dissdect too much, so I'll try not to. I agree with it being uobtrusive, harder to find on the page is still much easier than for someone to go to the lengthes they would have to find out from the company.
    But have they been known to generate leads? Considering the minimal effort it takes to include the credit, even a single lead is a plus, or just the inbound link. Unless there are downsides that would alter the balance. My concern is in the perception people may have - could it reflect as a negative that I have to promote my business this way?
    Is the best practice to get the client's permission, or is it something they would expect and just include it anyway? Or, what about a situation where you basically built the site, then they turned it over to another company who only did content updates? Or, this is a real scenario - my company built the original site, the new one went to another bidder. Yet, I'm still called upon twice a year to update their product and pricing catalog. Would it be appropriate to include my name on just those pages?
    I know, many questions. Thank you for your input.

  • Where do we post the .xml file with new redirect code?

    We have two existing iTunes podcasts, which we wish to combine, rename and host with a different company. The old ISP submitted our original podcasts, and they are not being very direct regarding our questions about a redirect. We are not sure where the edited .xml file needs to be uploaded.  Does it go to the directory of the old podcast host?  If the old host is not willing to upload the file, is there a way to get around this?
    Any help will be appreciated.

    Thanks! I have sent the following to that suggestion address:
    111) Syncronization with Outlook Notes - this functionality should be added (Although I have recently migrated from WinTel to Mac!).
    222) Need the capability of forwarding SMS messages.
    333) Need to be able to save SMS messages and emails as drafts for later editing and sending.
    444) MUST be able to cut-and-paste between applications. For example if I get some information in a text message I may want to save it to a note or to an email or even to a contact. * THIS IS A TOP PRIORITY FOR ME *
    555) Move the SEND button further away from the keyboard OR make a "are you sure" pop-up before sending. My fat fingers have resulted in me sending loads of half-completed messages because I accidentally struck the send button and not the "i", "o" or "p". OR save in an outbox for later sending. ** THIS IS ALSO TOP PRIORITY *
    666) 3G network covereage for UK / EU. Edge is too patchy in coverage and too slow.

  • Reading XML file from a given URL

    Hi, I want to read an XML file - such as an RSS weather feed and format it to match the style of my site (im using Java servlets). I am able to get a HttpURLConnection, but how do I then read from it? if I use the .getInputStream() method on runtime I get the error
    "java.net.UnknownServiceException: protocol doesn't support input
         java.net.URLConnection.getInputStream(URLConnection.java:779)"
    can anyone enlighten me?

    xi4xi4xi4 wrote:
    here's my code
    URL url = new URL("http://feeds.bbc.co.uk/weather/feeds/rss/obs/world/0008.xml");
    HttpURLConnection con = new HttpURLConnection(url) {
    @Override
    public void disconnect() {
    throw new UnsupportedOperationException("Not supported yet.");
    @Override
    public boolean usingProxy() {
    throw new UnsupportedOperationException("Not supported yet.");
    @Override
    public void connect() throws IOException {
    throw new UnsupportedOperationException("Not supported yet.");
    out.println(con.getInputStream().toString());
    Also, if you actually want an object of type HttpURLConnection for some reason, then you do this:
    HttpURLConnection con = (HttpURLConnection) url.openConnection();conn will be some subclass of HttpURLConnection that implements all its abstract methods. openConnection() sorts out what subclass it needs to create. Here is a complete example:
    import java.net.*;
    import java.io.*;
    public class Test
      public static void main(String args[])
        URL url = null;
        try
           url = new URL("http://feeds.bbc.co.uk/weather/feeds/rss/obs/world/0008.xml");
        catch(MalformedURLException e)
          System.out.println("Error: url not in proper format.");
          return;
        HttpURLConnection conn = null;
        try
          conn = (HttpURLConnection)url.openConnection();
        catch(IOException e)
          System.out.println("Error: couldn't open connection.");
          return;
        BufferedReader in = null;
        try
          in = new BufferedReader(
                new InputStreamReader(
                  conn.getInputStream() ));
        catch(IOException e)
          System.out.println("Error: couldn't open stream.");
          e.printStackTrace();
          return;
        String line = null;
        try
          while( (line = in.readLine()) != null )
            System.out.println(line);
        catch(IOException e)
          System.out.println("Error while reading the file.");
    }

  • How to HTTP-Post different XML messages to one receiving URL on XI side?

    Hi
    I have a problem with a HTTP => XI => IDoc scenario.
    A client want to send 4 different XML documents to only 1 receiving URL on the XI side. How can I handle this in XI???
    To send XML data via HTTP to XI you have to specify the namespace, interface and service in the URL. But I only can specify 1 namespace, interface and namespace in the URL...
    But how can I define a generic message interface for all 4 messages.
    The solution with 4 receiving URL's is easy, but not workable for the client
    Thx
    manuku

    You can do following:
    Create an interface with an artificial root node like this:
    root
      - structure message 1
      - structure message 2
      - structure message 3
    A simple XSLT/Java mapping adds that root node to every message.
    Create different mappings based on the structure if the different mappings and do routing based on the same.
    Another option: Upgrade to PI 7.1. Here you can simply create a service interface with different operations and routing/mapping based on the operations.
    Regards
    Stefan

  • Read Time out error while posting XML file

    Hi
    While posting the XML file from .NET application to XI I am getting following error :
    com.sap.engine.services.httpserver.exceptions.HttpIOException: Read timeout. The client has disconnected or a synchronization error has occurred. Read 62127 bytes. Expected 75283.
                at com.sap.engine.services.httpserver.server.io.HttpInputStream.read(HttpInputStream.java:186)
                at java.io.FilterInputStream.read(FilterInputStream.java:111)
                at java.io.PushbackInputStream.read(PushbackInputStream.java:161)
                at java.io.FilterInputStream.read(FilterInputStream.java:90)
                at com.sap.aii.messaging.net.MIMEInputSource$MIMEReader.readContent(MIMEInputSource.java:683)
                at com.sap.aii.messaging.net.MIMEInputSource.readBody(MIMEInputSource.java:342)
                at com.sap.aii.messaging.net.MIMEServletInputSource.parse(MIMEServletInputSource.java:58)
                at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:358)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Earlier I incresed the PROCTIME as 600 secs ( OSS Note 824554 ) -->
    icm/server_port_0 = PROT=HTTP,PORT=1080,TIMEOUT=600,PROCTIMEOUT=600
    In this case do I need to increase this parameter value again & what should be the optimal value which will not effect the performance of the system too.
    Best Regards
    Lalit Chaudhary

    hi Lalit,
      Check the OSS note(807000) and see if it helps you....
    Re: Calls to Webservice published by XI getting lost
    hope it helps,
    regards,
    Anu

  • Getting an error while changing a tag in an XML file

    Hi,
    When I am trying to replace the existing XML tag with other one I am getting the following exception:
    org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist.
    at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source)
    at org.apache.xerces.dom.ParentNode.replaceChild(Unknown Source)
    at org.apache.xerces.dom.CoreDocumentImpl.replaceChild(Unknown Source)
    at com.Replace_Tag.replaceNode(Replace_Tag.java:97)
    at com.Replace_Tag.processRequest(Replace_Tag.java:39)
    at com.Replace_Tag.doGet(Replace_Tag.java:56)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    The following is the code I am using :
    public void replaceNode() throws Exception{
            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
            DocumentBuilder db = dbf.newDocumentBuilder();
            Document doc = db.parse("file:/C:/Documents and Settings/srikanth.d.KNOAHSOFT/Desktop/Linechart.jrxml");
            Element root = doc.getDocumentElement();
            Element newElement = doc.createElement("stackedBarchart");
            NodeList oldList = root.getElementsByTagName("lineChart");
            int length = oldList.getLength();
            System.out.println("length::"+length);
            for(int i=0;i<length;i++)
                Node oldNode = oldList.item(i);
                NodeList nl = doc.getChildNodes();
    newElement.getTagName().toString());                   
    (i).getNodeName().toString());
                doc.replaceChild((Node)newElement, oldNode);           
    Can anybody help me in this regard...
    Thanks and Regards
    DNV Srikanth

    i am posting the xml file also :
    <?xml version="1.0" encoding="UTF-8"  ?>
    <!-- Created with iReport - A designer for JasperReports -->
    <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
    <jasperReport
               name="Line chart"
               columnCount="1"
               printOrder="Vertical"
               orientation="Portrait"
               pageWidth="396"
               pageHeight="842"
               columnWidth="396"
               columnSpacing="0"
               leftMargin="0"
               rightMargin="0"
               topMargin="0"
               bottomMargin="0"
               whenNoDataType="NoPages"
               isTitleNewPage="false"
               isSummaryNewPage="false">
         <property name="ireport.scriptlethandling" value="2" />
         <property name="ireport.encoding" value="UTF-8" />
         <import value="java.util.*" />
         <import value="net.sf.jasperreports.engine.*" />
         <import value="net.sf.jasperreports.engine.data.*" />
         <queryString><![CDATA[select * from evalsubcomparison where qacount1 between 70.0 and 75.0]]></queryString>
         <field name="EmpId" class="java.lang.Double"/>
         <field name="Empname" class="java.lang.String"/>
         <field name="BaseEmpId" class="java.lang.Double"/>
         <field name="QACount1" class="java.lang.Double"/>
         <field name="WeekId1" class="java.lang.String"/>
         <field name="QACount2" class="java.lang.Double"/>
         <field name="WeekId" class="java.lang.String"/>
         <field name="QACount3" class="java.lang.Double"/>
         <field name="WeekId3" class="java.lang.String"/>
         <field name="QACount4" class="java.lang.Double"/>
         <field name="WeekId4" class="java.lang.String"/>
         <field name="level" class="java.lang.Double"/>
              <background>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </background>
              <title>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </title>
              <pageHeader>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </pageHeader>
              <columnHeader>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </columnHeader>
              <detail>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </detail>
              <columnFooter>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </columnFooter>
              <pageFooter>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </pageFooter>
              <summary>
                   <band height="301"  isSplitAllowed="true" >
                        <lineChart>
                             <chart  hyperlinkTarget="Self" >
                             <reportElement
                                  mode="Opaque"
                                  x="0"
                                  y="0"
                                  width="390"
                                  height="300"
                                  backcolor="#FFFFFF"
                                  key="element-1"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                                  <chartLegend textColor="#000000" backgroundColor="#FFFFFF" >
                             <font fontName="Times New Roman" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" isPdfEmbedded="false" pdfEncoding="Cp1252"/>
                             </chartLegend>
                             </chart>
                             <categoryDataset>
                                  <dataset >
                                  </dataset>
                                  <categorySeries>
                                       <seriesExpression><![CDATA["WE "+$F{WeekId1}]]></seriesExpression>
                                       <categoryExpression><![CDATA[$F{Empname}]]></categoryExpression>
                                       <valueExpression><![CDATA[$F{QACount1}]]></valueExpression>
                        <itemHyperlink >
                        </itemHyperlink>
                                  </categorySeries>
                                  <categorySeries>
                                       <seriesExpression><![CDATA["WE "+$F{WeekId}]]></seriesExpression>
                                       <categoryExpression><![CDATA[$F{Empname}]]></categoryExpression>
                                       <valueExpression><![CDATA[$F{QACount2}]]></valueExpression>
                        <itemHyperlink >
                        </itemHyperlink>
                                  </categorySeries>
                                  <categorySeries>
                                       <seriesExpression><![CDATA["WE "+$F{WeekId3}]]></seriesExpression>
                                       <categoryExpression><![CDATA[$F{Empname}]]></categoryExpression>
                                       <valueExpression><![CDATA[$F{QACount3}]]></valueExpression>
                        <itemHyperlink >
                        </itemHyperlink>
                                  </categorySeries>
                                  <categorySeries>
                                       <seriesExpression><![CDATA["WE "+$F{WeekId4}]]></seriesExpression>
                                       <categoryExpression><![CDATA[$F{Empname}]]></categoryExpression>
                                       <valueExpression><![CDATA[$F{QACount4}]]></valueExpression>
                        <itemHyperlink >
                        </itemHyperlink>
                                  </categorySeries>
                             </categoryDataset>
                             <linePlot >
                                  <plot backcolor="#FFFFFF" />
                                  <categoryAxisFormat>
                                       <axisFormat >
                                       </axisFormat>
                                  </categoryAxisFormat>
                             <valueAxisLabelExpression><![CDATA["No. of Evaluations"]]></valueAxisLabelExpression>
                                  <valueAxisFormat>
                                       <axisFormat >
                                            <labelFont>
                             <font fontName="Serif" pdfFontName="Helvetica" size="14" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" isPdfEmbedded="false" pdfEncoding="Cp1252"/>
                                            </labelFont>
                                            <tickLabelFont>
                                            </tickLabelFont>
                                       </axisFormat>
                                  </valueAxisFormat>
                             </linePlot>
                        </lineChart>
                   </band>
              </summary>
    </jasperReport>can anybody pls help me in this regard......

  • How to generate xml file from an array of data using jQuery

    Hi All,
    Iam facing the problem with diaplaying array of data into a xml file, Actually iam using SAPUI5 commons table to display the backend data, each row in the table has checkbox. If we select each checkbox, iam getting the particular record and push it into an empty array and then i should show that array of data into xml file.

    OData.request 
    requestUri: url,  
    method: "POST",
    headers: {                    
    "X-Requested-With": "XMLHttpRequest",                  
    "Content-Type": "application/atom+xml",
    "DataServiceVersion": "2.0", 
    "Accept": "application/atom+xml,application/atomsvc+xml,application/xml",  
    "X-CSRF-Token": header_xcsrf_token   
    data: requestTableDATAArray
    // Response after posting and set message
    function (data, response) 
    alert(response.body);//gives xml format

  • How to send an XML file via HTTP_POST

    I have an ABAP program that creates an XML file and I need to somehow post this XML file to a webserver and read the HTTP Response that it sends back.  I see that there is a function module called HTTP_POST but I've never used it before.  I also see that there are a number of ABAP Objects related to HTTP.  Has anyone done this before. 
    I'm on SAP 4.7 (6.20)
    Thank you,

    I went to www.fedex.com and exported their SSL cert.  I then imported it into SAP via STRUST.  However, I still get the same http_communication_error.  The XML needs to be posted to this address:  'https://gatewaybeta.fedex.com:443/GatewayDC'
    Here is my code:
    Note: wf_string contains the XML
    CALL METHOD cl_http_client=>create
      EXPORTING
        host          = 'https://gatewaybeta.fedex.com'
        service       = '443'
        scheme        = '2'
       proxy_host    =  wf_proxy
       proxy_service =  wf_port
      IMPORTING
        client        = http_client.
    http_client->propertytype_logon_popup = http_client->co_disabled.
    wf_user = '' .
    wf_password = '' .
    proxy server authentication
    CALL METHOD http_client->authenticate
      EXPORTING
        proxy_authentication = 'X'
        username             = wf_user
        password             = wf_password.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = '~request_method'
        value = 'POST'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = '~server_protocol'
        value = 'HTTP/1.1'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = '~request_uri'
        value = 'https://gatewaybeta.fedex.com:443/GatewayDC'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = 'Content-Type'
        value = 'text/xml; charset=utf-8'.
    CALL METHOD http_client->request->set_header_field
      EXPORTING
        name  = 'Content-Length'
        value = txlen.
    *CALL METHOD http_client->request->set_header_field
    EXPORTING
       name  = 'SOAPAction'
       value = 'https://gatewaybeta.fedex.com:443/GatewayDC'
    CALL METHOD http_client->request->set_cdata
      EXPORTING
        data   = wf_string
        offset = 0
        length = rlength.
    CALL METHOD http_client->send
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2.
    CALL METHOD http_client->receive
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3.
    CLEAR wf_string1 .
    wf_string1 = http_client->response->get_cdata( ).

  • XML file to SAP

    Hi All,
    We have a requirement for which we need to post an XML file to SAP.
    I have already checked for SAP MDM and BC but they have been ruled out.
    Is there any other method of communication? We cannot think of implementing SAP XI/PI.
    Our source data is BOM related informaiton from Arena system.
    Any inputs would be appreciated.
    Regards
    Neelav

    Hello,
    please look at the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/47/b5413acdb62f70e10000000a114084/frameset.htm
    regards
    Eric

  • How to send XML file into XI using sender HTTP adapter

    I am using HTTP sender adapter to post the XML file into XI. I tried to form the URL by using the following String query , but I am unable to execute file.
    String urlString = "http://<servername:portno>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface name>&service=<service name>&party=&agency=&scheme=&QOS=BE&sap-user=xiappluser&sap-password=satyam&sap-client=100&sap-language=EN";
    How can I execute xml file by using HTTP sender adapter.
    Any one with better suggestions, about this idea?
    Thanks in advance for all.
    Ram Raj

    Hi
    Just use the following parameter to send xml file using HTTP adapter.
    "http://xiserver:8000/sap/xi/adapter_plain?namespace="senderNamespace"&interface=senderinterface&service=sender service";
    "&party=sender party"&agency=&scheme=&QOS=BE&sap-user=userid &sap-password=password&sap-client=100&sap-language=D";
    with the help of this you are able to point out which interface you would like to use.
    And in payload pass the xml.
    and thats it
    carry on
    Cheers
    Regards
    Piyush

  • Receiving a inbound xml file in Business Connector

    Hi All,
    The requirement is we are receiving an inbound xml file at the BC end from a third party application.
    We have configured the url in the third party end as follows -
    http://ip address of BC:port address/invoke/Folder/Service
    When the file is posted, the xml file is normally routed to the service in the developer.
    In the developer we are using the service load document to load the file from the url location.
    But at present when a xml file is triggered from the third party application it is routed to the service, and on checking the url location http://ip address of BC:port address/invoke/Folder/Service the server slows down slowly and we are not able to access both the developer and administrator after this.
    Are we following the correct steps, or else is there anyother way of receiving the inbound file in BC.
    Any suggestions on this would be of great help.
    Please let me know if we are going wrong anywhere.
    Regards,
    Priya

    Hi priye,
    I am agreed with you approach, and this is what everyone do. :). So that is not a problem. May be something else will be the cause.
    >>>>In the developer we are using the service load document to load the file from the url location
    For load document, i don't think its necessary because using the URL post, you are submitting data directly to the Flow Service. So no need to do document load or anything. Also i am against to use the Save data in pipeline (savePipeline) service because when you transport this  in production you need to comment this step otherwise it will give other problems when this will run.
    if this approach is giving you performance problem, then try putting your xml file in you package directory and the write a file pooler and then parse this xml for ur use. this is one of the simple solutions.
    hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • How to convert a string into xml file

    Hi,
    i have a string . the string contain fully formated xml data. i mean my string like below
    <?xml version="1.0"?>
    <PARTS>
       <TITLE>Computer Parts</TITLE>
       <PART>
          <ITEM>Motherboard</ITEM>
          <MANUFACTURER>ASUS</MANUFACTURER>
          <MODEL>P3B-F</MODEL>
          <COST> 123.00</COST>
       </PART>
       <PART>
    ......................i want to convert it into an xml file
    can u help me?
    thank u

    Thank you Paul Clapham,
    and sorry ..
    i have some other doubt.. regarding xml
    i want to post an XML file from one server(Server_1) to other server.(Server_2)
    To generate an xml file i used DOM in Server_1.
    using xml.transform , StringWriter i converted it into String.
    I post the string to another server and there i will parse it.
    for that i write the code like below in servlet in server_1
    <form name=fn action=http://localhost:8080/server_2/parseXMl.do method=post>
    <input type=hidden name=xmlFile value="+Xmlstring+">
    <input type=submit >is this process is correct?
    Some of the turorial told that use web-services/XML-RPC
    but i new to both..
    I want to complete it using my knowledge only/
    Is it possible to do it?
    Or any other alternative?
    can help me?

  • Business Connector, Posting an XML document

    HI,
    I've got a service : Z_ASN_CREATE, and an XML file which works fine for this service when I use the 'Test\send xml file' tool to test this service from BC DEVELOPPER.
    My Question is : What should I do now to post this XML file from outisde the BC, from a browser for example ?
    Thanks.
    Vincent

    Hi Vincent,
    If you want to send a request to a BC Service using just a browser and html (without any activex Objects), review the code below. You will notice that you send it as a string called xmlData. In you input service you should have a input variable called exactly xmlData (case sensitive). Then convert it to document using <i>stringToDocument</i> and from document to record using <i>documentToRecord</i> (pretty straightforward, is it? ).
    good luck,
    David R.
    <html>
    <head></head>
    <body>
    <form name="frm2BC" action="http://localhost:5555/invoke/Default/you_service_name">
    <textarea name="xmlData" rows="10" cols="60"><?xml version="1.0" encoding="UTF-8" ?><test>Send me!!</test></textarea>
    <br>
    <input type="submit" value="Send" >
    </form>
    </body>

  • Creating an xml file from recordset

    Hi...
    XML newbie here - so.
    Is it possible to create and xml file from a recordset?
    I need to create a datafeed of our e-commerce products.
    Also, some of the db data contains HTML Code (product
    description field),
    how will this effect the xml file?
    Another problem is that my xml file needs to contain url's
    for the products
    and product images. My ASP pages contain these URL in hard
    code and then
    pull the actual file names from the db
    Hope that makes some sense
    Thanks for any help
    Andy

    Hi David
    Thanks for your help.
    I think it will have to be option 1 as i am using Access DB.
    I don't know how to go about it but will serach good old
    Google.
    Here is my recordset below, that pulls the required data from
    Access.
    The product and product image URL's need to be in the xml
    file but only the
    product image name and product id are in the database, e.g
    image name
    (imagename.jpg) productid (21)
    The actual URL's are hardcoded in my ASP pages, e.g <img
    src="products/medium/<%=(RSDetails.Fields.Item("Image").Value)%>"
    Not sure if this makes things any clearer :-|
    Thanks Again
    Andy
    <%
    Dim RSdatafeed
    Dim RSdatafeed_numRows
    Set RSdatafeed = Server.CreateObject("ADODB.Recordset")
    RSdatafeed.ActiveConnection = MM_shoppingcart_STRING
    RSdatafeed.Source = "SELECT Products.Product,
    Products.Description,
    Products.Image, Products.image2, Products.ListPrice,
    Products.Price,
    Products.xml_feed, Manufacturers.Manufacturer,
    Shipping.ShippingCost FROM
    Shipping, Products INNER JOIN Manufacturers ON
    Products.ManufacturerID =
    Manufacturers.ManufacturerID WHERE
    (((Products.xml_feed)=No));"
    RSdatafeed.CursorType = 0
    RSdatafeed.CursorLocation = 2
    RSdatafeed.LockType = 1
    RSdatafeed.Open()
    RSdatafeed_numRows = 0
    %>
    "DEPearson" <[email protected]> wrote in
    message
    news:[email protected]...
    > Andy,
    >
    > There are two ways you can create a xml file from a
    recordset
    >
    > 1. Is to code it using Server.CreateObject(XMLDOM)
    > 2. If you are using SQL server 2005, just request the RS
    returns as XML
    > data. using FOR XML AUTO after the where cause ( the
    best way with 2005
    > and
    > higher sql server)
    >
    > The db data containing HTML code should not effect your
    xml file, unless
    > it
    > is bad markup. You could wrap the data with
    <![CDATA[the data or html
    > markup, or javascript]]>
    >
    > If the url is a recordset field, then it will return
    with the xml data.
    > If
    > not you can create a storage procedure that will build
    your URL from the
    > data
    > in the database.
    >
    > It is best to use storage procedure (SP )for security
    reason when pulling
    > data
    > from a MS Sql server, make all calls to the database in
    a SP. Also be sure
    > to
    > validate the values in the querystrings before accepting
    them, check for
    > hack
    > code.
    >
    > David
    >

Maybe you are looking for

  • Unable to Install OS X Yosemite from USB Bootable Installer

    I have created a Yosemite USB bootable installer using similar instructions (I changed source and target names as appropriate) as provided to create a Mavericks USB bootable installer - Creating a bootable OS X installer in OS X Mavericks Target disk

  • How to erase an SSD drive

    How do I erase and SSD drive from a Macbook Air so it can be sold?

  • Handling Report Message

    Hi all, i am using report 6i and i want to abort the run of report, so i use return(false) in before-parameter-form trigger i stoped report run but i still have an error message, how can suppress the message: rep-1419 'beforepform': pl/sql program ab

  • Add Exchange Rate

    Dear Experts, I want to add new exchange rate using sap object. I found this SetCurrencyRate Method in help, but I don't know how to use it. The company object doesn't show this method. Is there an exchange rate object or can anyone give me an exampl

  • How do I get rid of a pulsating pink screen light?

    How do I stop a pulsating pink screen light?