axis2

How to use Axis2 Code Generator for Eclipse?

六月ゝ 毕业季﹏ 提交于 2019-12-08 10:04:25
问题 I installed the Axis2 Code Generator for Eclipse, and am trying to create a Web Service Client. Here's what I'm filling out in the dialog: When I try to submit this, I get an error: I only get this error if I check "Create a jar file of codegen result project and add to resulted projected lib folder (...)". If I don't check this, I don't get any jar files related to my web service, just a bunch of Axis2 dependent jar files. How do I use the Axis2 Codegen Wizard? 回答1: I would prefer not to use

Coldfusion error while accessing Java webservice

孤者浪人 提交于 2019-12-08 10:02:36
问题 I created one Java-AXIs2 webservice which returns a java object (user defined class). The I try to access it on coldfusion using this <cfset wsObj=createobject("webservice","http://localhost:8080/FFMpegHelperServices/services/TranscodeVideoFileFactoryWS?wsdl")> When I try to access this wsObj and do some operations, I get the following error Cannot perform web service invocation getTranscodeVideoFile. The fault returned when invoking the web service operation is:<br> <pre>AxisFault faultCode:

custom java object as parameter to a web service method?

只谈情不闲聊 提交于 2019-12-08 04:30:34
问题 I am using Axis2 for creating SOAP client in Java. The web service is in Java as follows: package com.example.axis2.JavaObject public class ABCService { // private variables public int changeObj(JavaObject obj) { // code } } The JavaObject class goes like this: package com.example.axis2.JavaObject public class JavaObject { public String a; public Date c; public int d; // All setters implemented here // All getters implemented here public String[] getAttributesNames() { String[] arr = {"a","c"

AXIS2Server packed with ESB 4.9.0 doesn't start while it works fine 4.8.0

半世苍凉 提交于 2019-12-08 02:20:09
问题 AXIS2Server packed with ESB 4.9.0 doesn't start while it works fine 4.8.0.. .any help Hi, I'm running ESB 4.9.0 on Win 7 OS 64-it. Let's say my esb is available at following location D:\wso2esb\samples\axis2Server As per instructions to run samples, I'm able to successfully build sample apps using ant but axis2 server doesn't start at all. It prints following on CMD when i execute axis2server.bat. Am i missing something? ========================================================= Microsoft

SOAP Webservice call from Java gives “Object reference not set to an instance of an object”

烈酒焚心 提交于 2019-12-08 01:40:56
问题 I have a requirement where I call a SOAP based web service from Java using Axis2 from eclipse. The web service code is in C#, with a BasicHttpBinding . But when I call the method from the client stub I get this error. org.apache.axis2.AxisFault: Object reference not set to an instance of an object. Could anyone help me figure out this one? Is this on the service side or on the client side? Previously I got 'Internal Server error' and then they had to add something so that I can see this error

In Apache Axis2/Rampart, while generating wsdl and validating policy, is Ws-security Policy 1.2 assertion <sp:NoPassword/> not handled completely?

◇◆丶佛笑我妖孽 提交于 2019-12-08 00:33:22
问题 We are implementing WS-Security Policy on our web services with the following framework/module/specification. Apache Axis2 1.6.2 Apache Rampart 1.6.2 WS-Security Policy 1.2(namespace:http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702) We are facing the following issues while creating/consuming the service. Axis2 wsdl generation logic ignores <sp:NoPassword/> assertion. After debugging,I realized that it is because of the logic in org.apache.ws.secpolicy.model.UsernameToken (rampart

How to detect which transportReceiver is used in Axis2?

让人想犯罪 __ 提交于 2019-12-07 23:03:21
问题 I am using tomcat7 and axis2 to deploy java web services. In server.xml I configured three connectors (http, https wich server and client side certificates, https with server side certificate only): <Connector port="8181" protocol="HTTP/1.1" /> <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" scheme="https" clientAuth="true" keystoreFile=... truststoreFile=... /> <Connector port="8444" protocol="HTTP/1.1" SSLEnabled="true" scheme="https" clientAuth="false" keystoreFile=... /> In

How to use WSDL2Java generated files?

余生颓废 提交于 2019-12-07 20:02:06
问题 I generated the .java files using wsdl2java found in axis2-1.5. Now it generated the files in this folder structure: src/net/mycompany/www/services/ The files in the services folder are: SessionIntegrationStub and SessionIntegrationCallbackHandler. I would like to consume the webservice now. I added the net folder to the CLASSPATH environment variable. My java file now imports the webservice using: import net.mycompany.www.services; public class test { public static void main(String[] args) {

Spring-ws or Axis2 or Something else for “Contract-First” approach to WS

北慕城南 提交于 2019-12-07 18:56:55
问题 Everyone's saying "Contract-First" approach to design WS is more inclined to SOA style design. Now, if we take the available open-source frameworks available to achieve that we have Spring-ws and also Axis2 (which supports both styles). I have a task to design SOA based e-commerce app. where loose coupling, quick response, security and scalability are the key points. So it is very important to choose the right framework from the start. Based on past experiences, which of them or something

Eclipse is very slow when using Code Assist (org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer)

痞子三分冷 提交于 2019-12-07 17:17:01
问题 Can you guess what happens? I generated a client stub using Eclipse WTP [Axis2] and while working on a client I get Eclipse working very slowly when it tries to use Code Assist, that is, press a dot to get a list of methods, there's up to 30 seconds hang-ups of the workbench. eclipse.buildId=M20090917-0800 java.version=1.6.0_15 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU Framework arguments: -product org.eclipse.epp.package.jee.product