HTTP request with dot in keynames

Hi,
I am integrating flex framework with server side as Spring
MVC.
In my application I have a Employee object which looks like
Employee
|----address
|-----street
|-----city
For Spring databinding to work the request parameter for city
should look like employee.address.city=appleton.
How do I send a request using Flex where the request key is
"employee.address.city" ?
Please help me...

Hi,
Are you using LCDS? There is some article on how to use LCDS
with Spring on:
http://www.adobe.com/devnet/flex/articles/spring_flex_print.html

Similar Messages

  • After Mavericks OS upgrade, can no longer make any HTTP requests with the OPTIONS verb

    My machine can no longer make any HTTP requests with the OPTIONS verb. This happens whether I try it curl, postman, or ajax.
    curl -i -X OPTIONS http://www.google.com returns curl: (52) Empty reply from server
    It should return a long string containing a 405 error code.
    I suspect that this is related to the Mavericks upgrade I did earlier this week. I only have one mac (my dev machine) with Mavericks. Other macs are Mountain Lion and they don't have this problem.
    Can anyone else with Mavericks confirm whether or not they have this problem too?
    If this is Mavericks related, anyone know of a fix or workaround?

    Turns out that it wasn't Mavericks related at all. Cisco AnyConnect has a security module running behind the scenes even when you're not VPNed into anything. It was blocking my OPTIONS verb requests. I was able to make these calls after uninstalling.
    Re-installing with Web Security turned off should prevent it from happening. While I was uninstalling I did notice that there was a web security uninstall script in /opt/cisco/vpn/bin but I already committed to taking the whole app off my machine. Simply running that script could have done it too.
    I must give credit to Ben Nadel. It was his blog post that helped me fix this issue.
    http://www.bennadel.com/blog/2559-Cisco-AnyConnect-VPN-Client-May-Block-CORS-AJA X-OPTIONS-Requests.htm?&_=0.10495476494543254#comments_44093

  • Make HTTP request with Idoc Script

    Is there a way to make an HTTP request to a remote host with Idoc?
    For example, in PHP you could do:
    file_get_contents('http://website.com/');
    Does Idoc have a similar method?

    "garry.b" <[email protected]> wrote in
    message
    news:gnndbf$i2q$[email protected]..
    > Hi,
    >
    > When using AS3 to generate an HTTP POST request:
    >
    > var service:HTTPService = new HTTPService ();
    > service.url = "
    http://localhost:9090/service";
    > service.method = "post";
    > // service.request = {itemId: "12345"};
    > service.send ({itemId: "12345"});
    >
    > my CherryPy web server complains about unexpected body
    parameters:
    >
    > HTTPError: (400, 'Unexpected body parameters: itemId')
    >
    > Using Firebug's Network display, its Post tab shows the
    following content:
    >
    > Referer:
    http://localhost:8080/log/log-1.0-SNAPSHOT.swf
    > Content-type: application/x-www-form-urlencoded
    > Content-length: 12
    >
    > itemId=12345
    >
    > which looks very strange to me as I would expect the
    Referer, etc.,
    > request
    > headers to show up in the Request Headers section and
    not as POST body
    > content.
    > While this could be some Firebug issue, I think the
    request message is
    > really
    > formatted incorrectly. When the web server gets the
    request, it does
    > recognize
    > 'itemId' as a body parameter but then complains that
    it's unexpected.
    >
    > I've googled the error message, studied HTTPService
    examples, spent
    > several
    > hours playing with it and am stumped. Tracy Spratt
    suggested setting the
    > service 'request' to force a POST and I tried it but am
    getting the same
    > error.
    > How do I make a POST request? Can I get POST data into
    the message body?
    > Stick with URL parameters only?
    What happens if you post to the same service using an html
    form?

  • Making HTTP requests with content-disposition

    I need to write a Java app that can access a web server that returns most content as files (ie. using content-disposition).
    Previously I have used something like this to make HTTP GET requests to return files on a web server.
    ��String strUrl = "http://www.yahoo.com/index.html";
    ��URL url = new URL( strUrl );
    ��URLConnection conn = url.openConnection();
    ��InputStream in = url.openConnection.getInputStream();
    ��byte[] buf = new byte[conn.getContentLength()];
    ��in.read( buf, 0, getContentLength() );
    This doesn't seem to work when the HTTP header has "content-disposition". Here is the header returned by the web server.
    ��Server=Microsoft-IIS/4.0
    ��Date=Thu, 04 Jul 2002 13:18:53 GMT
    ��Content-Disposition=filename=file.xyz
    ��Content-Type=text/html
    ��Cache-control=private
    ��Transfer-Encoding=chunked
    ��content-length=30306
    The number of bytes actually read (as returned by in.read()) is less than the number of bytes as indicated in the content-length.
    How can I handle this?
    Mike

    I have managed to discover that an incorrect content-type header is causing the problems that I have been encountering with file downloads from a web server.
    As I mentioned in a previous post the content-length header was not a good indicator of file download success.
    My program downloads pictures from the internet, almost always in .jpeg format. I have found that files are successfully downloaded only when the content-type header contains the words: image/jpeg. In some instances although I am trying to download a picture file the http content-type header is stated as being: text/html.
    In those instances where text/html is given as the content-type file download fails in so far as the files are not acutally viewable on the native system (Windows varieties in my case).
    To determine the error I used the following code:
    URLConnection urlConnect = myURL.openConnection();
    System.out.println("Http Header, Content-Type: "+urlConnect.getContentType());
    System.out.println("Http Header, Content-Length: "+urlConnect.getContentLength());Even though content-length mostly corresponded with the downloaded files length, if the Conten-Type header was wrong then the file was all but useless.
    Regards
    Davo

  • Problem in sending a HTTPS request with weblogic 8.1

    Hi ,
    I am tring to do a HTTPS connection on weblogic8.1 and when i ever i try to do i get the following error.
    Note that the same code works fine for me in the Jboss , but not for weblogic
    The error is
    java.lang.StackOverflowError
         at java.nio.charset.Charset.isSupported(Unknown Source)
         at java.lang.StringCoding.lookupCharset(Unknown Source)
         at java.lang.StringCoding.decode(Unknown Source)
         at java.lang.String.<init>(Unknown Source)
         at java.lang.String.<init>(Unknown Source)
         at sun.security.util.DerValue.getPrintableString(Unknown Source)
         at sun.security.util.DerValue.getAsString(Unknown Source)
         at sun.security.x509.AVA.toKeywordValueString(Unknown Source)
         at sun.security.x509.AVA.toString(Unknown Source)
         at sun.security.x509.RDN.toString(Unknown Source)
         at sun.security.x509.X500Name.generateDN(Unknown Source)
         at sun.security.x509.X500Name.toString(Unknown Source)
         at sun.security.x509.CertificateIssuerName.toString(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.X509CertInfo.<init>(Unknown Source)
         at sun.security.x509.X509CertImpl.parse(Unknown Source)
         at sun.security.x509.X509CertImpl.<init>(Unknown Source)
         at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
         at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
         at sun.security.pkcs.PKCS7.parseSignedData(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.parse(Unknown Source)
         at sun.security.pkcs.PKCS7.<init>(Unknown Source)
         at sun.security.util.SignatureFileVerifier.<init>(Unknown Source)
         at java.util.jar.JarVerifier.processEntry(Unknown Source)
         at java.util.jar.JarVerifier.update(Unknown Source)
         at java.util.jar.JarFile.initializeVerifier(Unknown Source)
         at java.util.jar.JarFile.getInputStream(Unknown Source)
         at weblogic.utils.classloaders.ZipSource.getInputStream(ZipSource.java:33)
         at weblogic.utils.classloaders.ZipSource.getBytes(ZipSource.java:67)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:404)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.doGetImpl(Unknown Source)
         at java.security.Security.getImpl(Unknown Source)
         at java.security.KeyFactory.getInstance(Unknown Source)
         at sun.security.x509.X509Key.buildX509Key(Unknown Source)
         at sun.security.x509.X509Key.parse(Unknown Source)
         at sun.security.x509.CertificateX509Key.<init>(Unknown Source)
         at sun.security.x509.X509CertInfo.parse(Unknown Source)
         at sun.security.x509.

    dkarr, Thanks for your reply.<BR>
    here is the constructor I got for the class 'com.corizon.ps.oneview.servlet.OneViewWritebackResultServlet'
    <BR><BR>
    <b> public OneViewWritebackResultServlet()<BR>
    {<BR>
    senderThread = null;<BR>
    jmsConnectionHandler = null;<BR>
    closureManager = null;<BR>
    mRequestSenderThread = null;<BR>
    connected = false;<BR>
    }</b><BR>
    <BR>
    Is this ok ?
    <BR>
    Thanks,<BR>
    -Ninad<BR>

  • HTTP POST Request with XML file in

    Hi @ all,
    I would like to send an HTTP Request with an XML File in the body to an SAP System
    I have the target URL and the a XML File.
    Now the question is. Is it possible to use something like the HTTP_POST FuBa to send an url post request with an xml file?
    If yes can anybody give me a hint?
    I have a php script which exactly do this coding. But to integrate it all in one system it is necessary to transform it into ABAP and call it there.
    // compose url and request and call send function
    function test($productID, $categoryID) {
         // create url
         $PIhost = "XXX.wdf.sap.corp";
         $PIport = "50080";
         $PIurl = "/sap/xi/adapter_plain";
         $PIurl .= "?sap-client=800";
         $PIurl .= "&service=XXX";
         $PIurl .= "&namespace=XXX";
         $PIurl .= "&interface=Frontend_Interface";
         $PIurl .= "&qos=EO";
         $PIurl .= "&sap-user=XXX";
         $PIurl .= "&sap-password=XXX";
         // create xml
         $request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
         $request .="<n1:FrontendInbound_MessageType xmlns:n1=\"http://crmpiebay.com\">\n";
         $request .= "\t<FrontendInbound>\n";
         $request .= "\t\t<ProductName/>\n";
         $request .= "\t\t<ProductCategory>".$categoryID."</ProductCategory>\n";
         $request .= "\t\t<ProductID>".$productID."</ProductID>\n";
         $request .= "\t\t<MessageID/>\n";
         $request .= "\t</FrontendInbound>\n";
         $request .= "</n1:FrontendInbound_MessageType>";
         // send http request
         postToHost($PIhost, $PIport, $PIurl, $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]."/".$_SERVER["PHP_SELF"], $request);
    // send post request to PI server
    function postToHost($host, $port, $path, $referer, $data_to_send) {
      $fp = fsockopen($host, $port);
      if($fp) {
           $res="";
           fputs($fp, "POST $path HTTP/1.1\r\n");
           fputs($fp, "Host: $host\r\n");
           fputs($fp, "Referer: $referer\r\n");
           fputs($fp, "Content-type: text/plain\r\n");
           fputs($fp, "Content-length: ". strlen($data_to_send) ."\r\n");
           fputs($fp, "Connection: close\r\n\r\n");
           fputs($fp, $data_to_send);
           while(!feof($fp)) {
               $res .= fgets($fp, 128);
           fclose($fp);
           return $res;
    Would be great if anybody could give me a hint how to solve such a HTTP Post request with XML body data.
    Thanks in advance.
    Chris
    Edited by: Christian Kuehne on Feb 26, 2009 4:32 PM

    hi friend could you please share your solution regarding this query if u got it already?

  • HTTPS request signed by client certificate from PL/SQL procedure

    Hi All, please help.
    The PL/SQL procedure connects to different web services, using both HTTP/HTTPS, for HTTPS sever certificates were used. Everything was OK.
    The next service requires client to sign requests with client certificate. I made the client certificate, sign it by CA, store it in Wallet Manager.
    Is here the possibility to send signed HTTPS request from PL/SQL?
    If not, how to do it using Java and encapsulate for PL/SQL?
    Please answer ASAP!!!

    It is pretty straight-forward to make HTTPS requests with UTL_HTTP.
    To do so, you first need to create an Oracle wallet on the database server host with Oracle Wallet Manager. If your database resides on Windows, I believe a short-cut has been created in the Windows menu. On Linux, it can be invoked from $ORACLE_HOME/bin/owm.
    Once the wallet is created, you need to make an additional call to utl_http.set_wallet(<wallet-directory>, <wallet-password>) before any utl_http.request or utl_http.begin_request calls. The <wallet-directory> is the wallet directory where you will find the cwallet.sso and/or ewallet.p12 files, using the format "file:/<wallet-directory>". For example:
    utl_http.set_wallet('file:/home/oracle/wallets/my_wallet/', '123456');
    When an Oracle wallet is created, it is pre-populated with common certificate authorities' certificates (e.g. Verisign). In the event that the server certificate of the HTTPS host is not signed by one of those common certificate authorities, you need to import the additional certificate authority's certificate in your wallet using Oracle Wallet Manager.

  • How to send a HTTP request to servlet in java application

    I'm new in Java. I need to send a HTTP request with parameters to servlet in a java aplication. Here is my code. It can be compiled but always threw an exceptions when I ran it. Can anyone help?
    package coreservlets;
    import java.io.*;
    import java.net.*;
    public class PostHTTP
         public static void main(String args[])
              throws IOException, UnknownHostException {
              try
              // URL and servlet
                   URL myURL = new URL("http://pc076/servlet/coreservlets.OffHold");
                   URLConnection c = myURL.openConnection();
                   c.setUseCaches(false);
                   c.setDoOutput(true);
                   ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
                   PrintWriter out = new PrintWriter(byteStream, true);
    //parameters
                   String postData = "REASON_CODE=3B&RSPCODE=JSmith&CASENUM=NA795401&REPLY=123&SOURCE=XYZ&REPLYLINK=http://pc076/servlet/coreservlets.ShowParameters";
                   out.print(postData);
                   out.flush();
                   String lengthString = String.valueOf(byteStream.size());
                   c.setRequestProperty("Content-Length", lengthString);
                   c.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                   byteStream.writeTo(c.getOutputStream());
                   BufferedReader in =     new BufferedReader(new InputStreamReader
                                                 (c.getInputStream()));
                   String line;
                   //String linefeed = "\n";
                   //resultsArea.setText("");
                   while((line = in.readLine()) != null) {
                        System.out.println(line);
                        //resultsArea.append(linefeed);
              catch(IOException ioe) {
              // Print debug info in Java Console
              System.out.println("IOException: " + ioe);

    here are some updates to your code I haven't tested it running
    post again if you still have trouble
    URL myURL = new URL("http://pc076/servlet/coreservlets.OffHold");
    HttpURLConnection c = (HttpURLConnection)myURL.openConnection();
    c.setDoInput(true);
    c.setDoOutput(true);
    ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
    String lengthString = String.valueOf(byteStream.size());
    c.setRequestProperty("Content-Length", lengthString);
    c.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    PrintWriter out = new PrintWriter(byteStream, true);
    //parameters
    String postData = "REASON_CODE=3B&RSPCODE=JSmith&CASENUM=NA795401&REPLY=123&SOURCE=XYZ&REPLYLINK=http://pc076/servlet/coreservlets.ShowParameters";
    out.print(postData);
    out.flush();
    byteStream.writeTo(c.getOutputStream());
    // connect
    c.connect();
    BufferedReader in = new BufferedReader(new InputStreamReader
    (c.getInputStream()));
    String line;
    while((line = in.readLine()) != null)
        System.out.println(line);

  • Load balancing Http/https requests of SRM

    Hi all,
    we are on SRM 5.0 with CI and one DI , we don't have any web dispatcher for routing http/https requests.
    Currently CI is flooded with all requests and DI is sitting idle no routing  is  going on.... and users are experiencing Time out expceptions ...
    we  have configured SMLG  and services in SICF have group assigned...
    we have BI portal where users log in and  access all SRM web applications like shopping cart, invoice....
    Please suggest how to handle the load balancing of http/https requests with message server...
    Thanks,
    Subhash.G

    Thanks

  • Sending an http request

    Hi,
    I want to send an http request with a string(this is an xml string)which will give me a response which contains an xml string again.Can anybody tell me how can i do it in java.Any sample code will be a great help
    thanks in advance.

    This is a example, hope to be useful for you.
    String xml = "<?xml version="1.0" encoding="GBK"?>"
    + "<operation_info>"
    + "<request_code>11000008</request_code>"
    + "<id_number>13148709165</id_number>"
    + "<id_type>2</id_type>"
    + "<session_id>100000002226</session_id>"
    + "<device_uid>100000000005</device_uid>"
    + "</operation_info>";
    String http_url = "http://127.0.0.1:8888/protocol";
    URL sendUrl = new URL(http_url);
    URLConnection urlCon = sendUrl.openConnection();
    urlCon.setDoOutput(true);
    urlCon.setDoInput(true);
    HttpURLConnection httpConnection = (HttpURLConnection) urlCon;
    httpConnection.setRequestMethod("POST");
    httpConnection.setRequestProperty("Content-Type", "text/xml;charset=GBK");
    httpConnection.setRequestProperty("Content-Length", Integer.toString(xml.length()));
    PrintStream ps=null;
    try {
    ps = new PrintStream(httpConnection.getOutputStream());
    }catch(java.net.ConnectException e){
    e.printStackTrace();
    return "error"; ;
    xml = URLEncoder.encode(xml);
    try{
    ps.write(xml.getBytes());
    ps.flush();
    //get response stream
    String str = httpConnection.getResponseMessage();
    InputStream is = httpConnection.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    str = "";
    StringBuffer sb = new StringBuffer();
    while ((str = br.readLine())!=null) {
    sb.append(str);
    is.close();
    return sb.toString();
    }catch(Exception e){
    e.printStackTrace();
    return "error"; //exception
    }

  • Taleo Connect Client http request

    Hi guys,
    I'm trying to use Taleo connect client to post http request with the following template:
    POST /way HTTP/1.0
    Host: host
    Content-type: application/x-www-form-urlencoded
    Content-length: request_length
    Accept: */*
    type=type&username=username&password=passwordAccording to user guide: +"Custom HTTP headers are supported through the use of advanced parameters. A parameter having the prefix Header: followed by the name of the header as the name of the parameter can be defined. For example, to define the Content-type the parameter name will be Header:Content-type."+ I have inserted following specification (please read as a table);
    Name Value
    Header: Method POST /way HTTP/1.0
    Header:Host
    Header:Content-type application/x-www-form-urlencoded
    Header: Content-length request_length
    Header: Accept */*
    type=type&username=username&password=password
    Could anyone help me and tell me if it's on the good way or explain me what should i correct?
    Thank you
    N.

    CONNECT command is used when it wants to open another connection. it is similar to secure protocol https. so what i think is you have to open another connection to google and port is 443. but different between connect and GET/POST menthod will send the request header to the server. but connect method will not send any request header but it will transfer some data through that connection. data can be anything like encrypted information, binary file and so on.

  • Question for get information from https site with socket.

    I had tried to send a HTTP request with socket like :
    POST http://xxx.xxx..xxx/bbs/bbsadd.php?blockid=119&title=Hello&content=Hello&clid=101&Ok=OK&s_no=0&mood=1 HTTP/1.0\r\n\r\n"
    Just like this way , I could get some information or submit any message to http site like that .
    But that was not success to get some information for visited https ( like Yahoo ) use the same way .
    I had read some document about the https protocl I knew that had to need SSL for validate .
    But what should I do as a socket program ?
    package sailing;
    import java.net.*;
    import javax.net.ssl.*;
    import java.io.*;
    public class ReceiveMail
         //private Socket toYahoo;
         private SSLSocket toYahoo;
         private SSLSocketFactory factory;
         private BufferedReader read;
         private DataOutputStream write;
         private String login;
         public ReceiveMail(String userName,String userPassword)
              try
                        //this.toYahoo=new Socket("202.43.216.165",80);
                        this.factory=(SSLSocketFactory)SSLSocketFactory.getDefault();
                        this.toYahoo=(SSLSocket)this.factory.createSocket("202.43.216.165",443);
                        //this.login="POST https://edit.bjs.yahoo.com/config/login?.src=ym&login="+userName+"&passwd="+userPassword+" HTTP/1.0\r\n\r\n";
                        this.login="POST https://edit.bjs.yahoo.com/config/login?.src=ym&login="+userName+"&passwd="+userPassword+" HTTP/1.0\r\n\r\n";
                        byte[] makeBytes=this.login.getBytes();
                        this.write=new DataOutputStream(this.toYahoo.getOutputStream());
                        this.write.write(makeBytes,0,makeBytes.length);
                        this.write.flush();
                        this.read=new BufferedReader(new InputStreamReader(this.toYahoo.getInputStream()));
                        String readRes="";
                        String webFileCode="";
                        while((readRes=this.read.readLine())!=null)
                             webFileCode+=readRes;
                        System.out.println(webFileCode);     
              catch(IOException e)
                   System.out.println(e);
         public static void main(String args[])
              new ReceiveMail("sailing","sailing");
    }================================
    If this program perform successful , I think it will print code that login Yahoo Mail success .
    But I just could get an error code .................
    Why?

    Hi,
    According to your post, my understanding is that you wanted to get information from multiple lists once a user was selected.
    There is no out of the box way to accomplish this with SharePoint.
    As a workaround, I recommend to create a list to store the user names. Then you can create relationships between lists using the browser UI. Once you select the user name in the parent list, the associated items will be displayed in the child lists.
    Here are two great articles for you to take a look at:
    http://office.microsoft.com/en-in/sharepoint-server-help/create-list-relationships-by-using-unique-and-lookup-columns-HA101729901.aspx#_Toc270607416
    http://msdn.microsoft.com/en-us/library/ff394632.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Handling Compressed HTTP Requests on Tomcat 6.0.14

    Hi All,
         I am sorry to post this problem here if it not relevant, but I have investigated so much but couldn't come up to a solution.
         I have developed a Web service using JAX-WS 2.1 and successfully deployed on Tomcat 6.0.14. My Web Service accepts and sends large data. So i have tried to use data compression on Tomcat.
         *I have successfully performed sending compressed HTTP Response from tomcat but not able to configure it for accepting compressed HTTP Requests.* If you need more details about my problem read further.
         I have successfully configured my tomcat server.xml like below:
    <!-- HTTP Connector with Data Compression Enabled -->
    <Connector
         port="8080"
         protocol="HTTP/1.1"
         connectionTimeout="20000"
         redirectPort="8443"
         compression="on"
         compressionMinSize="20"
         compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css"
    />     Tomcat will send compressed responses to clients when ever it is willing to accept compressed data otherwise server will send plain responses.
         Now on words when ever server will get HTTP Request with *"Accept-Encoding: gzip"* set it will send compressed response to that HTTP Request and plain response otherwise. All modern web browsers accepts compressed data.
         This is working great.
         *My Problem is I want tomcat to accept and understand compressed HTTP Requests also*, for that I have compressed my request with java.util.zip.GZIPOutputStream and set HTTP Request Property like below:
    "Content-Encoding: gzip"
    "Accept-Encoding: gzip"     But server returns error code 500( Internal Server Error). The server log shows error like:
    com.sun.xml.ws.streaming.XMLReaderException: Unable to create StAX reader or writer
            at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory$Zephyr.doCreate(XMLStreamReaderFactory.java:305)
            at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.create(XMLStreamReaderFactory.java:143)
            at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.create(XMLStreamReaderFactory.java:147)
            at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:133)
            at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:294)
    Caused by: javax.xml.stream.XMLStreamException: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
            at com.sun.xml.stream.XMLReaderImpl.setInputSource(XMLReaderImpl.java:197)
            at com.sun.xml.stream.XMLReaderImpl.<init>(XMLReaderImpl.java:180)
    Caused by: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
            at com.sun.xml.stream.xerces.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:724)
            at com.sun.xml.stream.xerces.impl.io.UTF8Reader.read(UTF8Reader.java:593)     Please guide me through...
    - Tejas Purohit

    Solved it by going to the temporary folder for netbeans:
    C:\Documents and Settings\creator\.netbeans\6.0\apache-tomcat-6.0.14_base\logs This is where it is placed on my install drive. This is where it deploys the builds , not in the C:\Program Files\Apache Software\Tomcat 6.0.14 as I would expected.
    It seems that it is an IDE bug after all it is not cleaning the old logs. For today I found a 64 mb log (localhost.2008-01-02.log).
    Thanks

  • Log HTTP requrest with Jrun4 logs

    Hi,
    I am trying to capture HTTP request with Jrun4 logging. I was
    able to atleast write HTTP request to log file
    (default-access.log), but I am trying change the format of the
    logging. Currently it writes log in following format:
    2008-03-31 10:58:05 default 111.123.234.13 JWS GET
    /myapp/AddPackage HTTP/1.1 500 -1
    What I am trying to accomplish is change format so that JWS
    gets written before the IP addresss or get rid of JWS from above
    log line. Apparently it shows up for all the log entries. So
    basically way I want it to look like it:
    2008-03-31 10:58:05 default 111.123.234.13 GET
    /myapp/AddPackage HTTP/1.1 500 -1
    Any feedback or recommentation on accomplishing this would be
    appreciated.
    Thanks

    user12026694 wrote:
    Solved => typos in generalGood. Please close the topic by marking this question as answered.

  • Problems by getting info out of XML file with a HTTP request

    Hi,
    I have a litte question. I'm working on an application that works together with google maps. In my java code, I get general information about address out of one database table, and I want to add some geographic information like coordinates that I want to retrieve from Google Maps through HTTP:
    Right now my code is like:
    while (resultSet.next())
                             title = resultSet.getString("title").replaceAll("'","''").toUpperCase();
                             author = resultSet.getString("author").replaceAll("'","''").toUpperCase();
                             location = resultSet.getString("location").replaceAll("'","''").toUpperCase();
                             straatnaam = resultSet.getString("straatnaam").replaceAll("'","''").toUpperCase();
                             nummer = resultSet.getString("nummer");
                             landcode = resultSet.getString("landcode").replaceAll("'","''").toUpperCase();
                             address = straatnaam + " " + nummer + " , " + location + " " + landcode;
                             url = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=+key+";
                             String query = "INSERT INTO data2 VALUES ('" + i + "','" + title + "','" + author + "','" + resultSet.getString("date1") + "','" + resultSet.getString("date2") + "','" + location + "','" + resultSet.getString("postcode") + "','" + straatnaam + "','" + resultSet.getString("nummer") + "','" + landcode + "','+something like url.getCoordX+','something like url.getCoordY')";
                             success = sql2.executeUpdate(query);
                             i++;
    Now I don't know how I can handle that. Is it possible to do an HTTP request in Java without using Java Script of servlets? I just want to get the X and Y coordinates out of the XML file.
    The XML file will be something like:
    <kml xmlns="http://earth.google.com/kml/2.0">
    <Response>
    <name>1600 amphitheatre mountain view ca</name>
    <Status>
    <code>200</code>
    <request>geocode</request>
    </Status>
    <Placemark>
    <address>
    1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
    </address>
    <AddressDetails Accuracy="8">
    <Country>
    <CountryNameCode>US</CountryNameCode>
    <AdministrativeArea>
    <AdministrativeAreaName>CA</AdministrativeAreaName>
    <SubAdministrativeArea>
    <SubAdministrativeAreaName>Santa Clara</SubAdministrativeAreaName>
    <Locality>
    <LocalityName>Mountain View</LocalityName>
    <Thoroughfare>
    <ThoroughfareName>1600 Amphitheatre Pkwy</ThoroughfareName>
    </Thoroughfare>
    <PostalCode>
    <PostalCodeNumber>94043</PostalCodeNumber>
    </PostalCode>
    </Locality>
    </SubAdministrativeArea>
    </AdministrativeArea>
    </Country>
    </AddressDetails>
    <Point>
    <coordinates>-122.083739,37.423021,0</coordinates>
    </Point>
    </Placemark>
    </Response>
    </kml>
    many greetings and thanks in advance
    Mathias

    Hi, sorry for being not so clear. My question was actually if it is possible to do a HTTP request in Java without using servlets or being in Java Script. Actually my question was more specific for Google maps, because it didn't seem to work. It was my mistake, and already solved, to forget to make the webservice-call "URL-encoded". Because of that, I always received a HTTP 400 error, and that's why I thought it wouldn't be possible.
    But now I have another, perhaps for you guys stupid question. The result I get from the webservice URL is of the form:
    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.0">
    <Response>
         <name>nieuwelaan 38, Hamme</name>
         <Status>
              <code>200</code>
              <request>geocode</request>
         </Status>
         <Placemark id="p1">
              <address>Nieuwelaan 38, 9220 Hamme, Hamme, Belgium</address>
              <AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
              <Country>
                   <CountryNameCode>BE</CountryNameCode>
                   <AdministrativeArea>
                        <AdministrativeAreaName>Vlaams Gewest</AdministrativeAreaName>
                        <SubAdministrativeArea>
                             <SubAdministrativeAreaName>Oost-Vlaanderen</SubAdministrativeAreaName>
                             <Locality>
                                  <LocalityName>Hamme</LocalityName>
                                  <DependentLocality>
                                       <DependentLocalityName>Hamme</DependentLocalityName>
                                       <Thoroughfare>
                                            <ThoroughfareName>Nieuwelaan 38</ThoroughfareName>
                                       </Thoroughfare>
                                       <PostalCode>
                                            <PostalCodeNumber>9220</PostalCodeNumber>
                                      </PostalCode>
                                 </DependentLocality>
                            </Locality>
                        </SubAdministrativeArea>
                   </AdministrativeArea>
             </Country>
             </AddressDetails>
             <Point>
                   <coordinates>4.126295,51.097724,0</coordinates>
             </Point>
         </Placemark>
    </Response>
    </kml> Now I want to get the value of the coordinates field.
    This is my code:
    address = URLEncoder.encode(address, "UTF-8");
    urlString = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=ABQIAAAA9fEXNK-q6vKpPU0JCmPPkxQjbVBpjtblJJYkDfbMo0e51afwehRmujfvBtJqx1Qehg6e6QgCRY8poA";
    url = new URL(urlString);
    XPath xPath = XPathFactory.newInstance().newXPath();
    Document domDoc = processData(url);
    path = "/kml/Response/Placemark/Point/coordinates";
    coord = xPath.evaluate(path, domDoc);
    System.out.println("coord : " + coord);Now, in the last line, by writing out the value of coord to my screen, I get the value "1", instead of "4.126295,51.097724,0" I would expect, anyone knows what I'm doing wrong?
    greetings
    Mathias

Maybe you are looking for

  • Premiere Pro CC project won't open.

    The last back up was 6 days ago. The error message says 'an unknown error occurred while opening the project'. So I looked on here but the best advice was to try to import the project into a new project. I tried this but it didn't work. I then clicke

  • Is there a way to password lock specific files I put on the playbook?

    is there a way to password lock specific files I put on the playbook - both media & non-media files/folders? ideally if a file is password locked, it can also be made hidden? thanks.

  • Building a new Cube Vs Restricted Key figure in Query - Performance issue

    Hi, I have a requirement to create  a OPEX restricted key figure in Query. The problem is that the key figure should be restricted to about 30 GL Accounts and almost 300 Cost centers. I do not know if this might cause performance issue in the query.

  • Want to learn BSP

    Hi all, I am into ABAP programming now . I am just planning to learn BSP . I want to know what are the contents of BSP . If I have to say in ABAP we have different sections like REports, Forms, Data Uploads, Cross applications, User exits badis and B

  • Character set mismatch during import

    I have exported a tablespace from a database using transportable tablespace option with CHARACTERSET UTF8. And I tried to import into another db where the CHARACTERSET is US7ASCII. Now it says that it cannot import because the charactersets are diffe