由买买提看人间百态

topics

全部话题 - 话题: webservice
首页 上页 1 2 3 4 5 6 7 下页 末页 (共7页)
c*****s
发帖数: 214
1
来自主题: Java版 - Axis1.2RC3问题
我的两个相同的程序都在用Axis 1.2RC3访问某webservice。其中一个一直报下面这个错
误。
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ArrayIndexOutOfBoundsException: 0
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ArrayIndexOutOfBoundsExcept
ion: 0
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:289)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
...
HttpSender 289
c*****s
发帖数: 214
2
来自主题: Java版 - Axis1.2RC3问题

!=
HttpSender是axis里的类,
包在axis-1.2-RC3.jar里。我最终能拿到的是axis生成的stub类,完全看不到HTTP请求,
SOAP请求,webservice call这些东西。
源码是下载了才看到的。
c*****s
发帖数: 214
3
来自主题: Java版 - Axis1.2RC3问题
问题变成了weblogic问题。出错的程序是在weblogic 7.1环境下运行的。weblogic 中有
几个包(webservices.jar, webserviceclient.jar等)里包含老的javax.xml.soap类。
weblogic 8
中这样的问题可以通过设置WEB-INF/weblogic.xml里的true prefer-web-inf-classes>参数来解决。但7.1不支持这个参数。
我的问题是在weblogic7.1里如何强迫让系统先寻找一个类时先看webapp自己的classpath
, 再找weblogic的。


