WebService

#WebService#

已有0人关注此标签

内容分类

liyan李焱

使用CXF简单的做了一个WebService的示例,但是部署到WebSphere上出现404找不到文件

问题是:Error 404: SRVE0190E: 找不到文件:{0} 甚是苦恼呀

晓生寒

[@炯轩][¥20]Android 4.0 怎么调用Webservice 还有就是怎么调用带SoapHeader的Webservice

Android 4.0 怎么调用Webservice 还有就是怎么调用带SoapHeader的Webservice

blackhu

[@墨玖tao][¥20]有关rpc和http协议傻傻分不清

http和rpc是并列关系,还是所属关系这点一直搞不太懂,主要是针对现在的分布式服务框架,服务之间的通信和常用的webservice,restful这类移动通信,以及前后端分离之后的前后端通信(http api)有什么区别呢?

meijm0103

[@徐雷frank][¥20]RestfulWebServices 和 webapi 的使用场景是啥

目前系统中有系统对外接口的需求和多客户端的需求 多客户端的需求准备用webapi的模式来解决 系统对外接口是应该是用webservice或Restful风格的WebServices还是沿用webapi呢

健东

调用webservice 报NoClassDefFoundError for c

调用webservice 报NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder

健东

wsimoort 生成webservice客户端,调用接口报错

wsimoort 生成webservice客户端,调用接口报错

健东

wsimoort 生成webservice客户端,调用接口报错

wsimoort 生成webservice客户端,调用接口报错

王连杰24

wsimoort 生成webservice客户端,调用接口报错

NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder报这个异常,请问是什么原因

王连杰24

调用webservice 报NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder

利用wsimoort 生成webservice客户端代码调用接口的时候报NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder,一直没有找到原因,请帮忙解答一下

王连杰24

[@古散][¥20]调用webservice 报NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder

利用wsimoort 生成webservice客户端代码调用接口的时候报NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder,一直没有找到原因,请帮忙解答一下

怡辰998

[@墨玖tao][¥20]错误咨询

用cxf+spring发布webservice,使用apache-cxf客户端方式调用接口访问服务器时,报javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found 错误,异常堆栈信息如下: Caused by: javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found with linked exception:[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:151)at javax.xml.bind.ContextFinder.find(ContextFinder.java:299)at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)at org.apache.cxf.wsdl.JAXBExtensionHelper.createJAXBContext(JAXBExtensionHelper.java:196)at org.apache.cxf.wsdl.JAXBExtensionHelper.getJAXBContext(JAXBExtensionHelper.java:183)... 65 moreCaused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactoryat java.net.URLClassLoader$1.run(URLClassLoader.java:202)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java:190)at java.lang.ClassLoader.loadClass(ClassLoader.java:306)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)at java.lang.ClassLoader.loadClass(ClassLoader.java:247)at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:116)... 70 more

马铭芳

JAVA框架【精品问答合集】

MongoDB有没比较好用的JAVA框架? https://yq.aliyun.com/ask/4055 java 验证框架有哪些呢 https://yq.aliyun.com/ask/8239 java web系统框架方案? https://yq.aliyun.com/ask/7159 Java极速框架JFinal--如何定义全局的变量?https://yq.aliyun.com/ask/24470 java中的orm框架 https://yq.aliyun.com/ask/8290 Java极速框架JFinal--在config中如何加载属性文件 ?https://yq.aliyun.com/ask/24471 java三大框架的问题,数据库操作https://yq.aliyun.com/ask/14174 java web项目值问题Spring webwork 框架!https://yq.aliyun.com/ask/9469 用java编写app的服务器端,需要用到什么技术和框架?https://yq.aliyun.com/ask/36461 是否有好的JAVA轻量级分布式框架推荐?https://yq.aliyun.com/ask/11845 java极速web+orm框架Jfinal---在config时,如何更省心?https://yq.aliyun.com/ask/24583 java极速web+orm框架Jfinal--在验证不通过时,如何保留前端已输入的内容? https://yq.aliyun.com/ask/24556 webservice框架怎么处理复杂对象传输问题?https://yq.aliyun.com/ask/7992

认真写代码

