JAXB SCD change the class name generated from a complex type from schema

2020-01-15 Thread albert kao
I like to change the class name generated from a complex type from the following schema common.xsd. "UserType" rename to "User", "UserWithEffectiveDateType" rename to "UserWithEffectiveDate". I tried JAXB (v2.2.6) customization with "schema component designator" (SCD). However, output consists of "

Re: samples json : "com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'"

2019-12-27 Thread albert kao
private String contentType = "application/json-impl"; run.client still got the same error (after running target "clean"). On Fri, Dec 27, 2019 at 9:13 AM robertlazarski . wrote: > Did you set this http header from the client side? > > "Content-Type: applicat

Re: samples json : "com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'"

2019-12-27 Thread albert kao
he.axis2.transport.http.SOAPMessageFormatter"/> > > > > > class="org.apache.axis2.transport.http.SOAPMessageFormatter"/> > > > > class="org.apache.axis2.json.gson.JsonFormatter"/> > > > > > > &g

Re: transport/https-sample - [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=org.apache.axis2.examples.httpsclient.SimpleServiceClient,maxpri=10]

2019-12-26 Thread albert kao
ki . wrote: > Port 8443 is HTTPS, you likely mean port 8080 as you would need a > cert, and in most cases load balancer of some sort, for SSL. > > On Sat, Dec 21, 2019 at 2:50 AM albert kao wrote: > > > > Thank you for your suggestions :). > > I did: > > c

Re: samples json : "com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'"

2019-12-26 Thread albert kao
that I use one config for SOAP and another > for json via build time tweaks of the file > > > > > http://www.w3.org/ns/wsdl/in-only"; > > class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> > http://www.w3.o

samples json : "com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'"

2019-12-21 Thread albert kao
How to fix the "com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'" in samples/json ? cd $AXIS2_HOME/samples/json ant run.client client.compile: [javac] /home/carmen/axis2-1.7.9/samples/json/build.xml:66: warning: 'includeantruntime' w

Re: transport/https-sample - [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=org.apache.axis2.examples.httpsclient.SimpleServiceClient,maxpri=10]

2019-12-21 Thread albert kao
like a 15 second timeout , try passing this to maven: > > -Dexec.cleanupDaemonThreads=false > > On Fri, Dec 13, 2019 at 12:49 PM albert kao wrote: > > > > I am following samples/transport/https-sample/README.txt. > > > > Running the Sample Client get the expected resul

Port axis1 codes to axis2 with WSDL2Java and xmlbeans

2019-12-21 Thread albert kao
I want to port some axis1 codes to axis2 with WSDL2Java and xmlbeans. e.g. axis1 generated this code: public class UserRequest implements java.io.Serializable { public java.lang.String getAddrSame() { //... } } I create this build.xml: Then axis2 generate this c

transport/https-sample - [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=org.apache.axis2.examples.httpsclient.SimpleServiceClient,maxpri=10]

2019-12-13 Thread albert kao
I am following samples/transport/https-sample/README.txt. Running the Sample Client get the expected result. However, how to fix the following WARNING? org.apache.axis2.deployment.AxisConfigBuilder processDeployers WARNING: Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeploye

Re: jaxws-calculator : Failed to access the WSDL at: http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl

2019-12-13 Thread albert kao
://localhost:8080/services/listServices > > On Tue, Dec 10, 2019 at 2:31 AM albert kao wrote: > > > > I did these: > > $ cd $AXIS2_HOME/samples/jaxws-calculator > > $ mvn clean install > > > > Two files were created: > > samples/jaxws-calculator/ta

Re: jaxws-calculator : Failed to access the WSDL at: http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl

2019-12-13 Thread albert kao
try this URL as a diagnostic test, to see if there are > any clues about the state of this service and axis2 in general. > > http://localhost:8080/axis2/axis2-web/HappyAxis.jsp > > On Tue, Dec 10, 2019 at 2:31 AM albert kao wrote: > > > > I did these: > > $

jaxws-calculator : Failed to access the WSDL at: http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl

2019-12-10 Thread albert kao
I did these: $ cd $AXIS2_HOME/samples/jaxws-calculator $ mvn clean install Two files were created: samples/jaxws-calculator/target/jaxws-calculator-1.7.9.jar samples/jaxws-calculator/target/jaxws-calculator-1.7.9-client.jar $ cd $AXIS2_HOME/samples/jaxws-calculator/target/classes java org.apac

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

2019-10-28 Thread albert kao
> > > > > > > > > > > On Thu, Oct 24, 2019 at 2:02 AM albert kao wrote: > >> I modified log4j.properties, rebuil

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

2019-10-24 Thread albert kao
axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via > 'jar xf axis2-transport-local-1.7.9.jar' . > > On Sat, Oct 19, 2019 at 5:21 AM albert kao wrote: > >> I am learning axis2 by doing the "samples/java_first_jaxws". >> >&g

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

2019-10-21 Thread albert kao
nsport-local-1.7.9.jar in the expanded war dir > axis2.war/WEB-INF/lib ? > > Regards, > Robert > > On Sat, Oct 19, 2019 at 5:21 AM albert kao wrote: > >> I am learning axis2 by doing the "samples/java_first_jaxws". >> >> $ cd $AXIS2_HOME/samples/j

java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

2019-10-19 Thread albert kao
I am learning axis2 by doing the "samples/java_first_jaxws". $ cd $AXIS2_HOME/samples/java_first_jaxws $ mvn package java_first_jaxws-1.7.9.war was built successfully. $ cp ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war $JBOSS_HOME/standalone/deployments wildfly server

Re: No valid CSRF token found in request for the POJO Web Services using Apache Axis2

2019-10-18 Thread albert kao
Program files. > > Can make a folder like c:\j\tomcat > Put tomcat, put exploded war, in there web-inf...copy aar file. > > On Fri, 18 Oct, 2019, 19:24 albert kao, wrote: > >> How to put the aar file in the WEB-INF/services directory manually >> without the

Re: No valid CSRF token found in request for the POJO Web Services using Apache Axis2

2019-10-18 Thread albert kao
> Regards, > Robert > > > > On Wed, Oct 16, 2019 at 1:43 AM albert kao wrote: > >> I am learning axis2 by doing the "POJO Web Services using Apache Axis2". >> WeatherService.aar was built successfully. >> >> I set the path to the WeatherService.

No valid CSRF token found in request for the POJO Web Services using Apache Axis2

2019-10-16 Thread albert kao
I am learning axis2 by doing the "POJO Web Services using Apache Axis2". WeatherService.aar was built successfully. I set the path to the WeatherService.aar in the Administration Console. Then I click the upload icon. The "No valid CSRF token found in request" message appear in the web browser.

No valid CSRF token found in request for the POJO Web Services using Apache Axis2

2019-10-16 Thread albert kao
I am learning axis2 by doing the "POJO Web Services using Apache Axis2". WeatherService.aar was built successfully. I set the path to the WeatherService.aar in the Administration Console. Then I click the upload icon. The "No valid CSRF token found in request" message appear in the web browser.

axis2 REST tutorial with WSDL 2.0

2010-06-17 Thread albert kao
Is there any axis2 REST (ideally with all GET, POST, PUT and DELETE operations) tutorial with WSDL 2.0 (written in 2010 ideally)? I found one tutorial (http://wso2.org/library/3726) written in 2008 which write the code first and then use Axis2 java2wsdl tool to generate a WSDL. Then tinker the gene