标签: axis2

Axis2 1.7.1 wsdl2java 问题

wsdl2java -u -uri在 wsdl 文件和它生成的 java 类上运行引发错误xxx must implement the inherited abstract method adbbean.getpullparser。我想我以前没有遇到过这个问题。

这是为什么?

axis2 wsdl2java

1
推荐指数
1
解决办法
1721
查看次数

在AXIS2中关闭HTTP Chunking的问题

我有一个客户端在没有HTTP分块的情况下向我发送请求(它们使用内容长度).当我的服务器响应时,启用了分块,客户端无法处理 - 即使他们应该能够使用HTTP 1.1 .....

我试图通过从axis2配置文件(axis2.xml)中删除下面的条目来禁用分块,但响应仍然会返回分块.

分块

所以问题是,是否还有其他地方正在启用超出axis2设置的分块?在tomcat设置或许?

Web服务器详细信息 - tomcat 6.0.16,axis2 2.1.3

谢谢迈克

axis2 transfer-encoding chunked-encoding

0
推荐指数
1
解决办法
7415
查看次数

Axis2 迁移

我们有一个使用axis2 1.0 的应用程序。我们最近迁移到了axis2 1.4。迁移后,我们在运行时面临以下错误:

public static org.apache.axis2.context.ConfigurationContext org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(java.net.URL,java.net.URL) throws org.apache.axis2.AxisFault] threw exception; 
nested exception is org.apache.axis2.AxisFault: Invalid phases please recheck axis2.xml {0} for the handler {1}
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(AccessController.java:224)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    at com.wellpoint.integration.saf.api.SAFServiceFactory.<init>(SAFServiceFactory.java:45)
    at com.wellpoint.integration.saf.api.SAFServiceFactory.<init>(SAFServiceFactory.java:39)
    at com.wellpoint.integration.saf.api.SAFServiceFactory.getInstance(SAFServiceFactory.java:54)
    at com.idea.app.service.IdeaValidateServiceImpl.getGroupRecordFromSAF(IdeaValidateServiceImpl.java:168)
    at com.idea.app.service.IdeaValidateServiceImpl.ValidateGroupInfo(IdeaValidateServiceImpl.java:87)
    at com.idea.app.validators.GroupNumberValidator.isValidGroup(GroupNumberValidator.java:185)
    at com.idea.app.validators.GroupNumberValidator.validate(GroupNumberValidator.java:97)
    at org.richfaces.component.html.HtmlInputText.validateValue(HtmlInputText.java:52)
    at javax.faces.component.UIInput.validate(UIInput.java:875) …
Run Code Online (Sandbox Code Playgroud)

java axis2 web-services phase

0
推荐指数
1
解决办法
2769
查看次数

尝试访问Web服务时,Apache Axis2抛出NoSuchMethodError吗?

我正在尝试使用axis2来访问以下Web服务:http : //www.webservicex.net/geoipservice.asmx? WSDL

我在本地拥有Axis2,并且通过将wsdl下载到本地驱动器并运行来生成类:

./wsdl2java.sh -uri geoipservice.wsdl -p geoip -d xmlbeans -s -o geoip
Run Code Online (Sandbox Code Playgroud)

这产生了一个带有build.xml文件的构建目录,然后我在其中运行了“ ant”,并且在libs文件夹中产生了一个客户端jar。

我将此罐子放到类路径上,然后尝试使用以下代码来访问该服务:

GeoIPServiceStub stub = new GeoIPServiceStub("http://www.webservicex.net/geoipservice.asmx?WSDL");
GetGeoIPDocument req = GetGeoIPDocument.Factory.newInstance();
GetGeoIP gic = req.addNewGetGeoIP();
gic.setIPAddress("74.125.91.105");  // google.com
GetGeoIPResponseDocument resp = stub.getGeoIP(req);
System.out.println(resp.getGetGeoIPResponse().toString());
Run Code Online (Sandbox Code Playgroud)

事情似乎在一开始就运行了,我看到结果又回到了syslog中,但是在完成之前它会抛出此异常:

