axis2

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

混江龙づ霸主 提交于 2019-11-29 02:24:07
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 above reasons( their opinion). I wonder how a simpler a client I can make given that I have to work with

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

耗尽温柔 提交于 2019-11-28 19:30:24
问题 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

Difference between JAX-WS, Axis2 and CXF

╄→尐↘猪︶ㄣ 提交于 2019-11-28 15:07:23
What is the difference between: JAX-WS Axis2 CXF All three can be used to create webservices in Java. As of I know JAX-WS is a specification and Axis2 and CXF are implementations, but Java 1.6 has implementation of JAX-WS if I am not wrong. So one can use Java 1.6 to develop JAX-WS web services without using Axis2 or CXF? Then what is the use of Axis2, CXF? Daniel Kulp The JAX-WS implementation built into the JDK really is just the basic soap stuff. If you need any of the more complex WS-* things like WS-Security, WS-RM, WS-Policy, etc..., you need to use one of the alternatives like CXF or

The endpoint reference (EPR) for the Operation not found is

情到浓时终转凉″ 提交于 2019-11-28 13:19:46
I have been struggling with the following error the last couple of days can you please help! I generated my server and client code using the wsdl2java tool from a wsdl 2.0 file. When invoking the webservice I am getting the following error: org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is /axis2/services/MyService/authentication/?username=Denise345&password=xxxxx and the WSA Action = null My service is displayed on the axis2 webpage with all available methods. Here is the output from TcpMon ============== Listen Port: 8090 Target Host: 127.0.0.1 Target

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

这一生的挚爱 提交于 2019-11-28 12:36:10
问题 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 回答1: Well, the problem was solved on upgrading to Eclipse IDE 3.6. 来源: https://stackoverflow.com/questions/6659829/wsdl2java-codegen-eclipse

Serializing with JAXB and the Any

牧云@^-^@ 提交于 2019-11-28 10:04:52
I have a schema that defines the following type: <xsd:complexType name="Payload"> <xsd:sequence> <xsd:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax"/> </xsd:sequence> </xsd:complexType> And that creates an object like so: @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Payload", propOrder = { "any" }) public class Payload { @XmlAnyElement(lax = true) protected List<Object> any; } Now I try adding another generated JAXB object to that Payload doing something like this: Class payloadClass = ...; JAXBContext context = JAXBContext.newInstance( WrapperRequest

Log axis2 client requests and responses

江枫思渺然 提交于 2019-11-28 05:26:10
I would like to log all requests/responses made by an axis2 client. I tried to create a file called client-config.wsdd as describer in http://code.google.com/support/bin/answer.py?hl=en&answer=15137 but without success (I don't get a log file). Requests are made over https and I am not sure if it matters. I tried <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/> and <transport name="https" pivot="java:org.apache.axis.transport.http.HTTPSender"/> without success. Sankar K S For Axis2-client side logging for SOAP messages, just use the following JVM arguments while

How do I add a namespace reference to a SOAP response with Apache Axis2 and WSDL2Java

邮差的信 提交于 2019-11-28 03:31:35
问题 I'm looking at the SOAP output from a web service I'm developing, and I noticed something curious: <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <ns1:CreateEntityTypesResponse xmlns:ns1="http://somedomain.com/wsinterface"> <newKeys> <value>1234</value> </newKeys> <newKeys> <value>2345</value> </newKeys> <newKeys> <value>3456</value> </newKeys> <newKeys xsi:nil="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> <newKeys xsi:nil="1" xmlns:xsi

Can we implement method overloading in web service class?

折月煮酒 提交于 2019-11-28 00:08:35
I would like to implement method overloading in the Java web service class as follows: public String myMethod(User user) { // My code } public String myMethod(User[] user) { for(int i=0; i<user.length; i++) { myMethod(user[i]); } } If I forward a single User object to myMethod() , it should trigger the first method and if I send an array of User s, it should trigger the second method. In the WSDL file it shows only a single method. However, if I try to call @WebMethod(operationName="") for both calls, I am unable to generate the WSDL file. Operation overloading is not allowed for web services.

ORA-12516, TNS:listener could not find available handler

吃可爱长大的小学妹 提交于 2019-11-27 19:24:54
My error: java.sql.SQLException: Listener refused the connection with the following error: ORA-12516, TNS:listener could not find available handler with matching protocol stack The Connection descriptor used by the client was: //10.2.5.21:9001/XE at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java :261) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java: 414) at oracle.jdbc.driver.T4CConnection.<init>