axis2

wso2 esb Unsupported Media Type

烂漫一生 提交于 2019-11-30 08:51:27
问题 I would like my company to use the Wso2ESB, but I have only two days left to convince them, and the creation of Proxy does not work! I am desperate for a real help for my problem: every proxy that I create seem to produce HTTPSender Unable to sendViaPost to... (why it is unable to send it?) Transport error: 415 Error: Unsupported Media Type (is it a consequence of the fact that it could not send? or a problem in the configuration?) My fresh installation of WSO2 ESB 4.5 is not working with any

What methods exist to auto-generate java client stubs from WSDL files?

≡放荡痞女 提交于 2019-11-30 07:17:15
问题 I'm new to web-services and have read up some info about XML,SOAP,and WSDL. It's very interesting! I'm working on an existing project that has a web-service and client. However the client the 'higher ups' aren't pleased with the client application. It's too complex, they would like a more user friendly and simpler app that can be easily expanded. The project uses Apache Axis2. I've found the WSDL files and would like to build a client based on that. However I don't want to use Axis2 for the

deploy war file in tomcat server

风流意气都作罢 提交于 2019-11-30 04:46:41
I have copied the sample.war file in webapps directory of tomcat. I can acess localhost:8080. deploying of wars is automatic by default -i have checked my webapps folder for an extracted folder "sample" but it is not extracted.why the war file is doesn't extracted.please give me solution for this. Delete that war file from webapps/ directory. Then open link http://localhost:8080/ in your web browser. Click Tomcat Manager then enter user name and password. In next page you can see one option called "WAR file to deploy" . Select your war file from there and click "deploy" button. If you want

What is the difference between ?wsdl and ?singleWsdl parameters

笑着哭i 提交于 2019-11-30 04:35:14
My messaging provider gives me two different kinds of WSDLs to use. http://my.amazonaws.com:8000/webservice/?wsdl http://my.amazonaws.com:8000/webservice/?singleWsdl The first one is an embedded WSDL. Can NOT use it to generate WSDL2java packages and can NOT use JAX-WS to create a connection. The second one is a single WSDL. It can generate Java packages with CXF 3.0's WSDL2java and can use JAX-WS to create a connection. It works very well. Please let me know what is the difference between these two kinds of WSDLs. Without knowing what those links return we can only guess, but here are some

Getting raw XML SOAP-response on client side using ADB-stubs created by AXIS2

妖精的绣舞 提交于 2019-11-30 03:08:43
问题 I access a SOAP service using ADB-stubs created by AXIS2. I would like to log the raw XML response of any Axis Fault, that is returned by the service. I can catch those errors as "ServiceError". However, I do not find a way to retreive the raw XML (see example below). I found a way to access the raw XML request / response for regular processing, using getOMElement (see example below). However, this does not work for faults. How do I get the raw XML fault using ADB stubs? Example Java code:

How do you Change a Package's Log Level using Log4j?

不打扰是莪最后的温柔 提交于 2019-11-29 22:47:32
I've encountered the following bug: http://issues.apache.org/jira/browse/AXIS2-4363 It states the following: This error only occurs when log level for org.apache.axiom is DEBUG so a workaround is to set log level > DEBUG. My question is HOW do I go about doing that? I've been scouring my directories for a properties file or something and I've been looking to see if there was something I could set in code, but I really have no idea what I'm doing. I'm running a console app on my desktop right now while trying to get this to work. Update 1: I noticed that my Axis2 directory has its own log4j

How does a wsimport generated client work?

五迷三道 提交于 2019-11-29 21:23:37
Before anything else, I want you to know that I can already connect to the web service server. I'm asking this question because I want to gain a deeper knowledge on how a wsimport generated client works. Based from my research, wsimport uses JAXWS. Please note that I have no knowledge from JAXWS. I generated my client using wsimport. The WSDL I used is from an Axis2 web service and was automatically generated by Axis2. The classes below are the results of wsimport: Under com.datamodel.xsd DataBeanRequest.java DataBeanResponse.java ObjectFactory.java package-info.java Under com.service

Axis error about runtime location

泪湿孤枕 提交于 2019-11-29 19:11:46
问题 The error is: Exception occurred while reading or writing file {0}The Axis2 facets cannot be installed since the Axis2 runtime location has not been set. Go to the Web Services preference page and set the Axis2 runtime location under Axis2 Preferences. In the preferences mentioned, the location is set correctly and in fact, it says "Axis2 runtime loaded successfully" after loadign the correct runtime location. So what's going on? Any solutions other than re-installing eclipse or creating a

How to configure SSL with Axis2 using httpClient4

只谈情不闲聊 提交于 2019-11-29 18:42:33
Since the httpClient 3 has been outdated, I need a replacement for the code: SSLProtocolSocketFactory.setSSL(trustStore, keyStore, pasw); ProtocolSocketFactory factory = new SSLProtocolSocketFactory(); Protocol.registerProtocol("https", new Protocol("https", factory, 443)); Please share if anyone has tried it. In the java code, I'm tring to call the webservice using OperationClient object operationClientObject.execute(true); Thanks in advance.. The axis2 httpclient4 migration is not so easy, as it appears from the "documentation". During the process, I use the latest Axis 2 version 1.7.8. The

wsdl2java codegen eclipse plugin- java.lang.reflect.invocationtargetexception

元气小坏坏 提交于 2019-11-29 18:17:55
I had added the Axis2_Codegen_Wizard_1.3.0,Axis2_Service_Archiver_1.3.0 to eclipse plugin. On clicking finish button, after I go through all the steps which include specifying wsdl file path and output path, I a pop up with following error. An error occurred while completing the process java.lang.reflect.invocationtargetexception Any idea ? Thanks -Aj Well, the problem was solved on upgrading to Eclipse IDE 3.6. 来源: https://stackoverflow.com/questions/6659829/wsdl2java-codegen-eclipse-plugin-java-lang-reflect-invocationtargetexception