This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 这里牛人多.请教一个问题,在IBM WSAD 5.1.2 中开发的Web Service,如何才能deploy到WebLogic server ? Is it possible to develop a web service without server engine dependency ?谁有BEA WebLogic IDE 可以借我测一下. 多谢.
-catwoman(catwoman);
2006-9-25
(#3228891@0)
-
开发跟deploy本来就应分开. ant 加shell script, 什么都可以搞定. (window 就更简单了, ant 就搞定了).
-justlistening(聆风);
2006-9-25
(#3228931@0)
-
理论上应该是这样的.我的问题是plain java code 用WSAD带的Web Serive Tool生成的Web Service, so the generated war file has the dependency of ibm's webservice.jar.What's the right way to develop the web service ? I am new to this. Thanks.
-catwoman(catwoman);
2006-9-25
{76}
(#3228980@0)
-
正确的方法就是, 当你做build 和 deploy时, 要抛弃使用IDE的想法.
-justlistening(聆风);
2006-9-26
{667}
(#3229287@0)
-
WebLogic IDE makes developing web service simpleThe work to write a web service is just like writing a java class.
For a HelloWorld.java, you just need to add "@WebService" at the class level, and "@WebMethod" on the sayHello() method, the HelloWorld.java will be deployed as a webservice on the server.
If you want to deploy your web service on a Tomcat, you could use Apache Beehive Project which is similar.
-j9988(Jim);
2006-9-26
{372}
(#3230326@0)
-
谢谢.但是这样生成的Web Serivce 可能无法在其它的server上运行.聆风说的对,依赖IDE, make easy development but less portability. I am thinking to use Apache Axis, more stuff to learn, sigh. I will test it out on Workshop for WebLogic 9.2 you recommended, thanks a lot !!!
-catwoman(catwoman);
2006-9-26
{197}
(#3230893@0)
-
You could download a FREE WebLogic IDE
-j9988(Jim);
2006-9-26
{180}
(#3230296@0)
-
Installed. Thanks. Feels the same as WSAD 6, but can not find the server view. I guess I have to using the Admin Console to deploy my web service code.
-catwoman(catwoman);
2006-9-26
(#3231101@0)
-
If you right click the web service->run on serverIt will start WebLogic Server, deploy the app onto the server.
What do you mean by server view? What do you want to see?
-j9988(Jim);
2006-9-27
{124}
(#3231293@0)
-
Thanks, Jim. I finally got it working on the free WebLogic IDE you recommended. Now I got two web services, one works on IBM Websphere, another works on BEA WebLogic. I have to spend some time to do what 聆风suggested.When I tried in BEA WebLogic, since my request java object has String[ ], it turned out to be ArrayOf_xsd_string in the generated WSDL, it looks weird but works find while testing under Web Service Explorer. But when I wrote a java test client, it throws org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element xxxx of bean com.xxx.ArrayOf_xsd_string. Looks like it can not deserialize the object which has another object. Any suggestion ?
-catwoman(catwoman);
2006-9-27
{455}
(#3233374@0)