java.lang.NoSuchMethodError: org.apache.axiom.om.impl.OMStAXWrapper.<init>(Lorg/apache/axiom/om/OMXMLParserWrapper;Lorg/apache/axiom/om/OMElement;Z)V
at org.apache.axiom.om.impl.llom.OMStAXWrapper.<init>(OMStAXWrapper.java:52)
at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader(OMElementImpl.java:795)
at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReaderWithoutCaching(OMElementImpl.java:765)
at geoip.GeoIPServiceStub.fromOM(GeoIPServiceStub.java:767)
at geoip.GeoIPServiceStub.getGeoIP(GeoIPServiceStub.java:325)
Run Code Online (Sandbox Code Playgroud)

我到处都用Google搜索,却找不到导致这种情况的原因。谁能帮助我找到我做错了什么?谢谢。

apache axis2 web-services exception

0
推荐指数
1
解决办法
8102
查看次数

如何解决Axis 2错误

我创建了一个WSDL,我想利用AXIS 2作为我的Web服务器.

我将它下载到我的C:\ axis2-1.6.1并设置了所有必需的安装参数.

我的问题是,我将*.aar文件部署到repository/services文件夹中,并且axis2server能够对其进行解压缩,当我导航到我时,我看到了我的Web服务

HTTP://本地主机:8080

当我使用SOAPUI测试我的服务时,我只收到此错误.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>unknown</faultstring>
         <detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)

不确定,但我没有在Axis控制台上看到任何错误?

我在哪里可以找到任何相关信息来解决这个问题?

java axis2 web-services

0
推荐指数
1
解决办法
3572
查看次数

尝试在wsf/php 2.1中运行安全性示例时出错

安装wsf/php 2.1后使用

./configure --enable-libxml2 --disable-savan
make 
sudo make install
Run Code Online (Sandbox Code Playgroud)

除了安全示例之外,所有示例都有效......我在apache error.log中记录了此错误:

/usr/lib/php5/xxx/wsf.so: undefined symbol: rampart_context_create
Run Code Online (Sandbox Code Playgroud)

我用Suhosin-Patch(cli)运行Ubuntu 11.10和PHP 5.3.6-13ubuntu3.3(内置:2011年12月13日18:37:10)

可能是什么错误?

java axis2

0
推荐指数
1
解决办法
454
查看次数

AxisFault类型也不例外; 异常类型必须是Throwable的子类

我使用Axis2_Codegen_Wizard_1.3.0创建了WSDL存​​根,但在MyWebServiceStub.java给出错误"型AxisFault无异常可能抛出;异常类型必须是Throwable的子类"

我想我错过了一些jar库,但不知道我需要哪一个.请帮忙?

axis2 web-services eclipse-plugin

0
推荐指数
1
解决办法
3006
查看次数

WSDL2Java故障-嵌套内容

我正在尝试使用Axis2 wsdl2java从一大套模式(总共15k行)生成Java存根,并且遇到以下复杂类型的问题。最初在架构文件上运行该工具时,我收到了一条非描述性的错误消息,“不支持的内容简单内容!”。为了找到此错误的原因,我从源代码下载并部署了Axis2项目,找到了错误字符串并检查了引起问题的元素。我相信问题的根源与在简单内容内嵌套具有简单内容的复杂类型有关。

我有两个示例,分别是SequencedTextType(失败)和OpenTextType(成功)。两种类型都具有作为TextType扩展名的内容。这样应该可以更容易地发现问题并提供解释。

故障 SequencedTextType:

<xs:element name="Reason" type="SequencedTextType" id="oagis-id-fa892eb1e28c46088bc50394c62a8655"/>

<xs:complexType name="SequencedTextType" id="oagis-id-51e010d7a1e24ebe89fcf58989fefd1b">
    <xs:complexContent>
        <xs:extension base="TextType">
            <xs:attribute name="sequenceNumber" type="NumberType_B98233" id="oagis-id-39a5a53826024a65a2291f50d9feecd3"/>
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

<xs:simpleType name="NumberType_B98233" id="oagis-id-d614ed8726ff482c9c5a8183d735d9ed">
    <xs:restriction base="xs:integer"/>
</xs:simpleType>
Run Code Online (Sandbox Code Playgroud)

路过 OpenTextType:

