axis2

useOriginalwsdl=true is not working in axis2

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 09:00:54
问题 I have followed contract first approach. So I first wrote the wsdl file and then generated the server side code. But when I hit the url for my web service in the browser then I see the auto generated wsdl file; not the one I had kept inside META-INF folder. I have also set useOriginalwsdl=true in my services.xml file. When I try to view the wsdl in browser, it fires error Unable to generate WSDL 1.1 for this service in description section and If you wish Axis2 to automatically generate the

Custom faultcode using Axis2

妖精的绣舞 提交于 2019-12-18 07:15:40
问题 I've created a webservice and used Axis2 to generate all "skeleton" java classes. Then I of course implemented the service operations myself. In the implementation, I can throw a MyException which is then caught by the generated classes and converted to an AxisFault object, which in turn is converted to a soap fault (deep down in the Axis framework) with the attribute <faultcode>soapenv:Server</faultcode> My problem is I would like a custom dynamic faultcode, not "soapenv:Server". I tried to

axis2 client NTLM authentication

佐手、 提交于 2019-12-18 07:09:01
问题 I have an axis2 (v1.5.3) client that needs to do Kerberos/NTLM authentication with IIS. How can I do this? This is the code I have right now and it fails with 401 - unauthorized error: List<String> authScheme = new ArrayList<String>(); authScheme.add(HttpTransportProperties.Authenticator.NTLM); HttpTransportProperties.Authenticator ntlm = new HttpTransportProperties.Authenticator(); ntlm.setAuthSchemes(authScheme); ntlm.setUsername("Administrator"); ntlm.setPassword("password"); ntlm.setHost(

jax-ws vs axis2 - help needed

限于喜欢 提交于 2019-12-14 02:26:11
问题 I need help with the following : Q.1) Performance comparison between - 1) lot of war files containing jax-ws based web services deployed on Jetty 2) lot of web services deployed on axis2 running on Jetty Q.2) Also, if there are many types of clients, like .net, java, c++ based, which are gonna use these web services then which approach should I go with - axis2 as SOAP engine or jax-ws?? Q.3) if I am not interested in WS-* standards then what should I use axis2 or jax-ws? Q.4) In general why

Which files should be imported in a subversion repository for a web services project?

[亡魂溺海] 提交于 2019-12-14 01:42:02
问题 I created a Java Project in Eclipse using the Web services Top down approach (i.e. creating a WSDL file and using it to generate the Skeleton Java class and web services with axis2) (Hence, there are a lot of auto-generated files and axis2 jar libraries). My Project has the following files/directory structure: - Deployment Descriptor - build - build.xml - doc (i.e. generated javadoc) - src - com.package1 - com.package2 - Libraries - Apache Tomcat 6.0 (apache jar files) - Web App libraries

Glassfih + WSO2 ESB 415 Unsupported media type

醉酒当歌 提交于 2019-12-13 21:56:23
问题 I am creating "Pass Through Proxy" in WSO2ESB using JAX-WS hosted on Glassfish. The problem is that the proxy does not work and it happens with EVERY PROXY I create in the ESB that are pointing to every Java Web Services on Glassfish : the console gives this error [1]. The thing is that Proxies to .Net Services instead, works fine. 1) I have tried with the ESB tryit tool to consume the service and I have the following response: <TryitProxyError h:status="SOAP envelope error" xmlns:h="http:/

Tomcat 5.5 Axis2 application scope problem - Unable to create single instance

白昼怎懂夜的黑 提交于 2019-12-13 18:45:49
问题 I have deployed an axis2 web service on Tomcat 5.5. The web service functions as expected. But I noticed I was getting duplicated log entries. After researching it became clear that multiple instances of the class were being created - ie the first time it ran, one log entry; second time, two entries and so on. I added the scope="application" parameter, but that has not solved the problem. I added it both in the service tag and as a separate parameter tag to no avail. This class has many key

Client giving error when invoking a secured web service

核能气质少年 提交于 2019-12-13 12:23:00
问题 I have written a client that invokes webservice. My client is: String publisherEPR = "https://abc:8280/services/ProviderPublication"; protected void publicationOpenSession(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("Inside publicationOpenSession"); date = new Date(); namespace = "http://www.openoandm.org/xml/ISBM/"; fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace(namespace, "ns1");

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet [duplicate]

前提是你 提交于 2019-12-13 12:06:39
问题 This question already has answers here : java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest (4 answers) Closed 3 years ago . I work on a web application, I created a web service with axis2 I integrated this web service in my application, but the problem is that when I try to retrieve the wsdl via the following URL: http: / / localhost: 8080 / ConsoleSynoptique / services / listServices. I get the following error: java.lang.NoClassDefFoundError: javax/servlet/http

Problems caused by Axis2 java web service client after a timeout

白昼怎懂夜的黑 提交于 2019-12-13 05:24:59
问题 I have the following issue: - A java web application that generate Voice XML - based on struts - deployed on IBM WebSphere AS (WAS v.7.0.0.7). - The application uses Axis2 java - v.1.5 - web service client to invoke a web service resides on WebLogic AS. - I set the timeout to 1000 ms using : stub.getServiceClient().getOptions().setTimeOutInMilliSeconds(1000); - The maximum number of times the application hits the web service is about 25,000 per hour - about 7 concurrent calls. - After putting