axis2

Where to deploy a jar dependency of my webservice?

人走茶凉 提交于 2020-01-14 10:22:48
问题 My webservice depends upon a jar (which contains a custom Exception class among others). When I deploy simply my webservice without this jar, axis2 complains that the Exception class is not known. So I guess that I must deploy my jar too... But I feel reluctant to put it in: tomcat\webapps\axis2\WEB-INF\lib , since it's already filled with lots of axis2 and 3rd party jars... i'd prefer something like tomcat\webapps\axis2\WEB-INF\usr\lib Where would you put it ? 回答1: Consider deploying your

I can't to return json objects using Axis2

筅森魡賤 提交于 2020-01-07 07:41:09
问题 I can't to return json objects using Axis2 like web service. I added the lines of builder and messageFormatter in my web2.xml for the support json but always that access my web service to test return in xml. I use the url to test my action: http://server.com:8080/webservice/services/classe/action?response=application/json but no success. Any idea? Thank you 回答1: Solve your problem exporting the wso2dynamic response (wso2dynamic-response-1.5.jar and wso2dynamic-response.mar) to modules folder

Generate working Onvif code with wsdl2cpp

杀马特。学长 韩版系。学妹 提交于 2020-01-06 18:08:52
问题 I generated the DeviceMgmt stub from cmd with WSDL2CPP.bat -uri http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl -u -d adb -o OutputDirectory The first time, I got an error like "No service was found" and I solved it by adding this: <wsdl:service name="OnvifService"> <wsdl:port name="OnvifEndpoint" binding="DeviceBinding"> <soap:address location="http://www.onvif.org/ver10/device/wsdl"/> </wsdl:port> </wsdl:service> in devicemgmt.wsdl I opened the generated project in VS2012 and

Axis2 + Tomcat: Web service working directory

依然范特西╮ 提交于 2020-01-06 17:59:43
问题 So I have an Axis2 web service (called "ReleaseService"), which requires a properties file to work correctly. I've deployed axis2 into Tomcat7 on RHEL6 and have a structure like this: tomcat/webapps/axis2 + axis2-web, META-INF, org + WEB-INF + + classes, conf, lib, modules + + services + + + ReleaseService + + + + com, lib, META-INF Thinking about Java, I would expect the working directory to be tomcat/webapps/axis2/WEB-INF/services/ReleaseService , because it contains a lib folder and the

Axis2 web service deploying by Netbeans 6.8 build-impl.xml:166 error

谁都会走 提交于 2020-01-06 07:16:18
问题 I tried to create a simple web service using Axis2 + Tom cat + Netbeans 6.8 like this tutorial. http://netbeans.org/kb/69/websvc/gs-axis.html#deploy_axis but after all configured as it says and when developing it gives this error: E:\WorkDesk\Java Projects\MyWebservice\MyWebservice\nbproject\build-impl.xml:166: Must set src.dir BUILD FAILED (total time: 0 seconds) please help me out to fix this bug. thanks lot. 回答1: For us, the project.properties was not being created properly, which is where

Axis2 web service deploying by Netbeans 6.8 build-impl.xml:166 error

白昼怎懂夜的黑 提交于 2020-01-06 07:16:07
问题 I tried to create a simple web service using Axis2 + Tom cat + Netbeans 6.8 like this tutorial. http://netbeans.org/kb/69/websvc/gs-axis.html#deploy_axis but after all configured as it says and when developing it gives this error: E:\WorkDesk\Java Projects\MyWebservice\MyWebservice\nbproject\build-impl.xml:166: Must set src.dir BUILD FAILED (total time: 0 seconds) please help me out to fix this bug. thanks lot. 回答1: For us, the project.properties was not being created properly, which is where

Exception in thread “main” org.apache.axis2.AxisFault: Read timed out

旧城冷巷雨未停 提交于 2020-01-05 08:47:22
问题 I wrote a web service and web client was generated using Eclipse wizard. And my client application is requesting a String and also an Object . The string can be retrieved successfully and when I tried to retrieve the object it gives the following exception (I'm using JBoss 5): Exception in thread "main" org.apache.axis2.AxisFault: Read timed out at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203) at org

Can't get user information after login successfully in WSO2 Identity server

感情迁移 提交于 2020-01-05 04:22:08
问题 After login successfully into WSO IS with service URL (https://localhost:9443/services/") I tried to get User Information as below : try { UserRealm realm = WSRealmBuilder.createWSRealm(serviceURL, authCookie, configCtx); UserStoreManager storeManager = realm.getUserStoreManager(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } But I had exception relating to this as below image. I can't get any info. I tried and found out that the main error is I can't

How to implement backward compatible soap webservice (java based)?

本小妞迷上赌 提交于 2020-01-04 18:18:51
问题 One of our product publishes a webservice using contract-last approach. This has becoming a real problem as all of our clients (ws clients) have to rebuild their client apps as soon as we release a new version of our product. This is due to all namespace changes that comes as a cost with auto-generated wsdls. We use Axis1 for javatowsdl. I've been seeking for a good methodology/ tool to develop backward compatible webservice for this. i.e. version 9.3 clients can still hit the 10.0 service,

Axis2 web service error: services.xml not found

*爱你&永不变心* 提交于 2020-01-04 09:12:19
问题 I have been trying to deploy a simple axis2 web service onto a wso2 application server but I keep on getting the error: Error: org.apache.axis2.deployment.DeploymentException: The services.xml file cannot be found for the service: /WSO2/wso2as-4.1.0/repository/deployment/server/axis2services/SomeService.aar However, a quick peek at that .aar file revealed that the services.xml file was indeed contained in the META-INF folder as needed. What would cause such an error, and how do I proceed with