axis2

How to write effective web services in java

自作多情 提交于 2019-12-20 08:19:17
问题 Though this might appear as a duplicate of Java Web Services , I would like to know Where to start and to continue.In the past, I have invested so much of time to find where to start but I wasn't able to. There are so many jargons and chaos (at least for me!) while reading the pages about web services. There are so many terms - like JAX-RPC, JAX-WS, Axis, Rest, Servlet as WebService, EJB's as Web Service and other terms that I don't know. Can this User group consolidate and give a highlevel

Axis2 not returning own objects

强颜欢笑 提交于 2019-12-20 06:04:49
问题 I've written some webservices where some return a simple String (this ones work) and other returning a list of objects. No, axis2 (1.5.1) cannot handle collection types, so I changed my return type to Object[] but still I recieve this exception [ERROR] java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not fond for the package: de.ac.dto org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not fond for the package: de.ac.dto at

How to access a .properties file from my Java Web Service

ぃ、小莉子 提交于 2019-12-20 04:30:41
问题 I have deployed my java web service successfully using tomcat. This web service is accessing a configuration file (.Properties) I have placed the config.properties files in the following directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ProcurementWS1\WEB-INF\classes\MainPackagePr ProcurmentWS1 is the name of the WAR file this is how am trying to access it from my code: Properties properties = new Properties(); InputStream is = Thread.currentThread()

Wso2Dss Box_Carring not working in WSO2esb4.8.0

荒凉一梦 提交于 2019-12-20 03:19:13
问题 I am working with wso2dss3.0.1 and wso2esb4.8.0.I wish to work with Transactions for that i enabled box_carying in wso2dss and its working fine.Means i wish insert the data into 2 tables if 2nd table failed my first table also need to rollback.This functionality working in wso2dss.While i am calling same service using wso2esb that time transaction rollback is not working box_carying is not working fine my configuration is like this <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http:/

Difference between two soap requests

邮差的信 提交于 2019-12-19 11:04:52
问题 My SOAP Request <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://ws.dgpys.deloitte.com" xmlns:ns2="ws.apache.org/namespaces/axis2"> <env:Header> <ns2:ServiceGroupId> <BOGUS>urn:uuid:7C2F61BDE7CB9D9C6D1424938568724</BOGUS> </ns2:ServiceGroupId> </env:Header> <env:Body> <ns1:getGunlukParametreRapor> <date>2015-02-22T00:00Z</date> </ns1:getGunlukParametreRapor> </env:Body> </env:Envelope> Expected SOAP Request <?xml

Tomcat 8, axis2 webservices aar, spring jndi not bound in context

会有一股神秘感。 提交于 2019-12-19 04:21:59
问题 I have been working on an issue where JNDI name is not found in the context an axis2 webservice is running. This issue is only in Tomcat 8 when I use spring. Some details: (I will provide the elements that are relevant) 1. services.xml <service name="ScoreService" class="com.bpl.ws.service.ScoreServiceInitializer"> <description>Simple test service</description> <parameter name="ServiceObjectSupplier" locked="false">org.apache.axis2.extensions.spring.receivers

JAX-WS MTOM Sample Code

时光总嘲笑我的痴心妄想 提交于 2019-12-19 04:04:38
问题 I'm looking for a simple, working sample MTOM sample code (service + client) either using JAX-WS RI or Axis2-based. I googled the word only to find snippets and codes that don't simply work! I want to send PDF attachments to the requesting web service client. 回答1: looks like i asked the Question a little early :) Here is a sample jax-ws code with MTOM .. i cud manage on my own.. Heard and read that even with axis2 + mtom there are some issues..documentation too is really bad in axis2. Also

deploy war file in tomcat server

我是研究僧i 提交于 2019-12-18 11:45:53
问题 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. 回答1: 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

How to configure SSL with Axis2 using httpClient4

亡梦爱人 提交于 2019-12-18 09:43:21
问题 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.. 回答1: The axis2 httpclient4 migration is not so

Creating SSL client with Axis2/Java

三世轮回 提交于 2019-12-18 09:35:14
问题 I'm trying to connect to the WebService that uses SSL but no success. I use Axis2, I found some usefull article: http://people.apache.org/~dumindu/docs/HowToConfigureSSL.html, but it is for C. In this article they set pathes to SERVER_CERT, KEY_FILE and SSL_PASSPHRASE using axis2.xml or C coding. I tried to change configuration file but this doesn't work for me. If somebody know how to set this parameters from within Java code, let me know. 回答1: I initialized EasySSLProtocolSocketFactory and