<xs:complexType name="OpenTextType" id="oagis-id-5840f7a57dd949ababcd1eb394b2840c">
    <xs:simpleContent>
        <xs:extension base="TextType">
            <xs:attribute name="typeCode" type="CodeType_1E7368" id="oagis-id-2780e69800934662a4782be31c2bacf6"
                          use="optional"/>
        </xs:extension>
    </xs:simpleContent>
</xs:complexType>

<xs:simpleType name="CodeType_1E7368" id="oagis-id-d2f721a297684b538e7dbb88cf5526bc">
    <xs:restriction base="xs:token"/>
</xs:simpleType>
Run Code Online (Sandbox Code Playgroud)

共享 TextType:

<xs:complexType name="TextType" id="oagis-id-d97b8cf6a26f408db148163485796d15">
    <xs:simpleContent>
        <xs:extension base="TextType_62S0B4"/>
    </xs:simpleContent>
</xs:complexType>

<xs:complexType name="TextType_62S0B4" id="oagis-id-89be97039be04d6f9cfda107d75926b4">
    <xs:simpleContent>
        <xs:extension base="xs:string">
            <xs:attribute name="languageCode" type="clm56392A20081107_LanguageCodeContentType" id="oagis-id-c8d0c7094d7d4fbeb7e50fd20a17c1b3" use="optional"/>
        </xs:extension>
    </xs:simpleContent> …
Run Code Online (Sandbox Code Playgroud)

xsd axis2 cxf wsdl2java

0
推荐指数
1
解决办法
2295
查看次数

如何使用 httpClient4 为 Axis2 配置 SSL

由于 httpClient 3 已经过时,我需要替换代码:

SSLProtocolSocketFactory.setSSL(trustStore, keyStore, pasw);
ProtocolSocketFactory factory = new SSLProtocolSocketFactory();
Protocol.registerProtocol("https", new Protocol("https", factory, 443));
Run Code Online (Sandbox Code Playgroud)

如果有人尝试过,请分享。

在java代码中,我试图使用 OperationClient 对象 operationClientObject.execute(true); 调用 webservice;

提前致谢..

ssl axis2 apache-httpclient-4.x

0
推荐指数
1
解决办法
4771
查看次数

Axis2部署问题

我使用axis2 1.7.3版本来满足我的Web服务需求.当我部署aar文件时,它显示以下异常.我在Web服务实现文件中使用了java 8功能(例如,流,过滤器等).axis2是否支持部署使用java 8功能实现的Web服务.

org.apache.axis2.deployment.DeploymentException:在模式生成期间发生以下错误:在字节码中查找参数名称时出错:org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:441)中文件中的意外字节位于org.apache的org.apache.axis2.deployment.repository.ArchiveReader.revloyment.repository.ArchiveReader.processService(ArchiveReader.java:232)中的org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109).在org.apache.axis.deploy.DeploymentEngine.doDeploy的org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)上的axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154) DeploymentEngine.java:585)org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164)org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)at org .apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)位于org.apache.axis2.deployment.scheduler的org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:73) .schedulerTask.run(SchedulerTask.java:94)位于java.util的java.util.TimerThread.mainLoop(未知来源)的org.apache.axis2.deployment.scheduler.Scheduler $ SchedulerTimerTask.run(Scheduler.java:93) .TimerThread.run(Unknown Source)由以下原因引起:org.apache.axis2.deployment.DeploymentException:在模式生成期间发生以下错误:在字节码中查找参数名称时出错:org.apache.axis2.deployment文件中的意外字节. ServiceBuilder.populateService(ServiceBuilder.java:404)... 14更多引起:java.lang.IllegalStateException:在字节码中查找参数名称时出错:org.apache.axis2.description.java2wsdl.bytecode.ClassReader中文件中的意外字节org.apache.axis2.description.java2wsdl.bytec上的.readCpool(ClassReader.java:354)ode.ParamReader.(ParamReader.java:78)org.apache.axis2.description.java2wsdl.bytecode.ParamReader.(ParamReader.java:57)at org.apache.axis2.description.java2wsdl.bytecode.ChainedParamReader.(ChainedParamReader) .java:52)atg.apache.axis2.description.java2wsdl.bytecode.MethodTable.(MethodTable.java:31)org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.(DefaultSchemaGenerator.java:177)at org. apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:454)at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)... 14更多信息

java axis2 web-services

-1
推荐指数
1
解决办法
1885
查看次数