maven+spring+cxf cxf启动webService报错

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ApiWebService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 8,089: Cannot assign requested address: bind at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 8,089: Cannot assign requested address: bind at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ... 26 more Caused by: org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 8,089: Cannot assign requested address: bind at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:488) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:175) at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:53) at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95) at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:896) at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:366) ... 35 more Caused by: java.net.BindException: Cannot assign requested address: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:344) at sun.nio.ch.Net.bind(Net.java:336) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:366) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:477) ... 41 more

1740119896960961

云虚拟主机上建的网站,如何实现算法隐藏?

想制作一个网页,给用户两个输入框a和b和一个提交按钮。用户访问这个网页,a、b分别输入两个值,如a=1,b=2,然后点提交,网页显示算法f(a,b)的计算结果。几个问题麻烦解答:1.算法f(a,b)应该写在哪里?如果写到主页index.html里,那用户在浏览器查看源代码不就知道了?如果写到js文件里,不也一样会首先下载后用户本地,算法不一样泄漏了吗?2.也了解过云服务器,那个类似于一个电脑,可以部署webservice提供接口实现这个功能。那如何在虚拟主机上做webservice呢?求建议,多谢

1060742456274091

一个有400个app手机端调用服务器webservice接口需要啥样服务器配置

工厂400个员工 下班通过手机提交工作数据,也就是在下班的时候会出现一个比较集中的并发。请问我该选择什么样服务器配置和带宽呢

黄黄黄abc

阿里云上 webservice接口利用ip无法访问,只能通过localhost访问

在阿里云上利用python 的soaplib包搭建webservice接口,在其他本地机子能通过ip访问,在部署到阿里云上时只能通过http://localhost:7789/?wsdl才能访问 -- coding: utf-8 -- import soaplibfrom soaplib.core.service import rpc, DefinitionBasefrom soaplib.core.model.primitive import String, Integer, Booleanfrom soaplib.core.server import wsgifrom soaplib.core.model.clazz import Arrayfrom soaplib.core.service import soapfrom soaplib.core.model.clazz import ClassModel from soaplib.core.util.wsgi_wrapper import run_twisted import task1_learnimport task1_sham class HelloWorldService(DefinitionBase): @soap(String, _returns=Array(String)) def get_privacy(self, columns): pri_list = task1_learn.web_post1(columns) return pri_list if name == '__main__': try: from wsgiref.simple_server import make_server soap_application = soaplib.core.Application([HelloWorldService], 'tns','webservice') wsgi_application = wsgi.Application(soap_application) server = make_server('localhost',7789, wsgi_application) server.serve_forever() except ImportError: print "Error: example server code requires Python >= 2.5"

ccwonline

关于.NET WebService使用消息队列服务的问题恳请高手解答

普通的应用使用消息队列,例如控制台程序,那么ONSClient4CPPPINVOKE这个dll放在bin下就可以了,这样DLLImport就能调用到。但是如果是WebService呢?是没有bin文件夹的,也不知道WebService运行在哪个目录下,有没有人知道WebService用ons.ONSClient4CPPPINVOKE的话,要把ONSClient4CPP.dll放在哪里?或者怎么设置一下。

office123456

阿里云企业邮箱WebService接口的Url是什么啊?

阿里云企业邮箱WebService接口的Url是什么啊?在线等, 急! 急! 急?

新城冷空气

关于在阿里云上部署webservice无法调用的问题

各位大侠,小弟公司最近服务器搬迁到了阿里云服务器,突然发现原来的webservice无法调用了,经过测试发现是解析出来的ip有问题 [没有终结点在侦听可以接受消息的 http://172.19.4.53:8080/XXXXX/services/XXXXXXXX/。这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参见 InnerException 以了解详细信息。]2017/5/16 22:11:22 他解析出的ip是172.19.4.53这个是服务器的内网ip而非外网导致调用接口失败,webservice是axis2集成的tomcat一个项目发布的,请问各位有没有知道怎么解决的?更多 0

成群

H错误 500.19 - Internal Server Error 无法访问请求的页面,因为该页的相关配置数据无效。

我将webservice发布到本地文件系统,然后复制这些文件到虚拟主机根目录,出现错误 在唯一密钥属性“value”设置为“WebService1.asmx”时,无法添加类型为“add”的重复集合项