Protocol Exception

Hi all
I had a problem with the ftp transfer. I am making use of "sun.net.ftp" package and iam getting the following exception. I am connecting to the remote system thru my application using "PASV" (passive mode).
I have the applcation deployed on "solaris" box and accessing the application thru URL from windows machine. My application consists of a funcationality where i can click on a link to upload/download the files online.
I get the following exception when i perform upload or download.
EXCEPTION :
sun.net.Ftp.FTPProtocolException : 501 PORT not allowed after EPSV ALL
If any of u have encountered this exception please reply asap.
Valuable suggestions are appreciated.
regards
karthik

sun.net.Ftp.FTPProtocolException : 501 PORT not
allowed after EPSV ALLI think the 'EPSV ALL' command instructs the server that the
data connection command syntax outlined in RFC2428 should
only be accepted by the server. That is, you should use the
EPSV command instead of the PASV command, and the EPRT commmand
instead of the PORT command, otherwise the server
will reject the connection attempt. So it looks like the
'EPSV ALL' command is being sent to the server, and then the
'PORT' command is being sent, which would not be allowed after
'EPSV ALL' is sent.
There is more information about this here:
http://www-ece.engr.ucf.edu/~jza/classes/4781/FTP/
Alpha75

Similar Messages

  • Protocol Exception while using getGeneratedKeys() method

    Hi,
    I am getting the below Exception. I am using the Oracle Database 10.2.0.3. JDBC Driver ojdbc14.jar. This exception is thrown, when I am trying to use the getGeneratedKeys() method on the PreparedStatement. I used to get the Unsupported Exception, but after upgrading the Driver, I am getting this Error.
    java.sql.SQLException: Protocol violation
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:207)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:765)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:965)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3338)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3444)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169)
    I am able to run the same code on other remote machine, which contains the replica of the above database. Please help me to get the solution to the above exception. Thanks in advance

    Hello prasadmn,
    I am getting a similar issue with a customer using 10.2.0.3 and using ojdbc5.jar (Oracle JDBC Driver version - "11.1.0.7.0-Production")
    Did you need to upgrade as Ashok mentioned? Did that resolve your problem?
    I tried looking for the bug that Ashok mentioned but I could not find it anywhere.
    Any assistance or direction would be great.
    Thanks

  • WSDL2Java Protocol Exception

    The exception is throwing when WSDL2Java file is used to create the client java files. The same is working before in a different system. The exception is :
    C:\tomcat\webapps\Trail\WEB-INF\classes>java org.apache.axis.wsdl.WSDL2Java http://localhost/ReportServer/ReportExe
    cution2005.asmx?wsdl
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment
    support is disabled.
    java.net.ProtocolException: Server redirected too many times (5)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
            at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
            at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
            at java.lang.Thread.run(Unknown Source)
    C:\tomcat\webapps\Trail\WEB-INF\classes>java org.apache.axis.wsdl.WSDL2Java http://localhost/ReportServer/ReportSer
    ver2005.asmx?wsdl
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment
    support is disabled.
    java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost/ReportServer/ReportServer200
    5.asmx?wsdl
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
            at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
            at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
            at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
            at java.lang.Thread.run(Unknown Source)

    It sounds like the classpath is different and it is unable to locate some of the classes
    Unable to find required classes (javax.activation.DataHandler

  • JMF - unkown protocol exception

    I'm a new jmf developer. In my Linux box i have a
    Exception in thread "main" java.net.MalformedURLException: unknown protocol: v4l
    at java.net.URL.<init>(URL.java:544)
    at java.net.URL.<init>(URL.java:434)
    at java.net.URL.<init>(URL.java:383)
    My video in card is correctly configured with jmfinit.
    Do you help me?
    Thanks!

    Could this problem be caused by some multi-threading issues? The problem only occurs on a html page which uses two frames. Both frames execute sql/jdbc statements. The jdk1.2.2, uses green threads whereas the jdk1.3 uses native threads. So the errors does not happen for green threads, only for native threads.
    Regards,
    Andrej

  • Unsupported Protocol Exception

    Hi,
    I've a weblogic portal application which is deployed fine. Im trying to login to the portal locally.
    Getting the following exception while making a webservice call as part of login.
    ** soapMessage: weblogic.xml.saaj.SOAPMessageImpl@137cd12
    RESPONSE MESSAGE BEING CACHED : <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Failed to receive message java.net.ProtocolException: unsupported protocol: httpunsupported protocol: http</faultstring><detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.net.ProtocolException: unsupported protocol: http
    Thanks for reply in advance.
    Regards
    Karthic

    I have configured the SSL in admin console to to use https. But for some reason request is being formed by http. And so it is saying "unsupported protocol: http"
    Any help much appreciated.

  • DnD: hello world gives strange "no protocol" exception

    experienced DnD hacker, can't get around this:
    I want to support cross-JVM and cross-application DnD to apps like Mozilla NVU or other more complicated target apps.
    First task: simple plain text drag drop - how to implement this? any example codes available?
    Text drag/drop works best when you do it yourself, so I subclasses TransferHandler and Transferable (all this works) but when doing a transferable with only "text/plain" support, it automatically creates hundreds of flavors, also application/x-java-url.
    This is one of the flavor that gets DROPPED into the other JVM
    =======
    getMimeType: application/x-java-url; class=java.net.URL
    getHumanPresentableName: application/x-java-url
    getDefaultRepresentationClassAsString: java.io.InputStream
    getPrimaryType: application
    getSubType: x-java-url
    getRepresentationClass: java.net.URL
    getRepresentationClassString: class java.net.URL
    ERROR: java.awt.dnd.InvalidDnDOperationException: no protocol: hello world=======
    but what I dragged is only text/plain.
    why does this thing add hundreds of other flavors?
    Error I get (and many other apps also get) when reading the value using transferable.getTransferData(flavor): java.awt.dnd.InvalidDnDOperationException: no protocol: hello world

    user589898 ,
    Search on old threads before posting issues. Search on keyword CacheLoaderNotFoundException and you will find this issue has been discussed earlier.
    --Shiv                                                                                                                                                                                                                                                                                                                                                           

  • Protocol Exception using Hibernate on Ingres

    Hey everybody,
    Been getting this problem and can't seem to find any answers to it. Trying to load an object out of my Ingres DB that HIbernate put there for me a couple of days ago and i keep getting this
    Hibernate: select first 1 earlywarni0_.EarlyWarningID as UID0_, earlywarni0_2_.critical as critical0_, earlywarni0_2_.corePoolSize as corePool3_0_, earlywarni0_2_.keepAliveTime as keepAliv4_0_, earlywarni0_2_.maximumPoolSize as maximumP5_0_, earlywarni0_2_.queueSize as queueSize0_, earlywarni0_2_.jndiName as jndiName0_, earlywarni0_1_.host as host5_, earlywarni0_1_.interval as interval5_, earlywarni0_1_.port as port5_, earlywarni0_1_.reciever as reciever5_ from EarlyWarning earlywarni0_ inner join WebBasedProcessors earlywarni0_1_ on earlywarni0_.EarlyWarningID=earlywarni0_1_.WebBased_ID inner join ProcessingService earlywarni0_2_ on earlywarni0_.EarlyWarningID=earlywarni0_2_.UID
    EDBC-Connect[5].prepareStatement( select first 1 earlywarni0_.EarlyWarningID as UID0_, earlywarni0_2_.critical as critical0_, earlywarni0_2_.corePoolSize as corePool3_0_, earlywarni0_2_.keepAliveTime as keepAliv4_0_, earlywarni0_2_.maximumPoolSize as maximumP5_0_, earlywarni0_2_.queueSize as queueSize0_, earlywarni0_2_.jndiName as jndiName0_, earlywarni0_1_.host as host5_, earlywarni0_1_.interval as interval5_, earlywarni0_1_.port as port5_, earlywarni0_1_.reciever as reciever5_ from EarlyWarning earlywarni0_ inner join WebBasedProcessors earlywarni0_1_ on earlywarni0_.EarlyWarningID=earlywarni0_1_.WebBased_ID inner join ProcessingService earlywarni0_2_ on earlywarni0_.EarlyWarningID=earlywarni0_2_.UID )
    EDBC-PreparedStatement[250]: 'select first 1 earlywarni0_.EarlyWarningID as UID0_, earlywarni0_2_.critical as critical0_, earlywarni0_2_.corePoolSize as corePool3_0_, earlywarni0_2_.keepAliveTime as keepAliv4_0_, earlywarni0_2_.maximumPoolSize as maximumP5_0_, earlywarni0_2_.queueSize as queueSize0_, earlywarni0_2_.jndiName as jndiName0_, earlywarni0_1_.host as host5_, earlywarni0_1_.interval as interval5_, earlywarni0_1_.port as port5_, earlywarni0_1_.reciever as reciever5_ from EarlyWarning earlywarni0_ inner join WebBasedProcessors earlywarni0_1_ on earlywarni0_.EarlyWarningID=earlywarni0_1_.WebBased_ID inner join ProcessingService earlywarni0_2_ on earlywarni0_.EarlyWarningID=earlywarni0_2_.UID'
    EDBC-Connect[5].prepareStatement(): EDBC-PreparedStatement[250]
    EDBC-PreparedStatement[250].executeQuery()
    EDBC-Connect[5].isReadOnly(): false
    EDBC-PreparedStatement[250].executeQuery(): EDBC-ResultSet[497]
    EDBC-ResultSet[497].next()
    SQLException: SQLState(40003) vendor code(15532034)
    ca.edbc.util.EdbcEx: Connection aborted due to a communications protocol error.
            at ca.edbc.util.EdbcEx.get(EdbcEx.java:195)
            at ca.edbc.jdbc.RsltFtch.readData(RsltFtch.java:844)
            at ca.edbc.jdbc.EdbcObj.readResults(EdbcObj.java:661)
            at ca.edbc.jdbc.RsltFtch.load(RsltFtch.java:358)
            at ca.edbc.jdbc.RsltCurs.load(RsltCurs.java:245)
            at ca.edbc.jdbc.EdbcRslt.next(EdbcRslt.java:573)
            at org.hibernate.loader.Loader.doQuery(Loader.java:685)
            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
            at org.hibernate.loader.Loader.doList(Loader.java:2147)
            at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
            at org.hibernate.loader.Loader.list(Loader.java:2021)
            at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:369)
            at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:298)
            at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1020)
            at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
            at meta.system.SystemResurector.load(SystemResurector.java:500)
            at meta.system.SystemResurector.loadEarlyWarning(SystemResurector.java:492)
            at meta.system.SystemResurector.main(SystemResurector.java:374)
    SQLException: SQLState(40003) vendor code(15532034)
    ca.edbc.util.EdbcEx: Connection aborted due to a communications protocol error.
            at ca.edbc.util.EdbcEx.get(EdbcEx.java:195)
            at ca.edbc.io.DbConnIn.receive(DbConnIn.java:540)
            at ca.edbc.jdbc.EdbcObj.readResults(EdbcObj.java:643)
            at ca.edbc.jdbc.RsltFtch.closeCursor(RsltFtch.java:454)
            at ca.edbc.jdbc.RsltCurs.closeCursor(RsltCurs.java:290)
            at ca.edbc.jdbc.RsltFtch.shut(RsltFtch.java:509)
            at ca.edbc.jdbc.RsltFtch.load(RsltFtch.java:362)
            at ca.edbc.jdbc.RsltCurs.load(RsltCurs.java:245)
            at ca.edbc.jdbc.EdbcRslt.next(EdbcRslt.java:573)
            at org.hibernate.loader.Loader.doQuery(Loader.java:685)
            at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
            at org.hibernate.loader.Loader.doList(Loader.java:2147)
            at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
            at org.hibernate.loader.Loader.list(Loader.java:2021)
            at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:369)
            at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:298)
            at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1020)
            at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
            at meta.system.SystemResurector.load(SystemResurector.java:500)
            at meta.system.SystemResurector.loadEarlyWarning(SystemResurector.java:492)
            at meta.system.SystemResurector.main(SystemResurector.java:374)
    EDBC-ResultSet[497].next(): error loading data
    EDBC-ResultSet[497].close()Some people have said this might be due to the SQl statement being to long, but i find this a little hard to believe as the statement is quite little! I'm using the lastest version of Ingres and Hibernate and yep i've dloaded and rebuilt with the ingres dialect. This is the most informative error i can find for this as nothing apart of the usual 'somethings wrong' error appears in the Ingres logs.
    Any ideas/thoughts/anecdotes welcome!
    Cheers
    Tom

    The critical part of the stack trace is:
    ca.edbc.util.EdbcEx: Connection aborted due to a communications protocol error.
            at ca.edbc.util.EdbcEx.get(EdbcEx.java:195)
            at ca.edbc.jdbc.RsltFtch.readData(RsltFtch.java:844)
            at ca.edbc.jdbc.EdbcObj.readResults(EdbcObj.java:661)
            at ca.edbc.jdbc.RsltFtch.load(RsltFtch.java:358)
            at ca.edbc.jdbc.RsltCurs.load(RsltCurs.java:245)
            at ca.edbc.jdbc.EdbcRslt.next(EdbcRslt.java:573)
            at org.hibernate.loader.Loader.doQuery(Loader.java:685)This suggests that the SQL query has already executed without error and Hibernate is attempting to do ResultSet.next() at this point. I don't know anything about Hibernate or Ingres, so my guesses are theoretical:
    1. bug in the driver; get a new driver
    2. mismatch between the driver version and the DB version; get a new driver
    3. something disrupting the network connection, e.g. firewall only allows connections of n seconds long and reading the resultset is taking n + 2 sconds
    4. bug in the database software
    5. bug in hibernate; sometimes somehow it calls next() when it shouldn't
    6. bug in your code; you're not using hibernate properly
    I've no information to suggest which is more likely... Normally, I keep my mouth shut when I know as little ontopic as this, but you've been stuck here for 4 days, which suggests you're focused on the wrong part of the problem.

  • Unable to send mailSmtp protocol Exception

    i wrote the code for sending mail but iam unable to send mail.Iam
    getting the following error please help me from this problem.
    sun.net.smtp.SmtpProtocolException:
         at sun.net.smtp.SmtpClient.issueCommand(SmtpClient.java:48)
         at sun.net.smtp.SmtpClient.closeServer(SmtpClient.java:38)
         at sun.net.NetworkClient.openServer(NetworkClient.java:117)
         at sun.net.smtp.SmtpClient.openServer(SmtpClient.java:111)
         at sun.net.smtp.SmtpClient.<init>(SmtpClient.java:156)
         at com.nsc.aep.util.SendMail.mailTest(SendMail.java:14)
         at com.nsc.aep.util.SendMail.main(SendMail.java:39)
    : sun.net.smtp.SmtpProtocolException: 550 error.. llo,
    I am writing a small scriptlet in jsp to send a mail to a specified email address. Here is the code...
    <%@ page import="sun.net.smtp.SmtpClient, java.io.*" %>
    <%
    String from="[email protected]";
    String to="[email protected]";
    try{
    SmtpClient client = new SmtpClient("203.197.175.3"); //This is the SMTP server address
    client.from(from);
    client.to(to);
    PrintStream message = client.startMessage();
    message.println("To: " + to);
    message.println("Subject: Sending email from JSP!");
    message.println("This was sent from a JSP page!");
    message.println();
    message.println("Cool beans! :-)");
    message.println();
    message.println();
    client.closeServer();
    catch (IOException e){    
    System.out.println("ERROR SENDING EMAIL:"+e);
    %>
    thanx in advance
    Message was edited by:
    k-@.

    The java file is not executing the SmtpClient class there only iam getting the problem .The end user is having mail account can u plz
    clarify
    thanx in advance

  • Blank screen due to protocol exception

     

    You did mention the ver of WLS & SP?
    BTW, production issues cannot be addressed /resolved via newsgroups.
    Provide more info, we will see if we can narrow down the problem or else contact support.
    -K
    suchak jani wrote:
    Hi ,
    Due the folowing error a couple of the jsp's in our application are
    coming up blank.
    Fri Mar 09 12:21:20 EST 2001:<E> <HTTP> Servlet request terminated with
    IOException:
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote:
    '0' bytes instead of stated: '656' bytes.
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java:381)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:254)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    This is in a system in production. Need to urgently address this.
    Regards
    Suchak Jani

  • Protocol exception 403 during logon

    Hi,
    Let me ask very premitive question, sorry.
    I have recieved an error message (as attatched) when I tried to login to the system.
    The user and password should be correct.
    Could anyone kindly help?
    Kind regards,
    Yasuko

    Hello Yasuko,
    I encountered the same problem when I tried to log in the first time with the SAP Cloud Application Studio.
    I solved this issue on my side by removing the 'http://' from my link, making it :
    myXXXXXX.crm.ondemand.com in the hostname instead of http://myXXXXXX.crm.ondemand.com.
    Hope it helps,
    Allan

  • Servlet failed with Exception

    I have a servlet that read Swing Applet input stream. It works on my JBuilder6 with HTML very fine. But It can't work on browser(such as IE). I have error message: Please someone help me!
    Mon May 19 10:00:28 EDT 2003:<E> <ServletContext-General> Servlet failed with Exception
    java.net.SocketException: Connection aborted by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
    at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:88)
    at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:121)
    at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.jav
    a:444)
    at weblogic.servlet.ClasspathServlet.sendResource(ClasspathServlet.java:114)
    at weblogic.servlet.ClasspathServlet.doGet(ClasspathServlet.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
    247)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Mon May 19 10:00:28 EDT 2003:<E> <HTTP> Servlet request terminated with IOException:
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '4096' bytes instead of stated
    : '16093' bytes.
    at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java:372
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
    249)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    Hi, did you get any solution for the protocol exception? I have the same problem too....
    Thanks
    Suresh

  • Web Services are protocols independent?

    Hi Guys,
    I want to know that Web Services are protocol independent? if yes, can i develop a web service in other protocols excepts HTTP and SOAP. Please describe in details.

    Hello,
    I will say it depends how you are qualifying Web Services and related technologies.
    Historically, Web services have been build to use protocol and technologies that will work using Internet technologies and be compliant with Firewall and other internet layers...
    So the network protocols were HTTP/HTTPS.Also, because the service has to be decoupled from the implementation, so we use XML and data representation using Schemas, all define in a wire protocol SOAP.
    So initially Web Services are based on SOAP over HTTP/HTTPS, and the description of the services, the different message types is done in the WSDL, that is itself an XML document. Since the message is an XML document, it is possible to send it using any protocol, the idea being you send the SOAP request to a server the server deal with it and send a response all using SOAP representation. This is why for example in the Oracle Web Service stack in addition to HTTP/HTTPS, you can use JMS as the communication protocol.
    But I also want to add some information about WSIF (Web Services Invocation Framework), where in addition to SOAP, you can use "native" layer to call a Web Service. The idea being that for example if you are building a service where the clients are either hosted on the same server as the service, or remote and outside the firewall... You want in this case to be able to call your java implementation class from the container when you are local, and when a customer wants to call the service from the internet uses the SOAP/HTTP protocol. To learn more about WSIF take a look to this OTN Article: Web Services—Anyhow, Anywhere
    So as you can see Web Services are protocol intependent.
    Regards
    [urlhttp://blog.grallandco.com]Tugdual Grall

  • Protocol Independent Servlets

    Hello All,
    It is a known fact that the Servlet API is protocol independent and Additional classes like HttpServlet provide facility to use HTTP protocol for communication.
    I was just wondering, how to use the protocol independent feature of the Servlet API and use it for my own protocol. Is there any other pratical and simple example where Servlets are used with other protocols other than HTTP. I am really interested to have a look at it.
    Thanks in advance!
    Regards,
    Giridhar Manepalli

    Disregard my earler email :-) I somehow managed to
    forget few words!
    Thanks Steve!
    Even before implementing classes which extend
    ServletRequestWrapper etc, we need to have certain
    protocol specific methods implemented by the web
    container.No. The container only cares abuot the general request-response theme. There is the one exception of the HTTP protol. Since the HTTP protocol is the most often used, interfaces for that protocol are defined as part of the J2EE spec (HttpServlet, HttpServletRequest, HttpServletResponse, HttpSession) and implementations provided by the container to fullfill the spec (HttpServlet is a class, no implementation needed. Tomcat uses CoyoteRequest and CoyoteResponse to implement the HttpServletReuest and HttpServletResponse interfaces).
    You would be responsible for any protocol except HTTP. But the idea is to follow the same format.
    1) Extend GenericServlet to ProtocolServlet.
    2) Extend ServletRequest and ServletResponse to ProtocolServletRequest and ProtocolServletResponse
    3) Create implementations of the ProtocolServletRequest and ProtocolServletResponse.
    -- Best bet is to extend ServletRequestWrapper and ServletResponseWrapper for these classes, since they will need to wrap around the original ServletRequest/ServletResponse.
    -- You can follow the basic model provided by the HTTP implementation and never show the name of the implementing classes, just the interfaces ProtocolServletRequest and ProtocolServletResponse
    4) Use the ProtocolServlet to read the ServletRequest's input stream and
    -- Generate a ProtocolServletRequest and ProtocolServletResponse out of the ServletRequest and ServletResponse provided (along with pertinent information from the request's input stream).
    -- Determine the best course of action based on the contents of the input stream
    -- Dispatch the ProtocolServletRequest and ProtocolServletResponse to an appropriate method.
    I was going through the code of tomcat, I came to
    know that CoyoteRequest class which implements
    HttpServletRequest, HttpServletResponse interfaces,
    is actually the one that is passed to the service
    method of the servlet as ServletRequest object.
    Now, CoyoteRequest as part of the container contract
    implemented HTTP Protocol specific code like "Method
    of HTTP Request viz., GET, POST etc" and some more
    protocol specific methods.
    I think, when J2EE specification says Servlets are
    protocol independent, it means that the containers
    can implement whatever protocols they want, thereby
    the application components deployed in the container
    can use that protocol services.It means that the Serlvet container CAN handle any protocol (in theory). The J2EE specs. require a non-specific servlet handling mechanism (GenericServlet, ServletRequest, and ServletResponse). It also requires the container to handle the HTTP protocol because that is the most likely to be used (and is required for JSP. So HttpServlet, HttpServletRequest, and HttpServletResponse, HttpSession).
    Servlets can still handle other protocols, but the container will not do it automatically. You will be forced to implement the details which sit on a layer above the generic handling.
    You may want to look around the web and see if there is a servlet implementation of the protocol you want to handle. I would be surprised if there is not an FTPServlet suite hanging around. Other protocols are less likely.
    If you do have to implement it yourself, make sure you read the specs on the protocl thoroughly. Your implementation will need to flawlessly parse incoming requests and send out responses in a well formed protocol-dependent manner.
    >
    Any thoughts?
    Regards,
    Giridhar Manepalli

  • Cisco support for the UK DASS signalling protocol on CCME ?

    I have a client who currently has an old Meridian PBX that has a DASS (G.703) connection to the PSTN with 9 channels. I wish to replace this with a 2821-CCME.
    Does Cisco support PSTN connectivity with DASS/G.703 using CCME and a VWIC2-1MFT-G703? If so can you please point me to any configuration guides.
    Thanks in advance,
    Gordon.

    mchandak,
    Honestly I don't know what makes you believe that.
    1) the main protocol/standards used on ISDN PRI are from bottom to top, G.703, G.704, Q.921 and Q.931, no matter if you have H.323, SIP, MGCP or SCCP as VoIP signaling protocol.
    2) CCME can perfectly "control" a gateway using any of above protocol except MGCP.
    3) In the original question, there is no gateway/backend, just one single CCME router.

  • Sender mail Adapter - Log in Error

    Hi,
    I am facing the below error while communicating with the mail server using the POP3 transport protocol.
    exception caught during processing mail message; java.io.IOException: unexpected password response; read -ERR Logon failure: unknown user name or bad password.
    Confimed with  the mail server administrator there is no issue with log in credentials.
    We are able to access the mail box using the same user ID & password through webservice URL. But if we use the same User ID & password in communication channel it is showing the above error.
    Any one have the idea about other possibilities to get this error?
    Thanks & regards,
    Krishna

    Hi Vijay,
    It is POP3 protocol setup. We are able to login using webservise URL. But not able to log in with Mail adapter.
    Regards,
    Krishna

Maybe you are looking for