Xml code for HTTP client

Hi all
can anyone send me the XML code to write in HTTP client to know the structure for a table using  a scenario. I already developed the scenario for HTTP to JDBC  just post me the XML code.
Thanks and Regards
Raghu.

Hi
Go through this
You can find a description here:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
Might be useful
Thanks

Similar Messages

  • Namespace in XML Payload for HTTP Sender

    Hello,
    I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception.
    After some investigation using the test tab in the message mapping I realized that missing namespace in the XML payload caused the error. I tried to add manually a namespace to the XML and then it worked
    This is very strange I though that the namespace of the sender interface is automatically added to the XML payload?
    Do you have any information on this?

    Hi,
    U need to copy the payload from Message mapping test message tab and use that payload.
    or u can use the HTTP test client for testing the same.
    sample HTML code to create HTTP Client:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    You can also use the Wfetch application by Microsift for the same..
    download the same from below link
    http://www.iisfaq.com/Default.aspx?tabid=2975
    Thnx
    Chirag

  • Return code for dynamic client by-pass

    hi,
    i wonder if 302 ( move temporaily) for return code in dynamic client by-pass. but it said 200 in the Cisco web page, why?
    thanks
    difei

    hi,
    my question is what's the return code from CE if the client ip addr. authentication failed? in cisco web page, it said 200. i guess it be 302, redirect to the original server.
    difei

  • Re:Help with code for server client

    Hi i am struggling to adapt code for UDPServer and client programs.
    how can i adapt the following server code to add a message before replying to the client?
    import java.net.*;
    import java.io.*;
    public class UDPServer2{
    public static void main(String args[]){
         DatagramSocket aSocket = null;
              try{
              aSocket = new DatagramSocket(9000);
                             // create socket at agreed port
                   byte[] buffer = new byte[1000];
                   while(true){
                        DatagramPacket request = new DatagramPacket(buffer, buffer.length);
                        aSocket.receive(request);
                   DatagramPacket reply = new DatagramPacket(request.getData(), request.getLength(),
                        request.getAddress(), request.getPort());
                             aSocket.send(reply);
              }catch (SocketException e){System.out.println("Socket: " + e.getMessage());
              }catch (IOException e) {System.out.println("IO: " + e.getMessage());
              }finally {if(aSocket != null) aSocket.close();}
    any help would be much appreciated i have tried altering the aSocket.send(reply) line but to no avail.
    thank you in advance

    Hi i am struggling to adapt code for UDPServer and
    client programs.
    how can i adapt the following server code to add a
    message before replying to the client?What do you want to add before replying to the client?

  • Server Host and Port for HTTP Client Too

    Hi All,
    I'm using the HTTP Client tool to connect to XI. How can i find out the ServerHost, ServerPort and Client values.
    Thanks,
    Sandeep

    Hi Michal, Thanks for the response,
    But when i use these values and connect. I get the Response - Resource not found . See the HTML below
    Result:  
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Error Report</title>
    <style>
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
    A:link
    A:visited
    A:active
    </style>
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  404 &nbsp Not Found</b></font></td>
    </tr>
    <tr bgcolor="#3F73A3">
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
        <td height="23"><img width=1 height=1 border=0 alt=""></td>
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.45 </b></font></td>
    </tr>
    <tr bgcolor="#9DCDFD">
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
    </tr>
    </table>
    <br><br><br><br><br><br>
    <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  The requested resource does not exist.</b></font></p>
    <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE>Go to <A HREF="/" target="_parent">main page</A> of this application!</PRE></font></td></tr></table></font></p>
    </body>
    </html>
    The interface, service all are correct. Do you think something else is wrong?
    Thanks,
    Sandeep

  • Here is example code for HTTPS Tunneling through proxy(400 Lines of code

    Here is the source for Https Tunneling that I have gotten working. It is based on Pua Yeow Cheong's JavaWorld Tip 111. Thanks to David Lord for providing the final breakthrough that I needed.
    I have posted it here for anyone who wishes to use it. If you find any bugs, or write any improvements, please tack them onto the end of this thread.
    I have been trying to tackle this problem for quite some time, so I hope this helps a few of you out there.
    Lots of Luck,
    nightmask.
    <----- Begin Copy and Paste -------->
    import java.net.*;
    import java.io.*;
    import java.security.*;
    import sun.misc.BASE64Encoder;
    import javax.net.*;
    import javax.net.ssl.*;
    *  This example is based on JavaWorld Tip 111. Thanks to Pua Yeow Cheong for writing it.
    *  It tunnels through a proxy using the Https protocol.
    *  Thanks go to David Lord in the java forums for figuring out the main problem with Tip 111
    *  PLEASE NOTE: You need to have the JSSE 1.0.2 jars installed for this to work
    *  Downloads contents of a URL, using Proxy Tunneling and Basic Authentication
    public class URLReader {
         *  The main program for the URLReader class
        public static void main(String[] args) throws Exception {
            //set up strings for use in app. Change these to your own settings
            String proxyPassword = "password";
            String proxyUsername = "username";
            String proxyHost = "myproxy.com";
            String proxyPort = "3128";
            String connectionURL = "https://www.verisign.com";
            //set up system properties to indicate we are using a proxy
            System.setProperty("https.proxyHost", proxyHost);
            System.setProperty("https.proxyPort", proxyPort);
            System.setProperty("proxyHost", proxyHost);
            System.setProperty("proxyPort", proxyPort);
            System.setProperty("proxySet", "true");
            System.setProperty("http.proxyHost", proxyHost);
            System.setProperty("http.proxyPort", proxyPort);
            System.setProperty("http.proxySet", "true");
            //set up handler for jsse
            System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
            java.security.Provider prov = new com.sun.net.ssl.internal.ssl.Provider();
            Security.addProvider(prov);
            //create the connection
            URL myURL = new URL(connectionURL);
            URLConnection myConnection = myURL.openConnection();
            if (myConnection instanceof com.sun.net.ssl.HttpsURLConnection) {
                ((com.sun.net.ssl.HttpsURLConnection) myConnection).setSSLSocketFactory(new SSLTunnelSocketFactory(System.getProperty("proxyHost"), System.getProperty("proxyPort")));
            myConnection.setDoInput(true);
            myConnection.setDoOutput(true);
            BufferedReader in;
            try {
                System.err.println("opening Input stream1");
                in = new BufferedReader(
                        new InputStreamReader(
                        myConnection.getInputStream()));
                String inputLine;
                System.err.println("Input stream is Open1");
                while ((inputLine = in.readLine()) != null) {
                    System.err.println(inputLine);
                in.close();
                System.err.println("Input stream is Closed1");
            } catch (Exception e) {
                e.printStackTrace(System.err);
                String tmp = e.getMessage().toLowerCase().trim();
                System.err.println("tmp *" + tmp + "*");
                if (tmp.indexOf("http") > -1) {
                    //http error message to be parsed
                    tmp = tmp.substring(tmp.indexOf("http")).trim();
                    System.err.println("tmp *" + tmp + "*");
                    tmp = tmp.substring(8).trim();
                    System.err.println("tmp *" + tmp + "*");
                    if (tmp.startsWith("407")) {
                        //proxy authentication required
                        myURL = new URL(connectionURL);
                        myConnection = myURL.openConnection();
                        if (myConnection instanceof com.sun.net.ssl.HttpsURLConnection) {
                            ((com.sun.net.ssl.HttpsURLConnection) myConnection).setSSLSocketFactory(new SSLTunnelSocketFactory(System.getProperty("proxyHost"), System.getProperty("proxyPort"), proxyUsername, proxyPassword));
                        myConnection.setDoInput(true);
                        myConnection.setDoOutput(true);
                        try {
                            System.err.println("opening Input stream 2");
                            in = new BufferedReader(
                                    new InputStreamReader(
                                    myConnection.getInputStream()));
                            String inputLine;
                            System.err.println("Input stream is Open 2");
                            while ((inputLine = in.readLine()) != null) {
                                System.out.println(inputLine);
                            in.close();
                            System.err.println("Input stream is closed 2");
                        } catch (Exception ex) {
                            System.err.println(ex.getMessage());
                            ex.printStackTrace(System.err);
    *  SSLSocket used to tunnel through a proxy
    class SSLTunnelSocketFactory extends SSLSocketFactory {
        private String tunnelHost;
        private int tunnelPort;
        private SSLSocketFactory dfactory;
        private String tunnelPassword;
        private String tunnelUserName;
        private boolean socketConnected = false;
        private int falsecount = 0;
         *  Constructor for the SSLTunnelSocketFactory object
         *@param  proxyHost  The url of the proxy host
         *@param  proxyPort  the port of the proxy
        public SSLTunnelSocketFactory(String proxyHost, String proxyPort) {
            System.err.println("creating Socket Factory");
            tunnelHost = proxyHost;
            tunnelPort = Integer.parseInt(proxyPort);
            dfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
         *  Constructor for the SSLTunnelSocketFactory object
         *@param  proxyHost      The url of the proxy host
         *@param  proxyPort      the port of the proxy
         *@param  proxyUserName  username for authenticating with the proxy
         *@param  proxyPassword  password for authenticating with the proxy
        public SSLTunnelSocketFactory(String proxyHost, String proxyPort, String proxyUserName, String proxyPassword) {
            System.err.println("creating Socket Factory with password/username");
            tunnelHost = proxyHost;
            tunnelPort = Integer.parseInt(proxyPort);
            tunnelUserName = proxyUserName;
            tunnelPassword = proxyPassword;
            dfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
         *  Sets the proxyUserName attribute of the SSLTunnelSocketFactory object
         *@param  proxyUserName  The new proxyUserName value
        public void setProxyUserName(String proxyUserName) {
            tunnelUserName = proxyUserName;
         *  Sets the proxyPassword attribute of the SSLTunnelSocketFactory object
         *@param  proxyPassword  The new proxyPassword value
        public void setProxyPassword(String proxyPassword) {
            tunnelPassword = proxyPassword;
         *  Gets the supportedCipherSuites attribute of the SSLTunnelSocketFactory
         *  object
         *@return    The supportedCipherSuites value
        public String[] getSupportedCipherSuites() {
            return dfactory.getSupportedCipherSuites();
         *  Gets the defaultCipherSuites attribute of the SSLTunnelSocketFactory
         *  object
         *@return    The defaultCipherSuites value
        public String[] getDefaultCipherSuites() {
            return dfactory.getDefaultCipherSuites();
         *  Gets the socketConnected attribute of the SSLTunnelSocketFactory object
         *@return    The socketConnected value
        public synchronized boolean getSocketConnected() {
            return socketConnected;
         *  Creates a new SSL Tunneled Socket
         *@param  s                         Ignored
         *@param  host                      destination host
         *@param  port                      destination port
         *@param  autoClose                 wether to close the socket automaticly
         *@return                           proxy tunneled socket
         *@exception  IOException           raised by an IO error
         *@exception  UnknownHostException  raised when the host is unknown
        public Socket createSocket(Socket s, String host, int port, boolean autoClose)
                 throws IOException, UnknownHostException {
            Socket tunnel = new Socket(tunnelHost, tunnelPort);
            doTunnelHandshake(tunnel, host, port);
            SSLSocket result = (SSLSocket) dfactory.createSocket(tunnel, host, port, autoClose);
            result.addHandshakeCompletedListener(
                new HandshakeCompletedListener() {
                    public void handshakeCompleted(HandshakeCompletedEvent event) {
                        System.out.println("Handshake Finished!");
                        System.out.println("\t CipherSuite :" + event.getCipherSuite());
                        System.out.println("\t SessionId: " + event.getSession());
                        System.out.println("\t PeerHost: " + event.getSession().getPeerHost());
                        setSocketConnected(true);
            // thanks to David Lord in the java forums for figuring out this line is the problem
            // result.startHandshake(); //this line is the bug which stops Tip111 from working correctly
            return result;
         *  Creates a new SSL Tunneled Socket
         *@param  host                      destination host
         *@param  port                      destination port
         *@return                           tunneled SSL Socket
         *@exception  IOException           raised by IO error
         *@exception  UnknownHostException  raised when the host is unknown
        public Socket createSocket(String host, int port)
                 throws IOException, UnknownHostException {
            return createSocket(null, host, port, true);
         *  Creates a new SSL Tunneled Socket
         *@param  host                      Destination Host
         *@param  port                      Destination Port
         *@param  clientHost                Ignored
         *@param  clientPort                Ignored
         *@return                           SSL Tunneled Socket
         *@exception  IOException           Raised when IO error occurs
         *@exception  UnknownHostException  Raised when the destination host is
         *      unknown
        public Socket createSocket(String host, int port, InetAddress clientHost,
                int clientPort)
                 throws IOException, UnknownHostException {
            return createSocket(null, host, port, true);
         *  Creates a new SSL Tunneled Socket
         *@param  host             destination host
         *@param  port             destination port
         *@return                  tunneled SSL Socket
         *@exception  IOException  raised when IO error occurs
        public Socket createSocket(InetAddress host, int port)
                 throws IOException {
            return createSocket(null, host.getHostName(), port, true);
         *  Creates a new SSL Tunneled Socket
         *@param  address          destination host
         *@param  port             destination port
         *@param  clientAddress    ignored
         *@param  clientPort       ignored
         *@return                  tunneled SSL Socket
         *@exception  IOException  raised when IO exception occurs
        public Socket createSocket(InetAddress address, int port,
                InetAddress clientAddress, int clientPort)
                 throws IOException {
            return createSocket(null, address.getHostName(), port, true);
         *  Sets the socketConnected attribute of the SSLTunnelSocketFactory object
         *@param  b  The new socketConnected value
        private synchronized void setSocketConnected(boolean b) {
            socketConnected = b;
         *  Description of the Method
         *@param  tunnel           tunnel socket
         *@param  host             destination host
         *@param  port             destination port
         *@exception  IOException  raised when an IO error occurs
        private void doTunnelHandshake(Socket tunnel, String host, int port) throws IOException {
            OutputStream out = tunnel.getOutputStream();
            //generate connection string
            String msg = "CONNECT " + host + ":" + port + " HTTP/1.0\n"
                     + "User-Agent: "
                     + sun.net.www.protocol.http.HttpURLConnection.userAgent;
            if (tunnelUserName != null && tunnelPassword != null) {
                //add basic authentication header for the proxy
                sun.misc.BASE64Encoder enc = new sun.misc.BASE64Encoder();
                String encodedPassword = enc.encode((tunnelUserName + ":" + tunnelPassword).getBytes());
                msg = msg + "\nProxy-Authorization: Basic " + encodedPassword;
            msg = msg + "\nContent-Length: 0";
            msg = msg + "\nPragma: no-cache";
            msg = msg + "\r\n\r\n";
            System.err.println(msg);
            byte b[];
            try {
                //we really do want ASCII7 as the http protocol doesnt change with locale
                b = msg.getBytes("ASCII7");
            } catch (UnsupportedEncodingException ignored) {
                //If ASCII7 isn't there, something is seriously wrong!
                b = msg.getBytes();
            out.write(b);
            out.flush();
            byte reply[] = new byte[200];
            int replyLen = 0;
            int newlinesSeen = 0;
            boolean headerDone = false;
            InputStream in = tunnel.getInputStream();
            boolean error = false;
            while (newlinesSeen < 2) {
                int i = in.read();
                if (i < 0) {
                    throw new IOException("Unexpected EOF from Proxy");
                if (i == '\n') {
                    headerDone = true;
                    ++newlinesSeen;
                } else
                        if (i != '\r') {
                    newlinesSeen = 0;
                    if (!headerDone && replyLen < reply.length) {
                        reply[replyLen++] = (byte) i;
            //convert byte array to string
            String replyStr;
            try {
                replyStr = new String(reply, 0, replyLen, "ASCII7");
            } catch (UnsupportedEncodingException ignored) {
                replyStr = new String(reply, 0, replyLen);
            //we check for connection established because our proxy returns http/1.1 instead of 1.0
            if (replyStr.toLowerCase().indexOf("200 connection established") == -1) {
                System.err.println(replyStr);
                throw new IOException("Unable to tunnel through " + tunnelHost + ":" + tunnelPort + ". Proxy returns\"" + replyStr + "\"");
            //tunneling hanshake was successful
    }<----- End Copy and Paste -------->

    BTW, if you are using an implementation in which
    the http/https implementation recognises
    the java.net.Authenticator properly, you can use
    that framework to do basic/digest authentication.
    I think Sun's JDK 1.4 supports both basic
    and digest for both proxies and the actual end
    site you connect via http/https, but I haven't
    tested it to be sure. I know it works
    with http/basic at the end host.
    Today's Ob hack:
    import java.net.*;
    import java.io.*;
    class MyAuth extends Authenticator {
        protected PasswordAuthentication getPasswordAuthentication() {
            System.out.println("The realm '" + getRequestingPrompt() +
                "' at '" + getRequestingHost() + ":" + getRequestingPort() +
                "'\n" + "using " + getRequestingProtocol() + " is requesting " +
                getRequestingScheme().toUpperCase() + " authentication.");
            System.out.println("");
            System.out.println("What should we send them?  Let's send them ...");
            System.out.println("");
            return new PasswordAuthentication("username", "password".toCharArray());    }  
    public class MyURL {
        public static void main(String[] args) throws Exception {
            // set to the authenticator you want to use.
            Authenticator.setDefault(new myAuth());
            URL url =
                new URL("http://www.some.com/something_protected/index.htm");
            BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    url.openStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null) {
                System.out.println(inputLine);
            in.close();

  • Problems with using sample code for WebService client

    Hi <br /><br />Ive downloaded the sample code from the Adobe <br />website but when i run the client i get an error which i dont understand:<br /><br />client side:<br />ERROR: java.lang.NullPointerException<br />AxisFault<br /> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException<br /> faultSubcode: <br /> faultString: java.lang.NullPointerException<br /> faultActor: <br /> faultNode: <br /> faultDetail: <br />     {http://xml.apache.org/axis/}hostname:GRFNZTS1SRV<br /><br />java.lang.NullPointerException<br />     at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)<br />     at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)<br />     at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:10 87)<br />     at weblogic.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1411)<br />     at weblogic.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:16 13)<br />     at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumen tScanner.java:1174)<br />     at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:399 )<br />     at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1138)<br />     at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)<br />     at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:133)<br />     at javax.xml.parsers.SAXParser.parse(Unknown Source)<br />     at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)<br />     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)<br />     at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)<br />     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) <br />     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)<br />     at org.apache.axis.client.Call.invokeEngine(Call.java:2784)<br />     at org.apache.axis.client.Call.invoke(Call.java:2767)<br />     at org.apache.axis.client.Call.invoke(Call.java:2443)<br />     at org.apache.axis.client.Call.invoke(Call.java:2366)<br />     at org.apache.axis.client.Call.invoke(Call.java:1812)<br />     at com.adobe.livecycle.samples.pdfgenerator.axis.PdfGenSoapBindingStub.getConfigurationXML(P dfGenSoapBindingStub.java:373)<br />     at com.adobe.livecycle.samples.pdfgenerator.webserviceclient.WebServiceClient.generatePDF(We bServiceClient.java:174)<br />     at com.adobe.livecycle.samples.pdfgenerator.webserviceclient.WebServiceClient.main(WebServic eClient.java:95)<br /><br />and on the server side:<br /><Error> <com.adobe.idp.um.businesslogic.authentication.AuthenticationManagerBean> <000000> <UserM:GENERIC_ERROR:     [Thread: ExecuteThread: '58' for queue: 'default', hc: 735284715 ]No Auth Providers found > <br /><Sep 17, 2007 8:27:43 PM IDT> <Warning> <com.adobe.idp.common.errors.exception.IDPLoggedException> <000000> <UserM:GENERIC_WARNING:     [Thread: ExecuteThread: '58' for queue: 'default', hc: 735284715 ]| [AuthenticationManagerBean] errorCode:12801 errorCodeHEX:0x3201 message:No Auth Providers found in Config>

    i get this exception
    C:\Program Files\JMF2.1.1e\bin\video>javac FrameAccess.java
    C:\Program Files\JMF2.1.1e\bin\video>java FrameAccess C:\Program Files\JMF2.1.1e
    \bin\video\gtrevor.avi
    Failed to create a processor from the given url: javax.media.NoProcessorExceptio
    n: Cannot find a Processor for: C:\Program
    how to solve it

  • How to get the error code for http request

    I have to implement the if..elso loop depending on the error code return as below.
    String host="127.0.0.2"
    if the this servers is not found or itis down it should return error code, based on that I have to change the host value to some other server like "127.0.0.4" , Can you let me know how it can be implemented? Please help me.

    Here is my requirement...
    say.. if client hit " http:\\ 172.0.0.3: 1000/index.jsp" and if the server 172.0.0.3 is not available i will set the server host to some other and request will redirect accoringly like " http:\\ 172.0.0.4: 1000/index.jsp"

  • Lowest cost SSL accelerator for HTTPS client certificate auth testing

    Hi,
    I need to test some some https connections that use client certificate authentication and need a low cost ebay-purchasable cisco ssl box (I think).
    My understanding is that some Cisco products can terminate https connections (once client cert auth is successful) and then pass on the http connection with a cookie value set with the Subject DN information from the client certificate - correct me if I'm wrong :).
    So any suitable kit for this?
    Thanks,
    Marc.

    Hi Oliver,
    Have a look at this http://forum.java.sun.com/thread.jsp?forum=2&thread=258908
    You may find the answer to your question there.
    Majid.

  • Site Code for SCCM Clients installed from Secondary Site Server

    Hello,
    We have started the implementation of SCCM 2012 R2 at our network. We have setup a Primary site (JFO) server & pushed out the installation of SCCM clients to the local subnet. Things went fine.
    We have installed a Secondary site (ATC) at a remote network. We have tested client installation in the installation wizard we specify to install the client from the Secondary server. When SCCM client installed from the Secondary server, the site
    code that appears on the client in the control panel->Configuration Manager client settings is the site code of the primary site and not the secondary site.
    Is this behavior is normal

    Ultimately, secondary sites do *not* manage clients and so will never be assigned to the secondary site. However, do note that resources in the console that represent systems that do not have the client agent may show the site code of the secondary site
    if they fall within a boundary group associated with that secondary site. This is done so that client push can be initiated from the correct site. More gory details at http://blog.configmgrftw.com/secondary-sites-and-boundary-groups/
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Strange multiThreading behaviour for http client

    Hi
    I am writting an app which Posts data to two separate URL's. Since I didn't want one posting method to be held up by the other one I put each Posting method into its own thread. Each Thread repeatedly creates an HttpClient and posts away data to its respective URL. However I can see that the threads are waiting for eachother! ie: Thread2 won't post its data untill Thread1 receives its http response.
    Why could this be ? I am not sharing any objects between the two threads. I even tried implementing the one thread with java.net and the other one with apache.commons.httpclient. Is it physically impossible to send two http requests similtaneously?
    Thanks
    Aharon

    Okay heres the code, I tried to cut out some details but its still quite long winded
    I hope the problem is as simple as mistakenly using run() instead of start() ;)
    public class test
         * @param args
         public static void main(String[] args)
              FlightTimeManager ftmnew = new FlightTimeManager();
              FlightTracker ft =new FlightTracker();
    public class FlightTracker extends Thread
         private final int REFRESH_RATE = 100;
         private boolean finish;
         private long lastId;
         public FlightTracker()
              this.finish = false;
              this.lastId = 0;
              start();
         public void stopTracker()
              this.finish = true;
         public void run()
              while (!finish)
                   processFlightList();
                   try {
                        Thread.sleep(REFRESH_RATE);
                   } catch (InterruptedException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
         private void processFlightList()
              ServerCon serverCon = new ServerCon();
              Vector<String> vec = serverCon.receiveFlightList(this.lastId,20);
              String outputStr = "";
              if (vec != null)
                   serverCon = new ServerCon();
                   serverCon.updateFlights(vec);
    public class ServerCon
         public ServerCon()
         public Vector<String> receiveFlightList(long id,int amount)
              HttpLink httpLink = new HttpLink();
              Vector<String> vec = null;
              String url = "my website url";
              String postStr = "my post parameteres";
              int error = httpLink.converseWithServer(url, postStr,true);
              if (error == HttpLink.OK)
                   String flightStr = httpLink.getResponse();
                   if (flightStr != null && !flightStr.equals("0"))
                        Scanner scanner = new Scanner(flightStr);
                        vec = new Vector<String>();
                        scanner.useDelimiter(",");
                        while (scanner.hasNext())
                             vec.add(scanner.next());                         
              return vec;
         public boolean updateFlights(Vector<String> flightLocationList)
              HttpLink httpLink = new HttpLink();
              boolean success = false;
              String postStr = "my post parameteres";
              int error = 0;
              String url = "my website url";
              error = httpLink.converseWithServer(url, postStr, false);
              if (error == HttpLink.OK)
                   success = true;
              return success;
    public class HttpLink
         public static final int OK = 0;
         public static final int ENCODING_EXCEPTION = 1;
         public static final int MALFORMED_URL_EXCEPTION = 2;
         public static final int IO_EXCEPTION = 3;
         private String responseString;
         public HttpLink()
              this.responseString = null;
         public int converseWithServer(String urlStr,String sendStr,boolean waitforResponse)
              int error = OK;
              try
                   URL url = new URL(urlStr);
                   URLConnection connection = url.openConnection();
                   connection.setDoOutput(true);
                   OutputStreamWriter out = new OutputStreamWriter(
              connection.getOutputStream());
                   out.write(sendStr);
                   out.close();
                   BufferedReader in = new BufferedReader(
                             new InputStreamReader(
                             connection.getInputStream()));
                   if (waitforResponse)
                        boolean receivedInfo = false;
                        String response;     
                        while ((response = in.readLine()) != null)
                             this.responseString = new String(response);
                             receivedInfo = true;
                        if(!receivedInfo)
                             this.responseString = null;
                   in.close();
              catch (UnsupportedEncodingException e)
                   error = ENCODING_EXCEPTION;
                   e.printStackTrace();
                   this.responseString = e.getMessage();
              catch (MalformedURLException e)
                   error = MALFORMED_URL_EXCEPTION;
                   e.printStackTrace();
                   this.responseString = e.getMessage();
              catch (IOException e)
                   error = IO_EXCEPTION;
                   e.printStackTrace();
                   this.responseString = e.getMessage();
              return error;
         public String getResponse()
              String response = null;
              if (this.responseString != null)
                   response = new String(this.responseString);
                   //this.responseString = null;
              return response;
    public class FlightTimeManager extends Thread
         private final int REFRESH_RATE = 10000;
         private boolean finish;
         public FlightTimeManager()
              this.finish = false;
              start();
         public void stopManager()
              this.finish = true;
         public void run()
              while (!finish)
                   postData();
                   try {
                        Thread.sleep(REFRESH_RATE);
                   } catch (InterruptedException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
         public void postData()
              String outputStr = "";
              HttpClient httpClient = new HttpClient();
              String url = "my website url";
              PostMethod meth = new PostMethod(url);
              meth.addParameter(some parameter);
              try
                   httpClient.executeMethod(meth);
              catch (HttpException e)
                   e.printStackTrace();
              catch (IOException e)
                   e.printStackTrace();
    }

  • How to setup HTTP client for HTTP to File scenario

    Hey guys
    i have a scenario wherein one of our clients is sending invoices(as XML message) over  HTTP(client is outside our landscape) and i have to to send this invoice to a File system from where it will be picked up by an ABAP code(picking of the file has to be done by ABAper so i m not concerned with that)
    the way i m starting off this project is that
    i will create a sender and receiver data type,message type and Message interface,Message mapping is 1-1 so its kinda simple and then Interface mapping.
    in configuration i wont be creating and sender communication channel and sender Agreement,i need receiver communication channel,receiver determination and interface determination.
    does my design and configuration looks good to you guys?
    also i waz goin through some threads and it says that i need to setup HTTP client for this scenario and then specify a URL in a specific format.
    where will i setup the HTTP client and where will i specify the URL?
    thanx
    ahmad

    Ahmad,
    ><i>does my design and configuration looks good to you guys?</i>
    Is correct.
    ><i>where will i setup the HTTP client and where will i specify the URL?</i>
    Take a look at this thread and check the HTTP Client code.
    Copy the code and save it as a HTML file and you have the HTTP Cliet ready. GIve the details of your server, sender service, interface etc and trigger the call to XI.
    In a real time scenario, you will need to use the URL used in the HTTP Client code from your WebApplication to trigger the call to XI.
    /message/266750#266750 [original link is broken]
    Regards
    Bhavesh

  • Survey Parameter XML for http(s)

    Hello Gurus an Experts,
    I try to send a survey via attachment of an email. I would like to use http, but I don´t get the sendfile in the survey suite when I try to download a presentation format (It works for bsp).
    I´ve read the sap-note 836945 for generating urls and I made it work for bsp. The problem here is, that the customer needs a system access to store the survey.
    It would be much better to do this via http(s) but when I try to change the xml parameters for http(s) I don´t know what to fill in for connectorID (additional conector of external cat-server). Then I get an alert "connector . . . not(yet) defined.
    It would be great if someone could help me.
    Fabian

    Hi Alicia,
    I've got an answer to my OSS Message and they pointed me to this Pages in the CRM 5.0 Documentation:  [XML Parameters|http://help.sap.com/saphelp_crm50/helpdata/en/e2/5756cb769ae745aa2f5ca5ff95d63c/frameset.htm] and [url Usage|http://help.sap.com/saphelp_crm50/helpdata/en/bb/dc4c46cae59d45a07569cb29f7b08f/frameset.htm]. The [url Usage|http://help.sap.com/saphelp_crm50/helpdata/en/bb/dc4c46cae59d45a07569cb29f7b08f/frameset.htm] is interesting because of the last sentences:
    "Here, the survey results are first sent to a Survey Mailer. In this case, the Survey Mailer receives the http request and then mails the results to the CRM Server Mail User, where they can be processed. The Survey Mailer needs to be set up the administrator at the customer."
    So I think the solution I've posted on the SCN Wiki: [Survey processing without opening a connection to the CRM Backend from the Internet |https://wiki.sdn.sap.com/wiki/x/ioAQB] is the way to go. I've now also added an PHP Script Example Code which shows how to the POST parameters can be extracted sent via E-Mail on the Server and not on the client side.
    I hope that helps.
    Best regards
    Gregor

  • A class to format an XML string into indented xml code

    I am looking for a class or a piece of code to format an XML string into indented xml code
    for example: an XML string as follows
    <servlet><servlet-name>Login</servlet-name>servlet-class>ucs.merch.client.system.LoginServlet</servlet-class></servlet><servlet-mapping><servlet-name>Login</servlet-name>
    to format into :
    <servlet>
    <servlet-name>Login</servlet-name>
    <servlet-class>ucs.merch.client.system.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/Login</url-pattern>
    </servlet-mapping>
    e-mail : [email protected]

    Xerces has a class called OutputFormat
    If you have your XML document in memory, you can format it using the method setIndenting(true) on the OutputFormat class. The following is an example:
    assuming xmlDoc is our document and fileName is the name of the file we wish to write to:
    OutputFormat format = new OutputFormat(xmlDoc);
    // setup output file name
    PrintWriter printwriter = new PrintWriter(new FileWriter(fileName, false));
    // construct an XMLSerializer for writing the document
    XMLSerializer serializer = new XMLSerializer( printwriter, format );
    // Ensure output is indented correctly...
    format.setIndenting(true);
    // set serializer as a DOM Serializer
    serializer.asDOMSerializer();
    // serialize the document
    serializer.serialize(xmlDoc);
    hope this helps!
    Rob.

  • Help with some html code for flash site!

    Got this site>
    http:/www.thedesignport.com
    Site works great! everything is uploaded! What I cant seem to
    get workning is the html code to add a description under the title
    of the website in a google search? Goto google enter "topanga
    mountain school" I'm top spot on the second page but with NO
    description?? have a look at the html code for
    http://www.thedesignport.com
    Have I gone wrong somewhere?? But I've found if you put
    "topanga mountain school pdf" into google ( I have three pdf's on
    the site) My site is Second on the search with a DESCRIPTION of the
    pdf's under the site name?? I dont get it?? Any help would be
    great!

    You're not getting any help here because this is the forum for discussions of the Community Help Client application and Help system in general. For CSS questions, you should probably try something like the Dreamweaver forum.

Maybe you are looking for

  • Links to Google Docs not working

    Hi, I follow a blog which posts links to soccer results and fixtures on Google Docs. When I click on one of these links when in Safari on the Mac the document opens perfectly. When I try and link to the same document in Safari on the iPhone I get an

  • How to reach an Oracle BI Server (client 1) from another client (client 2)

    Hi all, I'm new to the BI EE's world and I have a connection's problem. I have installed Oracle BI EE 10.1.3.3.2 (Complete installation - all component) & Oracle 10g DB on my pc (pc 1). The BI server is started. ..and then another colleague of mine i

  • Is a good practice store pages into ECM ?

    Hello there. My team is building a portal that will be composed by a template/skin and some static pages. We think to put this pages into ECM, there is a good practice? How could i internacionalizate ? Thanks you.

  • Queries running Slow!!! Please help

    Hi all, One of our clients is complaining that the discoverer reports are taking a long time to run, reports that used to take minutes before is taking hours now!!! The version of BI discoverer is 10 and database also is 10g and the platform is win s

  • 'Volume Adjustment' effect is different between iTunes and iPod

    I spent weeks using the 'Volume Adjustment' option on hundreds of quieter albums in my library to consistently match the louder volume levels of newer albums of my library. I wanted playback to be even across the board of my entire library. Some need