{http://xml.apache.org/axis/}stackTrace:java.lang.ArrayIndexOutOfBoundsExcept





c*****s
发帖数: 214
4
来自主题: Java版 - Axis1.2RC3问题
Thanks
问题解决。
因为我们本来就有一个自己的启动weblogic的ant脚本,在那里我把saaj-1.2.jar放到了
最前面。
奇怪的是只要weblogic.jar在前面这个问题就会出现,而weblogic.jar里并没有javax.xm
l.soap包,webservices.jar 和webserviceclient.jar里才有。
w******n
发帖数: 692
5

好象你的概念有问题, 一般session的实现是用cookie的,没什么大的安全问题.

很多公司提供服务的,比如你可以去cybersource.com去看一下. 我知道的比较多的实
现是用webservice, 同时提供security certificate加密. 你把用户提供的信息全部扔
过去,如果返回ok, 就成交, 不然reject. 甚至你都不用本地记录这些东西. 服务提供
商会帮你log的.

p***p
发帖数: 559
6
来自主题: Java版 - Log4j expert
I am debuging a Webservice application based on AXIS, AXIS pumps debug message
crazy. How can I let AXIS only show error debug message and my application
shows all debug mesage? About the log4j.properties
c*****t
发帖数: 1879
7
来自主题: Java版 - Can someone help on Soap?
A collaborator who implemented a webservice for me just dump the data in
a simple xml output for one query due to the complexity of the data, and
several tab deliminated tables for another query.
t*******e
发帖数: 684
8
来自主题: Java版 - JAVA技术更新太快了!
JSF, Spring, Hibernate, JavaEE5(EJB3), WebServices(JAXP, JAXB, JAX-RPC,JAX-
WS) 最好都知道一些, WEBWORK, TAPESTRY, VELOCITY不是很popular, 很多ideas也被
借鉴在上面的技术规范中了.
t****r
发帖数: 25
9
来自主题: Java版 - webservices products
xFire vs. Axis
anyone having experiences of these 2 products? share share?
g*****g
发帖数: 34805
10
来自主题: Java版 - webservices products
If you have a spring application, I'd suggest you go for
xFire, it has natural support, it took it one day to figure
all out. xFire is faster, but Axis has much better documentation.
t****r
发帖数: 25
11
来自主题: Java版 - webservices products
we still use struts.. but may go for spring..
not decided yet.
hehe
thank u dude.
o***g
发帖数: 2784
12
来自主题: Java版 - webservices products
你们都喜欢怎么写Web Service呢?
POJO? or JSR 181?
g*****g
发帖数: 34805
13
来自主题: Java版 - webservices products
Actually I have no idea, I have a spring application,
I expose a bean through XFire, 2 configuration files
and you are done. No changes on code. I guess it's POJO
o***g
发帖数: 2784
14
来自主题: Java版 - webservices products
Good point: No changes on code.
我来试试。然后用java 6写个客户端
o***g
发帖数: 2784
15
来自主题: Java版 - webservices products
没搞定阿
给讲讲配置文件怎么写的?
web.xml service.xml & applicationcontext.xml
g*****g
发帖数: 34805
16
来自主题: Java版 - webservices products
Did you check their spring helloworld?
o***g
发帖数: 2784
17
来自主题: Java版 - webservices products
the example of spring in xfire dist pack?
it's using spring remoting a
g*****g
发帖数: 34805
18
来自主题: Java版 - webservices products
The Echo example.
o***g
发帖数: 2784
19
来自主题: Java版 - webservices products
这个成功了
能用,就先凑或着用吧,虽然不知道原理
o***g
发帖数: 2784
20
来自主题: Java版 - webservices products
折腾了一天client没折腾出来>.<
方法1:
java 6. wsimport http://......?wsdl
报错
方法2:
xfire eclipse plugin generate client
出来的东西不会用,和文档里面的东西不一样
方法3:
用spring remoting那里的方法


com......MyService


http://localhost:8080/MyService?WSDL


code:
ApplicationContext ac = .....
(XFireClientFacto
g*****g
发帖数: 34805
21
来自主题: Java版 - webservices products
照这个搞。
http://www.javaworld.com/javaworld/jw-05-2006/jw-0501-xfire.html?page=3
xfire的文档是很烂,幸好这东西搞明白一次就差不多了。
o***g
发帖数: 2784
22
来自主题: Java版 - webservices products
这个好用,呵呵,太感谢了
在我的desktop上跑了tomcat+client,客户端需要0.3秒才能得到结果。
不知道服务器需要多少时间。服务器上面还什么都没干呢
g*****g
发帖数: 34805
23
来自主题: Java版 - webservices products
你要搞明白几件事情。
1. web service跟简单servlet IO比肯定慢。
2. web service需要warm up的,也就是说hotspot compiler肯定要一阵子才能
弄明白该JIT哪一块
3. web service是应该多线程用的。普通workstation在饱和状态底下一秒处理
上百个request不是问题,对大多数应用不会是限制。
m******t
发帖数: 2416
24
来自主题: Java版 - webservices products
You need to cast to your service class or interface, not the FactoryBean -
that's what FactoryBeans are for.

code:
ApplicationContext ac = .....
(XFireClientFactoryBean)ac.getBean("testWebService"); //这里cast error
得到的bean不是XFireClientFactoryBean type
g*****g
发帖数: 34805
25
Remote management is not new, every Java enterprise application has some
management components. IMHO, JMX is new in providing a standard way
to do management, therefore decouple management code from your applications.
Plus, it's sort of self descriptive and dynamic (similar to UDDI in
webservice)
so you may use some standard JMX agent to do the management, without knowing
the business logic of your management, that may save quite some code.
Plus, change some properties and make them effective wi
g*****g
发帖数: 34805
26
I used System.properties and it worked, don't know about the
dynamic part.

which
too
doesn
z***h
发帖数: 405
27
thanks.
it works if standalone, won't work in application server.
z***h
发帖数: 405
28
In case anybody is interested, here is the solution for this.
try {
Class c = TransportClientPropertiesFactory.class;
Field field = c.getDeclaredField("cache");
field.setAccessible(true);
Map map = (Map) field.get(c);
map.clear();
} catch (Exception e) {
//you should never get here unless jar file is not in the
classpath or a new version of axis jar file doesn't have these class/methods
log.error(
m******t
发帖数: 2416
29
Interesting, thanks for sharing.
I would open an enhancement request with the axis team to provide a public
interface for clearing the properties. You seem to have a legitimate use
case right here.
g*****g
发帖数: 34805
30
Dynamic proxy is not a common practice, Java made it into system properties
maybe for performance.
z***h
发帖数: 405
31
this proxy setting is for Axis only, it won't affect any other applications
on the same JVM. System properties will affect all applications on the same
JVM and requires a restart of JVM.
sometimes you want different proxy to different URL, sometimes you want to
change the proxy, a restart of JVM is not acceptable for most of cases.
JDK 1.5 or later has a Proxy class, you can use it in URLConnection.
openConnection(Proxy) method. It's dynamically le.

properties
g*****g
发帖数: 34805
32
Let me get my question straight, I read a tip below today.
http://www.ibm.com/developerworks/webservices/library/ws-tip-coding.html
It suggested using array to wrap any collection I'd have in Java, which's
fine. But the article was 4 years old, any improvement between then and now?
t*******e
发帖数: 684
33
来自主题: Java版 - 讨论一下web framework吧
最近用了一下Spring Faces in Spring Web Flow 2. 感觉很接近JBoss SEAM。不同的
是action method的binding从HTML中移到flow.xml文件里。Page source中的JSF
action对应于flow中的event,而event handling在flow.xml文件里面直接call
service layer spring beans. JSF backing bean不再需要了。类似SEAM中JSF action
直接bind EJB methods. 好处是省了很多web code. Flow.xml中的XML programming直
接明了,比Spring Web Flow 1有很大的改进。flow.xml文件本身也可以visualize成
BPM diagram. 总的印象是web tier几乎不用写Java code了.
另外,现在的Java programming好像很少离得开XML的,configurations不是XML就是
properties文件, WebServices就是围绕着WDSL,XSD
b******y
发帖数: 9224
34
来自主题: Java版 - 使用java的大型站点
随着java技术的进步,越来越多的站点开始使用java作为主要的语言和平台。以下是一
些使用java的大型站点。
indeed.com
工作搜索引擎,在德州。以lucene, java为主
become.com
大型的比较购物搜索站点。由韩国人建立。他们的crawler介绍如下文章:
http://java.sun.com/developer/technicalArticles/WebServices/become/
nextag.com
大型的比较购物搜索站点。在shopping comparison engine方面是主要的player
shopzilla.com
大型比较购物搜索站点。在加州LA
LinkedIn.com
大型的工作社交站点。
amazon.com
他们的平台逐步从c/c++/perl向java移植
expedia.com
大型网上订购机票站点。他们的supply chain系统正在从c/c++向java移植
可见,java已经进入了high performance server端,不再是c/c++的天下了。。。
连google现在也在用java
g*****g
发帖数: 34805
35
来自主题: Java版 - JAXB
俺用CXF做webservice, 对这些细节是不关心的。
如果service你管不了,或者不是java的,axis之类
的也可以通过wsdl产生stub吧。

unmarshal。
k***r
发帖数: 4260
36
I'm not familiar with map service but I suppose it's better to use their
webservice rather than parsing the page. They may change the page anytime
they want and that will break your site.
l*****b
发帖数: 82
37
Background: I have one Java webservice instance, including two app servers
and one DB server running with MS SQL server 2005. I have a project to build
a new instance for other region customer.
The extra requirements are: 1. consolidate report data in one DB (a new
report DB). 2. each service instance holds transaction data in its own DB. 3
. All DB data must be synchronized at run time.
It will be great appreciated if you could advise me your ideas. Thank you in
advance.
g*****g
发帖数: 34805
38
来自主题: Java版 - 弱人来提个问题
Axis2, CXF, and in EJB3, this attribute is a JSR, so every container should
support it.
@WebService
For me, Web Service is like a remoting call, should be transparent for
developer.
k***r
发帖数: 4260
39
来自主题: Java版 - 弱人来提个问题
有没有看过GlassFish Metro的?有个朋友用过,据说写webservices最方便
http://blog.pulleman.com/2007/09/06/apache-cxf-and-glassfish-metro-for-consuming-web-services/

should
B*****g
发帖数: 34098
40
来自主题: Java版 - Timeout issue
don't know how goodbug generated webservice, if retrieve data from DB, it is
better to do DB tuning first.
p***p
发帖数: 559
41
来自主题: Java版 - 什么是JAX WS
以前写WS都是AXIS上手就做,然后再检查SOAP信息。但是现在做一个项目,对方要求在
文档里面写出什么是JAX WS,哪些优点等等,一下子就有点晕菜了。我一直以为AXIS直
接到SOAP啊,顶多内置了一下XML的Parser之类的,查查结果还要RPC和MSG模式
哪位能深入浅出生动地说说到底是怎么回事情?
http://www.ibm.com/developerworks/cn/webservices/ws-tip-jaxwsrpc.html
http://baike.baidu.com/view/1865210.htm
p***p
发帖数: 559
42
来自主题: Java版 - 什么是JAX WS
谢谢两位,我更迷糊了
以前只用过AXIS1,我以为web service就是基于SOAP的,所有的都应该兼容,就像HTTP
一样,不管是IE FF Tomcat jetty等等,都可以互操作。
我可以说JAX RPC和JAX WS是Java Webservice的API,那么AXIS和JbossWS是他们的实现
吧。另外两者的XML又有什么区别呢?
看来RPC和WS之间就不兼容,另外Contract-first (XML document-centric) approach,
and RPC (object-centric) approach.似乎WS都是用WSDL开始的啊?
彻底糊涂了
这次对方规定要用JbossWS,请问应该是支持JAXWS吧,那么和AXIS兼容么
g*****g
发帖数: 34805
43
I don't know about your requirement. But simple socket writing
will work. Just open a socket and writeObject. You can consider
https webservice if you need encryption.
b**********g
发帖数: 806
44
我现在有一个servlet比如叫ProcessRqstServlet,怎么能build SOAP webservices on
top of servlet呢?有没有什么工具,可以generate .wsdl 跟 mapping file.多谢
k***r
发帖数: 4260
45
来自主题: Java版 - what is best for Java Desktop GUI
怎么talk呢,webservice很慢的
g*****g
发帖数: 34805
46
来自主题: Java版 - what is best for Java Desktop GUI
webservice is not necesarily slow. And if it's really slow
for you, consider restful service.
k***r
发帖数: 4260
47
来自主题: Java版 - what is best for Java Desktop GUI
At work we provide both RMI and web service. Web service
takes overall 10x-20x time as RMI. I'm not sure if all is
because of webservice but I suspect it's one of the major
contributors.
F****n
发帖数: 3271
48
来自主题: Java版 - what is best for Java Desktop GUI
If you have a lot of objects to send then WebService will definitely be much
slower
k***r
发帖数: 4260
49
来自主题: Java版 - 怎么synchronize时间捏
找到一个webservice,奇怪的是getUTCTime只返回时间没有日期
http://www.nanonull.com/TimeService/TimeService.asmx
c*c
发帖数: 447
50
>> java.io.EOFException: SSL peer shut down incorrectly
this sounds like SSL handshake problem。you may need to import HTTPS cert to
the keystore on client side..
You can easily generate webservice client from WSDL with netbeans..
it seems WS-Security is involved, you'll need some kind of framework to put
WS-Sececurity token in to WS header. You can do it in your code, but it'll
be nasty...
首页 上页 1 2 3 4 5 6 7 下页 末页 (共7页)