Andreas,
By using just the transport jar would not work ? i am getting an error if i
only use the axis http snapshot jar
java.lang.NoClassDefFoundError: org/apache/axis2/util/OnDemandLogger
at
org.apache.axis2.transport.http.AxisServlet.<clinit>(AxisServlet.java:89)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
Regards,
Vish
On Mon, Mar 1, 2010 at 5:06 AM, Martin Gainty <[email protected]> wrote:
> can you confirm 8443 is the secure port for https only (and not tcp)
> once you have decided to use HTTPS (port 8443) then i would suggest
> engaging rampart module..here is a quick tutorial
> http://wso2.org/library/3190
>
> as mentioned securing a TCP connection uses a different architecture than
> standard AXIS web services over HTTPS
>
> keep us apprised,
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
> jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése
> nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi
> alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen
> megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet
> tartalma miatt.
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci
> est interdite. Ce message sert à l'information seulement et n'aura pas
> n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>
> > From: [email protected]
> > Date: Mon, 1 Mar 2010 13:10:50 +0100
> > Subject: Re: HTTPS only WSDL
> > To: [email protected]
>
> >
> > Chris,
> >
> > Can you try this with a nightly build and by configuring the transport
> > receivers as described in [1]?
> >
> > Andreas
> >
> > [1]
> > http://people.apache.org/~veithen/axis2/1_6/servlet-transport.html<http://people.apache.org/%7Eveithen/axis2/1_6/servlet-transport.html>
> >
> > On Mon, Mar 1, 2010 at 11:29, chu_man_fu <[email protected]> wrote:
> > >
> > > Thanks for your reply.
> > > I already have the transport tag in my service file. I have takent he
> > > Rampart bit out for now because I don't think it was doing much for me:
> > >
> > > <service name="FirstService" scope="transportsession">
> > > <tranports>
> > > <transport>tcp</transport>
> > > </tranports>
> > > <parameter name="ServiceClass"
> > > locked="false">foo.bar.FirstService</parameter>
> > > <operation name="HelloWorld">
> > > <messageReceiver
> > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> > > </operation>
> > > </service>
> > >
> > > In my axis2.xml file I have the following:
> > >
> > > <!-- Transport Ins !-->
> > > <transportReceiver name="https"
> > > class="org.apache.axis2.transport.http.SimpleHTTPServer">
> > > <parameter name="port">8443</parameter>
> > > <parameter name="hostname">https://127.0.0.1:8443/axis2</parameter>
> > > </transportReceiver>
> > >
> > > <!-- Transport Outs !-->
> > > <transportSender name="https"
> > > class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> > > <parameter name="PROTOCOL">HTTP/1.1</parameter>
> > > <parameter name="Transfer-Encoding">chunked</parameter>
> > > </transportSender>
> > >
> > > Which nearly gives me the desired result but the URL on my endpoint is
> > > missing and AXIS throws errors:
> > >
> > > WSDL:
> > >
> > > <wsdl:service name="FirstService">
> > > <wsdl:port name="FirstServiceHttpsSoap11Endpoint"
> > > binding="ns:FirstServiceSoap11Binding">
> > > <soap:address location="" />
> > > </wsdl:port>
> > >
> > > AXIS Java errors:
> > > When I start Tomcat (axis2):
> > >
> > > [INFO] Deploying Web service: FirstService.aar - file:/C:/Program
> > > Files/Apache Software Foundation/Tomcat
> > > 5.5/webapps/axis2/WEB-INF/services/FirstService.aar
> > > [INFO]
> > > org.apache.axis2.AxisFault
> > > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> > > at
> > >
> org.apache.axis2.transport.http.SimpleHTTPServer.init(SimpleHTTPServer.java:126)
> > > at
> org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:74)
> > > at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:449)
> > > at
> > >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
> > > at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
> > > at
> > >
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
> > > at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
> > > at
> > >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
> > > at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
> > > at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
> > > at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
> > > at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
> > > at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> > > at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
> > > at
> > >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> > > at
> > >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> > > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
> > > at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> > > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> > > at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> > > at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
> > > at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> > > at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> > > at java.lang.reflect.Method.invoke(Unknown Source)
> > > at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> > > at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> > > Caused by: java.lang.NullPointerException
> > > at
> > >
> org.apache.axis2.transport.http.server.HttpFactory.getStringParam(HttpFactory.java:198)
> > > at
> > >
> org.apache.axis2.transport.http.server.HttpFactory.getIntParam(HttpFactory.java:153)
> > > at
> > >
> org.apache.axis2.transport.http.server.HttpFactory.<init>(HttpFactory.java:123)
> > > at
> > >
> org.apache.axis2.transport.http.server.HttpFactory.<init>(HttpFactory.java:139)
> > > at
> > >
> org.apache.axis2.transport.http.SimpleHTTPServer.init(SimpleHTTPServer.java:116)
> > > ... 28 more
> > > [INFO]
> > > java.lang.NullPointerException
> > > at
> > >
> org.apache.axis2.transport.http.server.SimpleHttpServer.<init>(SimpleHttpServer.java:58)
> > > at
> > >
> org.apache.axis2.transport.http.SimpleHTTPServer.start(SimpleHTTPServer.java:218)
> > > at
> org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:148)
> > > at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
> > > at
> > >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
> > > at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
> > > at
> > >
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
> > > at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
> > > at
> > >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
> > > at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
> > > at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
> > > at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
> > > at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
> > > at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> > > at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
> > > at
> > >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> > > at
> > >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> > > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
> > > at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> > > at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> > > at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> > > at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
> > > at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> > > at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> > > at java.lang.reflect.Method.invoke(Unknown Source)
> > > at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> > > at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> > >
> > >
> > > Then when I go to the WSDL (in a web browser):
> > >
> > > [WARN] Unable to generate EPR for the transport : http
> > > [WARN] Unable to generate EPR for the transport : http
> > > org.apache.axis2.AxisFault: Unable to generate EPR for the transport :
> http
> > > at
> > >
> org.apache.axis2.transport.http.SimpleHTTPServer.getEPRsForService(SimpleHTTPServer.java:302)
> > > at
> > >
> org.apache.axis2.description.AxisEndpoint.calculateEndpointURL(AxisEndpoint.java:198)
> > > at
> > >
> org.apache.axis2.description.AxisEndpoint.calculateEndpointURL(AxisEndpoint.java:175)
> > > at
> > >
> org.apache.axis2.description.AxisEndpoint.getEndpointURL(AxisEndpoint.java:63)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.getEndpointURL(AxisService2WSDL11.java:1259)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.generateSoap11Port(AxisService2WSDL11.java:654)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.generateService(AxisService2WSDL11.java:467)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.generateOM(AxisService2WSDL11.java:229)
> > > at
> > >
> org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLDataLocator.java:131)
> > > at
> > >
> org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocator.java:73)
> > > at
> > >
> org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:81)
> > > at
> org.apache.axis2.description.AxisService.getData(AxisService.java:2808)
> > > at
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1512)
> > > at
> > >
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1329)
> > > at
> > >
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:270)
> > > at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> > > at
> > >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> > > at
> > >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> > > at
> > >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > at
> > >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
> > > at
> > >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> > > at
> > >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> > > at
> > >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> > > at
> > >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
> > > at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
> > > at
> > >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> > > at
> > >
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> > > at
> > >
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> > > at
> > >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
> > > at java.lang.Thread.run(Unknown Source)
> > > [WARN] Unable to generate EPR for the transport : http
> > > org.apache.axis2.AxisFault: Unable to generate EPR for the transport :
> http
> > > at
> > >
> org.apache.axis2.transport.http.SimpleHTTPServer.getEPRsForService(SimpleHTTPServer.java:302)
> > > at
> > >
> org.apache.axis2.description.AxisEndpoint.calculateEndpointURL(AxisEndpoint.java:198)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.getEndpointURL(AxisService2WSDL11.java:1280)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.generateSoap11Port(AxisService2WSDL11.java:654)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.generateService(AxisService2WSDL11.java:467)
> > > at
> > >
> org.apache.axis2.description.AxisService2WSDL11.generateOM(AxisService2WSDL11.java:229)
> > > at
> > >
> org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLDataLocator.java:131)
> > > at
> > >
> org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocator.java:73)
> > > at
> > >
> org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:81)
> > > at
> org.apache.axis2.description.AxisService.getData(AxisService.java:2808)
> > > at
> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1512)
> > > at
> > >
> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1329)
> > > at
> > >
> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:270)
> > > at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> > > at
> > >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> > > at
> > >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> > > at
> > >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > at
> > >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
> > > at
> > >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> > > at
> > >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> > > at
> > >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> > > at
> > >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
> > > at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
> > > at
> > >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> > > at
> > >
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> > > at
> > >
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> > > at
> > >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
> > > at java.lang.Thread.run(Unknown Source)
> > >
> > >
> > > It looks like I need to tell AXIS not care about http somehow. From the
> > > errors though it appears its called by default.
> > >
> > > Thanks
> > > Chris
> > >
> > >
> > >
> > > Amila Suriarachchi wrote:
> > >>
> > >> try adding transports entry to service as given below.
> > >>
> > >> <service name="UserAdmin" scope="transportsession">
> > >> <transports>
> > >> <transport>https</transport>
> > >> </transports>
> > >> <parameter name="ServiceClass" locked="false">
> > >> org.wso2.carbon.user.mgt.UserAdmin
> > >> </parameter>
> > >>
> > >> thanks,
> > >> Amila.
> > >>
> > >> On Fri, Feb 26, 2010 at 8:38 PM, chu_man_fu <[email protected]> wrote:
> > >>
> > >>>
> > >>> I need to create SOAP service which only allows HTTPS access.
> > >>> I am half way to achieving this by adding the Rampart module to my
> > >>> services.xml with a UsrnameTokenOverHTTPS policy. My problem now is
> that
> > >>> my
> > >>> WSDL still shows the http binding:
> > >>>
> > >>> <wsdl:service name="TestService">
> > >>> <wsdl:port name="TestServiceIHttpSoap11Endpoint"
> > >>> binding="ns:TestServiceSoap11Binding">
> > >>> <soap:address
> > >>> location="
> > >>>
> http://127.0.0.1:8080/axis2/services/TestService.TestServiceHttpSoap11Endpoint/
> > >>> "
> > >>> />
> > >>> </wsdl:port>
> > >>> <wsdl:port name="TestServiceHttpsSoap11Endpoint"
> > >>> binding="ns:TestServiceSoap11Binding">
> > >>> <soap:address
> > >>> location="
> > >>>
> https://127.0.0.1:8443/axis2/axis2/services/TestService.TestServiceHttpsSoap11Endpoint/
> > >>> "
> > >>> />
> > >>> </wsdl:port>
> > >>> </wsdl:service>
> > >>>
> > >>> I am testing the service with a C# (.net) client. When I create a new
> Web
> > >>> Reference to only ever picks out the HTTP port and never the HTTPS
> port.
> > >>> How can I remove the HTTPS port from the WSDL?
> > >>> I have tried removing "transportReceiver name="http"" from my
> axis2.xml
> > >>> file
> > >>> but this throws NullPointerErrors and axis2 fails to deploy.
> > >>>
> > >>> Can anyone help please.
> > >>> Thanks
> > >>> Chris
> > >>> --
> > >>> View this message in context:
> > >>> http://old.nabble.com/HTTPS-only-WSDL-tp27719385p27719385.html
> > >>> Sent from the Axis - User mailing list archive at Nabble.com.
> > >>>
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: [email protected]
> > >>> For additional commands, e-mail: [email protected]
> > >>>
> > >>>
> > >>
> > >>
> > >> --
> > >> Amila Suriarachchi
> > >> WSO2 Inc.
> > >> blog: http://amilachinthaka.blogspot.com/
> > >>
> > >>
> > >
> > > --
> > > View this message in context:
> http://old.nabble.com/HTTPS-only-WSDL-tp27719385p27741868.html
> > > Sent from the Axis - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
> ------------------------------
> Hotmail: Powerful Free email with security by Microsoft. Get it
> now.<http://clk.atdmt.com/GBL/go/201469230/direct/01/>
>