axis2

Ws-Security headers using Metro

◇◆丶佛笑我妖孽 提交于 2019-12-10 11:27:45
问题 I have a web service which implements WS-Security but does not define a policy in the WSDL. I am able to consume this web service successfully using Axis 2 as client. I am trying to consume the same web service using Metro 2 but the wsse:security headers are not going. It works only if the service defines the security policy which is not under my control. I tested this by creating a sample web service and unless I define the policy my metro client never sends the wsse:security headers. Is

axis2+rampart: Must Understand check failed for header Security

前提是你 提交于 2019-12-10 11:05:00
问题 I have problem with axis2+rampart WS-Security response in case of server internal error. When server returns "200 OK" all seems ok. Response is checked by rampart if it has proper timestamp, signature and decrypts function response XML. But when server returns "500 Internal Server Error" axis2/rapart throws exception: ERROR Thread-11 org.apache.axis2.engine.AxisEngine - Must Understand check failed for header I thought there is something wrong with answer and tested it with soapUI. There

No subject alternative names present exception when creating web service client

僤鯓⒐⒋嵵緔 提交于 2019-12-10 10:58:49
问题 I want to create a web service client using wsdl2java utility. I have to connect to this server over SSL This wsdl looks like this: https://xxx.xx.xx.xx:8443/api/wsdl/xxxxxxx.wsdl I generated the certificate using: openssl s_client -connect xxx.xx.xx.x:8443 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > abcCertificate.pem and added it to keystore using: keytool -import -noprompt -trustcacerts -alias testcert -file abcCertificate.pem -keystore /usr/java/jdk1.7.0_06/jre/lib

Axis2 and Webservices: File Upload

ε祈祈猫儿з 提交于 2019-12-10 10:40:33
问题 I'm trying to write a simple web service using Axis2. Its behaviour is really simple: it takes a file in input and stores it. I've tried several things to do this "simple" file upload service. At the beginning i also tried to use Java2WSDL and WSDL2Java to create the WSDL file and the client hoping to pass the java.io.File datatype. Of course it didn't work. I'm now trying to upload the file using SOAP attachments and MTOM or SwA. I've enabled them both in axis2\WEB-INF\conf\axis2.xml Server

主流webservice框架整理

北战南征 提交于 2019-12-09 21:48:35
webserice 其实就是一套平台标准,采用soap协议通过http来调用。 常用的webserice框架主要有: 1. JDK自带的webserice框架;需要jdk1.6或者以上。在jdk当中自带了wsimport和wsgen两个可以生成客户端代码的工具。如果只是webservice的客户端,就可以直接用这两个工具就可以生成客户端的调用代码,而不需要第三方的webserice框架。 2 xfire;曾经是webserice当中比较容易上手的webserice框架。现在已经没有维护升级,官方推荐采用axis2; 3 axis2;功能比较强大的webserice框架。可以编写供其他任何语言调用的webserice服务端。如果你的webserice端需要给其他语言,如c++,c#等非Java语言调用,可以考虑用该框架。 4 cxf;对该框架不太熟悉,就不做评论。 来源: oschina 链接: https://my.oschina.net/u/262388/blog/54859

WebService之Axis2快速入门(1): 用POJO实现0配置的WebService

丶灬走出姿态 提交于 2019-12-09 21:35:39
Axis2是一套崭新的WebService引擎,该版本是对Axis1.x重新设计的产物。Axis2不仅支持SOAP1.1和SOAP1.2,还集成了非常流行的REST WebService,同时还支持Spring、JSON等技术。这些都将在后面的系列教程中讲解。在本文中主要介绍了如何使用Axis2开发一个不需要任何配置文件的WebService,并在客户端使用Java和C#调用这个WebService。 一、Axis2的下载和安装 读者可以从如下的网址下载Axis2的最新版本: http://ws.apache.org/axis2/ 在本文使用了目前Axis2的最新版本1.4.1。读者可以下载如下两个zip包: axis2-1.4.1-bin.zip axis2-1.4.1-war.zip 其中axis2-1.4.1-bin.zip文件中包含了Axis2中所有的jar文件, axis2-1.4.1-war.zip文件用于将WebService发布到Web容器中。 将axis2-1.4.1-war.zip文件解压到相应的目录,将目录中的axis2.war文件放到<Tomcat安装目录>\webapps目录中(本文使用的Tomcat的版本是6.x),并启动Tomcat。 在浏览器地址栏中输入如下的URL: http://localhost:8080/axis2/

running an axis2 client version 1.5

坚强是说给别人听的谎言 提交于 2019-12-09 17:54:18
问题 So I'm running out of ideas to try to actually get a client to connect to the SOAP service I'm running through axis2. I tried two methods, one was to use wsdl2java to build the stub and associated client side classes, and then write a Client class that build the requests messages and sends them through the Stub. The other way was to use the ServiceClient to connect.. Both are failing in their own way.. Option #1, every time a message is sent through the stub I get this back: org.apache.axis2

Does WCF FaultException<T> support interop with a Java web service Fault

扶醉桌前 提交于 2019-12-09 01:47:39
问题 I have written a java axis2 1.4.1 web service and .net 3.5 WCF client and I am trying to catch the wsdl faults thrown. Unlike .net 2.0 the .net 3.5 claims to support wsdl:fault and the service reference wizard does generate all the correct fault classes in the client proxy. But when I try to catch a fault it doesn't seem to correctly serialise so that I can only catch (FaultException ex) and not the type I actually threw using FaultException<T> I had a look inside my reference.cs I can see

ERROR engine.AxisEngine: An unsupported signature or encryption algorithm was used (unsupported key transport encryption algorithm: No such algorithm

a 夏天 提交于 2019-12-08 13:39:05
问题 I am getting the below exception when I am calling the SecureStockQuoteProxy service with a proxy service. Here I have exposed this secured service as a REST API (which is unsecured). When I am calling the REST API, ESB throws the below error. [2013-11-24 12:41:46,386] ERROR - AxisEngine InvalidSecurity org.apache.axis2.AxisFault: InvalidSecurity at org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164) at org.apache.axis2.engine.Phase

Exception classes generated using Axis2 wsdl2java don't extend Exception

爷,独闯天下 提交于 2019-12-08 11:31:36
问题 I'm trying to generate a client using wsdl2java. The wsdl is as follows: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://admin.ws.csd.rsa.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://admin.ws.csd.rsa.com" xmlns:intf="http://admin.ws.csd.rsa.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!--WSDL created by Apache Axis version: 1