From do-not-reply at jboss.com Mon Nov 2 05:12:12 2009 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 2 Nov 2009 05:12:12 -0500 (EST) Subject: [jbossws-users] =?utf-8?q?=5BJBoss_Web_Services_Users=5D_-_Re=3A_?= =?utf-8?b?Y3VzdG9tIGZhdWx0IG1hcHBpbmcgd2l0aCBqYXgtcnBjw4PCg8OCwoPDg8KC?= =?utf-8?b?w4LCg8ODwoPDgsKCw4PCgsOCwqLDg8KDw4LCg8ODwoLDgg==?= Message-ID: <3172496.1257156732997.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Sorry, we don't provide user forum support for JAX-RCP and AS 4.2.x anymore. Consider RH subscriptions for support of old/legacy systems or wait if some of our users won't respond your questions. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263438#4263438 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263438 From do-not-reply at jboss.com Mon Nov 2 05:13:09 2009 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 2 Nov 2009 05:13:09 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Server was unable to process request. ---> Object refere Message-ID: <32342548.1257156789512.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Are you able to reproduce your problem with JBossAS 5.1.0.GA and JBossWS-Native-3.2.0.GA? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263439#4263439 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263439 From do-not-reply at jboss.com Mon Nov 2 05:18:51 2009 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 2 Nov 2009 05:18:51 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: How to use jbossws-native Message-ID: <9037025.1257157131224.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> As you can see here, the latest JBossWS release that supports AS 4.2.x series is JBossWS Native 3.1.1.GA. Just download it and follow installation instructions that are part of the distribution ;) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263440#4263440 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263440 From do-not-reply at jboss.com Mon Nov 2 05:21:14 2009 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 2 Nov 2009 05:21:14 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: WSDL generated incorrectly? Message-ID: <30271553.1257157274090.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Did you specify @WebService(wsdlLocation) on your endpoint implementation to refer to an existing WSDL file? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263442#4263442 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263442 From do-not-reply at jboss.com Mon Nov 2 05:22:55 2009 From: do-not-reply at jboss.com (justinwyer) Date: Mon, 2 Nov 2009 05:22:55 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Why no forum for Resteasy Message-ID: <18878574.1257157375767.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Join us on the mailing list. https://lists.sourceforge.net/lists/listinfo/resteasy-developers Perhaps later the S/N ratio would be to great for Bill, for now its works very well I think, as a user of RE. BTW your understanding of it is correct, RE is great :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263444#4263444 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263444 From do-not-reply at jboss.com Mon Nov 2 06:19:28 2009 From: do-not-reply at jboss.com (gowri) Date: Mon, 2 Nov 2009 06:19:28 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - javax.xml.rpc.soap.SOAPFaultException: does not contain oper Message-ID: <10989508.1257160768231.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi, I am using JBOSS 5.1.0 GA as JBOSS App. server. I have created a simple webservice for getting string say "Hello". I could able to deploy the project as a war file and the generation of wsdl file is also fine. When I run the client, I am getting this exception in the server side. Pls. help me on this to find out where I am going wrong. "javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://com.apr/helloworld}HelloWorldWSPort does not contain operation meta data for: {http://apr.com/}sayHello" jboss-esb.xml | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HelloInterface.java | | package com.apr; | import javax.jws.WebParam; | import javax.jws.WebService; | @WebService | public interface HelloInterface { | | public String sayHello(@WebParam(name="message")String name); | } | The implementation class | package com.apr; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebService; | | @WebService(name = "HelloWorldWS", targetNamespace="http://com.apr/helloworld") | public class HelloWorldWS implements HelloInterface { | | @WebMethod | public String sayHello(@WebParam(name="message") String message) { | System.out.println("Hello World. Message=" + message); | return "Hello World - " + message; | | } | | | } | wsdl file | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | web.xml | | | | MyWS | | index.html | index.htm | index.jsp | default.html | default.htm | default.jsp | | | HelloWorldWS | com.apr.HelloWorldWS | | | | HelloWorldWS | /HelloWorldWS | | | | Client Code: | package com.apr; | | import org.apache.cxf.interceptor.LoggingInInterceptor; | import org.apache.cxf.interceptor.LoggingOutInterceptor; | import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; | | | | public class Client { | public static void main(String[] args) { | JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); | factory.getInInterceptors().add(new LoggingInInterceptor()); | factory.getOutInterceptors().add(new LoggingOutInterceptor()); | factory.setServiceClass(HelloInterface.class); | factory.setAddress("http://127.0.0.1:8080/MyWS/HelloWorldWS"); | HelloInterface client = (HelloInterface) factory.create(); | | String reply = client.sayHello("Krishna"); | System.out.println("Server said: " + reply); | | | | | } | } | | Exception from server log: | 2009-11-02 11:10:49,052 INFO [org.jboss.wsf.framework.management.DefaultEndpointRegistry] (HDScanner) register: jboss.ws:context=MyWS,endpoint=HelloWorldWS | 2009-11-02 11:10:49,161 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/MyWS | 2009-11-02 11:10:49,427 INFO [org.jboss.wsf.stack.jbws.WSDLFilePublisher] (HDScanner) WSDL published to: file:/D:/software/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/data/wsdl/MyWS.war/HelloWorldWSService8985776581610665970.wsdl | 2009-11-02 11:13:03,836 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] (http-127.0.0.1-8080-1) SOAP request exception | org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://com.apr/helloworld}HelloWorldWSPort does not contain operation meta data for: {http://apr.com/}sayHello | at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:476) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:178) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131) | at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) | at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) | at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Unknown Source) | | Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263454#4263454 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263454 From do-not-reply at jboss.com Mon Nov 2 17:06:13 2009 From: do-not-reply at jboss.com (bill.burke@jboss.com) Date: Mon, 2 Nov 2009 17:06:13 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Why no forum for Resteasy Message-ID: <17753970.1257199573020.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> "traviskds" wrote : Hi, | | Resteasy does not still have a forum of its own which is quite surprising since it has already released its first GA version. | | Is Redhat/JBoss looking at using another implemention of the JAX-RS spec instead of Resteasy or will Resteasy form the core of the Resful services stack of JBoss. (which was BTW my understanding) | | If so, why no forum and even the http://www.jboss.org/resteasy/ wiki is thin on information. | | Cheers | Travis | I hate forums. Use the mail list. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263584#4263584 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263584 From do-not-reply at jboss.com Mon Nov 2 17:07:06 2009 From: do-not-reply at jboss.com (bill.burke@jboss.com) Date: Mon, 2 Nov 2009 17:07:06 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Why no forum for Resteasy Message-ID: <4319437.1257199626582.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Also, we have over 100+ pages of documentation. I don't know what exactly you mean by thin... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263585#4263585 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263585 From do-not-reply at jboss.com Mon Nov 2 18:07:33 2009 From: do-not-reply at jboss.com (traviskds) Date: Mon, 2 Nov 2009 18:07:33 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Why no forum for Resteasy Message-ID: <3320160.1257203253662.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Thanks Justin and Bill. Will get on the mailing list. Its just that I have been using the JBoss forums and have done a lot of extensive searches before I post a question. I guess I can refer to the mail list archives before I post any question. Not sure if it provides any search functionality. Maybe I need to look a bit more. But may I suggest that you guys look at forums or at least presenting all the JBoss technology stack in a consistent fashion. I work for a very large telco and I am one of the JBoss champions within the organizations and one of the issues we face when we come up against guys promoting commercial products such as the Oracle stack is that open source is fragmented and difficult to get information. This is true when you compare different open source frameworks from different communities but if you decide to go with one stack (as I advocate I.E. use the JBoss stack), then we need to have all the information presented/searchable via a common format. Most of JBoss technology is in the forums but a few like SEAM have their own forum and then now RestEasy does not even use a forum and prefer mailing lists. I am not complaining as for me I will go where ever the information is available to get my job done so its not that much of an issue for me but when you look at the bigger picture, then can be an issue. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263591#4263591 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263591 From do-not-reply at jboss.com Mon Nov 2 18:13:23 2009 From: do-not-reply at jboss.com (traviskds) Date: Mon, 2 Nov 2009 18:13:23 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Why no forum for Resteasy Message-ID: <6796940.1257203603377.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> "bill.burke at jboss.com" wrote : Also, we have over 100+ pages of documentation. I don't know what exactly you mean by thin... Bill, my apologies regarding the thin on doco comment. I guess I did not phrase it properly. What I was trying to convey was that you don't get user posts/replies that relate to issues rather than documentation of RE per say. The docs on the framework itself is really great. Without any prior REST background, I was able to very quickly get it working with consumes and produces of xml, json,plain text and multipart . This is truly a very easy to use framework. And yes, RE rocks. I first did a standalone application and then did one with Seam. Yesterday we had a code hackathon at my company and I did an application using SEAM/RE and it just rocks and was able to impress my fellow non SEAM/RE colleagues. So thanks a lot to Bill and his team/contributors. I hope RE will go from strength to strength. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263592#4263592 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263592 From do-not-reply at jboss.com Mon Nov 2 19:03:12 2009 From: do-not-reply at jboss.com (Juergen.Zimmermann) Date: Mon, 2 Nov 2009 19:03:12 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Where is JBossWS Native 3.2.1 ? Message-ID: <2803537.1257206592247.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I cannot find it at http://www.jboss.org/jbossws/downloads/ However, in JIRA it looks like it is already completed. Any hint is appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263593#4263593 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263593 From do-not-reply at jboss.com Mon Nov 2 20:55:32 2009 From: do-not-reply at jboss.com (ehognestad@gmail.com) Date: Mon, 2 Nov 2009 20:55:32 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Jboss 4.0.0 web service client - Message-ID: <6470303.1257213332063.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I am developing a web service client to consume a web service that returns an Object not a String. When I make the webservice return a String it works perfectly, when I switch to a Object then it throws this exception: org.xml.sax.SAXException: Deserializing parameter 'result': could not find deserializer for type {http://ericsson.webservice.ems.com.br/EricssonMockingWebService/types}SendResponse at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:330) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1188) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244) at org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1407) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:263) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:397) at org.apache.axis.client.Call.invoke(Call.java:2652) at org.apache.axis.client.Call.invoke(Call.java:2524) at org.apache.axis.client.Call.invokeInternal(Call.java:1976) at org.apache.axis.client.Call.invoke(Call.java:1917) at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:175) at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:251) at $Proxy145.send(Unknown Source) at br.com.ouvi.ems.gw.ericssonipx.ejb.EricssonIPXWebServiceHelperEJB.sendSms(EricssonIPXWebServiceHelperEJB.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.invocation.Invocation.performCall(Invocation.java:345) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113) at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) at org.jboss.ejb.Container.invoke(Container.java:854) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:413) at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:82) at $Proxy143.sendSms(Unknown Source) My client looks like this. public SendResponse sendSms(String smsMessage) throws WebserviceException { SendResponse sendSmsResponse; sendSmsResponse = null; try { System.out.println("Contacting webservice at http://localhost:8080/ws4ee/services/EricssonMockingWebService?wsdl"); URL url = new URL("http://localhost:8080/ws4ee/services/EricssonMockingWebService?wsdl"); QName qname = new QName("http://ericsson.webservice.ems.com.br", "EricssonMockingWebService"); ServiceFactory factory = ServiceFactory.newInstance(); Service service = factory.createService(url, qname); EricssonMockingWebServiceEndpoint endpoint = (EricssonMockingWebServiceEndpoint) service.getPort(EricssonMockingWebServiceEndpoint.class); System.out.println("output:" + endpoint.send("blablabalblabl")); } catch (Exception ex) { logger.error("Exception doing sms request for IPX: " + ex.getMessage(), ex); throw new WebserviceException(ex.getMessage(), ex); } return sendSmsResponse; } The exception is thrown from the line: System.out.println("output:" + endpoint.send("blablabalblabl")); I am guessing I am missing a deserializer class that is produced by the wstools, but I haven't been able to find out which yet. Anybody experienced the same problem? Best regards, Eivind View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263600#4263600 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263600 From do-not-reply at jboss.com Tue Nov 3 02:30:13 2009 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 3 Nov 2009 02:30:13 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Where is JBossWS Native 3.2.1 ? Message-ID: <17696082.1257233413867.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Wait few hours, please. We're migrating to new web site and we have some configuration issues ATM :( View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263609#4263609 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263609 From do-not-reply at jboss.com Tue Nov 3 04:59:14 2009 From: do-not-reply at jboss.com (roopas) Date: Tue, 3 Nov 2009 04:59:14 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: IllegalStateException Cannot find property Message-ID: <4224371.1257242354227.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I am facing the similar issue. Please let me know if you have the solution.Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263637#4263637 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263637 From do-not-reply at jboss.com Wed Nov 4 03:18:13 2009 From: do-not-reply at jboss.com (KickMeToAndy) Date: Wed, 4 Nov 2009 03:18:13 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - wsdl generation for ejb3 webservice creates wsdl with import Message-ID: <18557141.1257322693397.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi, is it possible to tell jboss to generate the wsdl for an ejb3 webservice without any imports ? for following wsdl is generated for our webservice. the main problem is that the imported file contains another import. to generated the client we have to download the 3 files manually and fix the imports (to use the local files), because in the deployment environment we cannot access the running webserivce. so is there a way to tell jboss to generate just one wsdl file that contains all the information (thus not uses any import tags) ? we are using jboss-4.2.3.GA with the metro stack 3.1.1.GA | | | Dear JBoss developers, I spent several days to solve the problem of polymorphism in JBoss WebService, but failed. I googled many articles, Only "http://forums.sun.com/thread.jspa?threadID=5225941" is usefull to me. But it just does NOT work!! Please help me. Great Thanks to any tips. My envirionment: jboss-5.1.0.GA-jdk6. jdk1.6.0_14_Windows Eclipse 3.2 My code: Server: -------------------------------------------------------------------------------------------------------------------- package com.ybxiang.ejbws; import javax.xml.bind.annotation.XmlSeeAlso; @XmlSeeAlso({Human.class}) public class Animal implements java.io.Serializable{ private String name; private Long age; public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getAge() { return age; } public void setAge(Long age) { this.age = age; } public String toString(){ return "Animal-->name:"+this.getName()+",age:"+this.getAge(); } } ------------------------ package com.ybxiang.ejbws; public class Human extends Animal implements java.io.Serializable{ private String email; public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } public String toString(){ return "Human-->name:"+this.getName()+",age:"+this.getAge()+","+"email:"+email; } } ------------------------ package com.ybxiang.ejbws; import java.util.ArrayList; import java.util.Iterator; import javax.jws.WebMethod; public interface EJBWebServiceInterface { public void passParameter1(String s); public void passParameter2(Animal a); public void passParameter3(Human h); public void passParameter4(ArrayList lst); public ArrayList returnSomething1(int type); } ------------------------ package com.ybxiang.ejbws; import java.util.ArrayList; import java.util.Iterator; import javax.ejb.Stateless; import javax.jws.WebMethod; import javax.jws.WebService; import javax.xml.bind.annotation.XmlSeeAlso; import javax.jws.soap.SOAPBinding; @Stateless @WebService //@**XmlSeeAlso({Animal.class, Human.class}) public class EJBWebServiceBean implements EJBWebServiceInterface{ @WebMethod public void passParameter1(String s){ System.out.println("------------String is got:"+s); } @WebMethod public void passParameter2(Animal a){ System.out.println("------------Animal is got:"+a); if(a instanceof Human){ System.out.println("************* It's realy human!!! *************"); } } @WebMethod public void passParameter3(Human h){ System.out.println("------------Human is got, name:"+h.getName()+", email:"+h.getEmail()); } @WebMethod public void passParameter4(ArrayList lst){ System.out.println("------------ArrayList is got:"); if(lst!=null){ Iterator it = lst.iterator(); Animal a = it.next(); if(a instanceof Human){ System.out.println("One human is got:"+((Human)a)); }else{ System.out.println("One Animal is got:"+a); } }else{ System.out.println("------------List is null."); } } @WebMethod public ArrayList returnSomething1(int type){ if(type==1){ ArrayList aa = new ArrayList(); { Animal animal1 = new Animal(); animal1.setName("Animal.1"); animal1.setAge(new Long(1)); aa.add(animal1); } { Animal animal2 = new Animal(); animal2.setName("Animal.2"); animal2.setAge(new Long(2)); aa.add(animal2); } return aa; }else{ ArrayList bb = new ArrayList(); { Human human1 = new Human(); human1.setName("Human.1"); human1.setAge(new Long(1)); bb.add(human1); } { Human human2 = new Human(); human2.setName("Human.2"); human2.setAge(new Long(2)); bb.add(human2); } return bb; } } } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263889#4263889 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263889 From do-not-reply at jboss.com Wed Nov 4 05:00:33 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:00:33 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <23905027.1257328833488.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I compiled those code and run in eclipse: run as --> run on server[jboss 5.1] Now, i can see that the web service is deployed successfully and i can visit http://127.0.0.1:8080/PolymorphismEJBWebService/EJBWebServiceBean?wsdl I got the wsdl: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263891#4263891 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263891 From do-not-reply at jboss.com Wed Nov 4 05:06:58 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:06:58 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <4627705.1257329218324.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> The client code: Create a new java project WSClient. Animal.java and Human.java are copied from server part. package com.ybxiang.ejbws; import javax.xml.bind.annotation.XmlSeeAlso; @XmlSeeAlso({Human.class}) public class Animal implements java.io.Serializable{ private String name; private Long age; public String getName() { return name; } public void setName(String name) { this.name = name; } public Long getAge() { return age; } public void setAge(Long age) { this.age = age; } public String toString(){ return "Animal-->name:"+this.getName()+",age:"+this.getAge(); } } ----------------------------------- package com.ybxiang.ejbws; public class Human extends Animal implements java.io.Serializable{ private String email; public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } public String toString(){ return "Human-->name:"+this.getName()+",age:"+this.getAge()+","+"email:"+email; } } ----------------------------------- /** * EJBWebServiceBean.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.ybxiang.ejbws; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public interface EJBWebServiceBean extends java.rmi.Remote { @WebMethod public void passParameter1(java.lang.String arg0) throws java.rmi.RemoteException; @WebMethod public void passParameter2(com.ybxiang.ejbws.Animal arg0) throws java.rmi.RemoteException; @WebMethod public void passParameter3(com.ybxiang.ejbws.Human arg0) throws java.rmi.RemoteException; @WebMethod public void passParameter4(com.ybxiang.ejbws.Animal[] arg0) throws java.rmi.RemoteException; @WebMethod public com.ybxiang.ejbws.Animal[] returnSomething1(int arg0) throws java.rmi.RemoteException; } ================test=============== package com.ybxiang.ejbws; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.ws.Service; public class TestMain { public static void main(String []args){ try { URL location = new URL("http://127.0.0.1:8080/PolymorphismEJBWebService/EJBWebServiceBean?wsdl"); QName serviceName = new QName("http://ejbws.ybxiang.com/","EJBWebServiceBeanService"); Service service = Service.create(location, serviceName); //service.setHandlerResolver(new EmsHandlerResolver()); QName port = new QName("http://ejbws.ybxiang.com/","EJBWebServiceBeanPort"); EJBWebServiceBean ejbWebServiceBean = service.getPort(port, EJBWebServiceBean.class); Animal a1 = new Animal(); a1.setName("Animal.1"); a1.setAge(new Long(1)); // Animal a2 = new Animal(); a2.setName("Animal.2"); a2.setAge(new Long(2)); // Human h = new Human(); h.setName("Human.1"); h.setAge(new Long(1)); h.setEmail("human1 at gmail.com"); System.out.println("===================testing==========================="); System.out.println("test:ejbWebServiceBean.passParameter1(\"Test string\");"); ejbWebServiceBean.passParameter1("Test string"); System.out.println("test:ejbWebServiceBean.passParameter2(a1);"); ejbWebServiceBean.passParameter2(a1); System.out.println("test:ejbWebServiceBean.passParameter2(h);"); ejbWebServiceBean.passParameter2(h); System.out.println("test:ejbWebServiceBean.passParameter3(h);"); ejbWebServiceBean.passParameter3(h); // Animal aa[] = new Animal[]{a1,a2}; System.out.println("test:ejbWebServiceBean.passParameter4(aa);"); ejbWebServiceBean.passParameter4(aa); // Human hh[] = new Human[]{h}; System.out.println("test:ejbWebServiceBean.passParameter4(hh);"); ejbWebServiceBean.passParameter4(hh); // System.out.println("---------------[animal]------------------"); Animal[] returnedValue1 = ejbWebServiceBean.returnSomething1(1); System.out.println("------------returnedValue1:"); for(Animal item:returnedValue1){ System.out.println(" *** item:"+item); } System.out.println("---------------[human]------------------"); Animal[] returnedValue2 = ejbWebServiceBean.returnSomething1(2); System.out.println("------------returnedValue2:"); for(Animal item:returnedValue2){ System.out.println(" *** item:"+item); } } catch (Exception e) { e.printStackTrace(); } } } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263893#4263893 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263893 From do-not-reply at jboss.com Wed Nov 4 05:08:27 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:08:27 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <23702545.1257329307087.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Printed result: Server: 18:05:26,120 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,120 INFO [STDOUT] ------------String is got:Test string 18:05:26,120 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,136 INFO [STDOUT] ------------Animal is got:Animal-->name:Animal.1,age:1 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,136 INFO [STDOUT] ------------Animal is got:Animal-->name:Human.1,age:1 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,151 INFO [STDOUT] ------------Human is got, name:Human.1, email:human1 at gmail.com 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,151 INFO [STDOUT] ------------ArrayList is got: 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Animal.1,age:1 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected 18:05:26,151 INFO [STDOUT] ------------ArrayList is got: 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Human.1,age:1 Client: INFO: Dynamically creating request wrapper Class com.ybxiang.ejbws.jaxws.ReturnSomething1 Nov 4, 2009 6:05:25 PM com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass INFO: Dynamically creating response wrapper bean Class com.ybxiang.ejbws.jaxws.ReturnSomething1Response ===================testing=========================== test:ejbWebServiceBean.passParameter1("Test string"); test:ejbWebServiceBean.passParameter2(a1); test:ejbWebServiceBean.passParameter2(h); test:ejbWebServiceBean.passParameter3(h); test:ejbWebServiceBean.passParameter4(aa); test:ejbWebServiceBean.passParameter4(hh); ---------------[animal]------------------ ------------returnedValue1: *** item:Animal-->name:Animal.1,age:1 *** item:Animal-->name:Animal.2,age:2 ---------------[human]------------------ ------------returnedValue2: *** item:Animal-->name:Human.1,age:1 *** item:Animal-->name:Human.2,age:2 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263894#4263894 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263894 From do-not-reply at jboss.com Wed Nov 4 05:10:06 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:10:06 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <29575709.1257329406500.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Obviously, the result is NOT what i want!!! Please help me!!! I am really painfull now. Thank you in advance!!! Please!!! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263895#4263895 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263895 From do-not-reply at jboss.com Wed Nov 4 05:11:49 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:11:49 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <17566222.1257329509908.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> =====================sorry, i will rearrange the code by ============ | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263897#4263897 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263897 From do-not-reply at jboss.com Wed Nov 4 05:12:20 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:12:20 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <19153015.1257329540591.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> package com.ybxiang.ejbws; | | import javax.xml.bind.annotation.XmlSeeAlso; | | @XmlSeeAlso({Human.class}) | public class Animal implements java.io.Serializable{ | private String name; | private Long age; | public String getName() { | return name; | } | public void setName(String name) { | this.name = name; | } | | public Long getAge() { | return age; | } | public void setAge(Long age) { | this.age = age; | } | | public String toString(){ | return "Animal-->name:"+this.getName()+",age:"+this.getAge(); | } | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263898#4263898 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263898 From do-not-reply at jboss.com Wed Nov 4 05:12:39 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:12:39 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <8764618.1257329559679.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> package com.ybxiang.ejbws; | | public class Human extends Animal implements java.io.Serializable{ | private String email; | | public void setEmail(String email) { | this.email = email; | } | | public String getEmail() { | return email; | } | | public String toString(){ | return "Human-->name:"+this.getName()+",age:"+this.getAge()+","+"email:"+email; | } | | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263899#4263899 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263899 From do-not-reply at jboss.com Wed Nov 4 05:13:24 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:13:24 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <31349292.1257329604267.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> package com.ybxiang.ejbws; | | import java.util.ArrayList; | import java.util.Iterator; | | import javax.jws.WebMethod; | | public interface EJBWebServiceInterface { | public void passParameter1(String s); | public void passParameter2(Animal a); | public void passParameter3(Human h); | public void passParameter4(ArrayList lst); | public ArrayList returnSomething1(int type); | } | | | | | | package com.ybxiang.ejbws; | | import java.util.ArrayList; | import java.util.Iterator; | | import javax.ejb.Stateless; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.xml.bind.annotation.XmlSeeAlso; | | import javax.jws.soap.SOAPBinding; | | @Stateless | @WebService | //@**XmlSeeAlso({Animal.class, Human.class})// Here i tried too! | public class EJBWebServiceBean implements EJBWebServiceInterface{ | @WebMethod | public void passParameter1(String s){ | System.out.println("------------String is got:"+s); | } | @WebMethod | public void passParameter2(Animal a){ | System.out.println("------------Animal is got:"+a); | if(a instanceof Human){ | System.out.println("************* It's realy human!!! *************"); | } | } | @WebMethod | public void passParameter3(Human h){ | System.out.println("------------Human is got, name:"+h.getName()+", email:"+h.getEmail()); | } | | @WebMethod | public void passParameter4(ArrayList lst){ | System.out.println("------------ArrayList is got:"); | if(lst!=null){ | Iterator it = lst.iterator(); | Animal a = it.next(); | if(a instanceof Human){ | System.out.println("One human is got:"+((Human)a)); | }else{ | System.out.println("One Animal is got:"+a); | } | }else{ | System.out.println("------------List is null."); | } | } | | @WebMethod | public ArrayList returnSomething1(int type){ | if(type==1){ | ArrayList aa = new ArrayList(); | { | Animal animal1 = new Animal(); | animal1.setName("Animal.1"); | animal1.setAge(new Long(1)); | aa.add(animal1); | } | { | Animal animal2 = new Animal(); | animal2.setName("Animal.2"); | animal2.setAge(new Long(2)); | aa.add(animal2); | } | return aa; | }else{ | ArrayList bb = new ArrayList(); | { | Human human1 = new Human(); | human1.setName("Human.1"); | human1.setAge(new Long(1)); | bb.add(human1); | } | { | Human human2 = new Human(); | human2.setName("Human.2"); | human2.setAge(new Long(2)); | bb.add(human2); | } | return bb; | } | } | | | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263901#4263901 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263901 From do-not-reply at jboss.com Wed Nov 4 05:14:40 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:14:40 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <19967116.1257329680326.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> ============below codes are for Client test ============ ============below codes are for Client test ============ ============below codes are for Client test ============ | /** | * EJBWebServiceBean.java | * | * This file was auto-generated from WSDL | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | */ | | package com.ybxiang.ejbws; | | import javax.jws.WebMethod; | import javax.jws.WebService; | | | @WebService | public interface EJBWebServiceBean extends java.rmi.Remote { | @WebMethod | public void passParameter1(java.lang.String arg0) throws java.rmi.RemoteException; | | @WebMethod | public void passParameter2(com.ybxiang.ejbws.Animal arg0) throws java.rmi.RemoteException; | @WebMethod | public void passParameter3(com.ybxiang.ejbws.Human arg0) throws java.rmi.RemoteException; | @WebMethod | public void passParameter4(com.ybxiang.ejbws.Animal[] arg0) throws java.rmi.RemoteException; | @WebMethod | public com.ybxiang.ejbws.Animal[] returnSomething1(int arg0) throws java.rmi.RemoteException; | } | | | | | | | package com.ybxiang.ejbws; | | import java.net.URL; | | import javax.xml.namespace.QName; | import javax.xml.ws.Service; | | | | public class TestMain { | public static void main(String []args){ | try { | URL location = new URL("http://127.0.0.1:8080/PolymorphismEJBWebService/EJBWebServiceBean?wsdl"); | QName serviceName = new QName("http://ejbws.ybxiang.com/","EJBWebServiceBeanService"); | | Service service = Service.create(location, serviceName); | //service.setHandlerResolver(new EmsHandlerResolver()); | | QName port = new QName("http://ejbws.ybxiang.com/","EJBWebServiceBeanPort"); | EJBWebServiceBean ejbWebServiceBean = service.getPort(port, EJBWebServiceBean.class); | | Animal a1 = new Animal(); | a1.setName("Animal.1"); | a1.setAge(new Long(1)); | // | Animal a2 = new Animal(); | a2.setName("Animal.2"); | a2.setAge(new Long(2)); | // | Human h = new Human(); | h.setName("Human.1"); | h.setAge(new Long(1)); | h.setEmail("human1 at gmail.com"); | System.out.println("===================testing==========================="); | System.out.println("test:ejbWebServiceBean.passParameter1(\"Test string\");"); | ejbWebServiceBean.passParameter1("Test string"); | | System.out.println("test:ejbWebServiceBean.passParameter2(a1);"); | ejbWebServiceBean.passParameter2(a1); | | System.out.println("test:ejbWebServiceBean.passParameter2(h);"); | ejbWebServiceBean.passParameter2(h); | | System.out.println("test:ejbWebServiceBean.passParameter3(h);"); | ejbWebServiceBean.passParameter3(h); | // | Animal aa[] = new Animal[]{a1,a2}; | System.out.println("test:ejbWebServiceBean.passParameter4(aa);"); | ejbWebServiceBean.passParameter4(aa); | // | Human hh[] = new Human[]{h}; | System.out.println("test:ejbWebServiceBean.passParameter4(hh);"); | ejbWebServiceBean.passParameter4(hh); | // | System.out.println("---------------[animal]------------------"); | Animal[] returnedValue1 = ejbWebServiceBean.returnSomething1(1); | System.out.println("------------returnedValue1:"); | for(Animal item:returnedValue1){ | System.out.println(" *** item:"+item); | } | | System.out.println("---------------[human]------------------"); | Animal[] returnedValue2 = ejbWebServiceBean.returnSomething1(2); | System.out.println("------------returnedValue2:"); | for(Animal item:returnedValue2){ | System.out.println(" *** item:"+item); | } | | | } catch (Exception e) { | e.printStackTrace(); | } | } | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263902#4263902 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263902 From do-not-reply at jboss.com Wed Nov 4 05:16:33 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:16:33 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <1106743.1257329793471.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> ============== result from JBoss AS============== | 18:05:01,199 DEBUG [ManagerBase] Start expire sessions StandardManager at 1257329101199 sessioncount 0 | 18:05:01,199 DEBUG [ManagerBase] End expire sessions StandardManager processingTime 0 expired sessions: 0 | 18:05:07,230 FINE [tcp] RMI Scheduler(0): close connection | 18:05:07,230 FINE [tcp] RMI TCP Connection(9)-127.0.0.1: (port 1558) connection closed | 18:05:07,230 FINE [tcp] RMI TCP Connection(9)-127.0.0.1: close connection | 18:05:26,120 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,120 INFO [STDOUT] ------------String is got:Test string | 18:05:26,120 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,136 INFO [STDOUT] ------------Animal is got:Animal-->name:Animal.1,age:1 | 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,136 INFO [STDOUT] ------------Animal is got:Animal-->name:Human.1,age:1 | 18:05:26,136 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,151 INFO [STDOUT] ------------Human is got, name:Human.1, email:human1 at gmail.com | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,151 INFO [STDOUT] ------------ArrayList is got: | 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Animal.1,age:1 | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,151 INFO [STDOUT] ------------ArrayList is got: | 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Human.1,age:1 | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 18:05:26,167 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from stateless bean context, it should already have been injected | 1 | ============== result from client ============== | Nov 4, 2009 6:05:25 PM com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass | INFO: Dynamically creating response wrapper bean Class com.ybxiang.ejbws.jaxws.ReturnSomething1Response | ===================testing=========================== | test:ejbWebServiceBean.passParameter1("Test string"); | test:ejbWebServiceBean.passParameter2(a1); | test:ejbWebServiceBean.passParameter2(h); | test:ejbWebServiceBean.passParameter3(h); | test:ejbWebServiceBean.passParameter4(aa); | test:ejbWebServiceBean.passParameter4(hh); | ---------------[animal]------------------ | ------------returnedValue1: | *** item:Animal-->name:Animal.1,age:1 | *** item:Animal-->name:Animal.2,age:2 | ---------------[human]------------------ | ------------returnedValue2: | *** item:Animal-->name:Human.1,age:1 | *** item:Animal-->name:Human.2,age:2 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263903#4263903 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263903 From do-not-reply at jboss.com Wed Nov 4 05:23:15 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Wed, 4 Nov 2009 05:23:15 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <11794630.1257330195278.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> 18:05:26,151 INFO [STDOUT] ------------ArrayList is got: | 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Animal.1,age:1 | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from | stateless bean context, it should already have been injected | 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from | stateless bean context, it should already have been injected | 18:05:26,151 INFO [STDOUT] ------------ArrayList is got: | 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Human.1,age:1 | ~~~~~~~~~~~I had expected here print | [18:05:26,151 INFO [STDOUT] One Human is got:Animal-->name:Human.1,age:1] | | | | ------------returnedValue2: | *** item:Animal-->name:Human.1,age:1 | *** item:Animal-->name:Human.2,age:2 | ~~~~~~~~Here i had expected print something like: | *** item:Human-->name:Human.1,age:1, email:xxxx | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263904#4263904 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263904 From do-not-reply at jboss.com Wed Nov 4 09:30:50 2009 From: do-not-reply at jboss.com (ybxiang.china) Date: Wed, 4 Nov 2009 09:30:50 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <13892821.1257345050476.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Nobody know how to do??? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263954#4263954 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263954 From do-not-reply at jboss.com Thu Nov 5 02:27:55 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Thu, 5 Nov 2009 02:27:55 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <10123405.1257406075158.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Dear JBoss developers, please give me an simple example about polymorphism webservice. Thanks!!! I DO need it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264046#4264046 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264046 From do-not-reply at jboss.com Fri Nov 6 16:17:08 2009 From: do-not-reply at jboss.com (oechevarria) Date: Fri, 6 Nov 2009 16:17:08 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Question about SOAPMessage Message-ID: <24862836.1257542228988.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi all, I installed and ran the test suite for jbossws-native-3.2.0.GA. Everything worked OK. Then using Eclipse I ran and debugged the tests in the org.jboss.test.ws.jaxws.samples.provider package. Everything OK again. Then I modified ProviderBeanMessage.java to look like this (just the modified part): public SOAPMessage invoke(SOAPMessage request) { SOAPPart soapPart = request.getSOAPPart(); try { SOAPEnvelope envelope =soapPart.getEnvelope(); SOAPBody body = envelope.getBody(); SOAPHeader header = envelope.getHeader(); Source source = soapPart.getContent(); } catch (SOAPException e) { // TODO Auto-generated catch block e.printStackTrace(); } return request; } I also modified ProviderMessageTestCase.java to enhance the test String to look like this private String msgString = "" + " " + " " + "" + "" + "" + "?" + "?" + "" + "" + "" + " " + ""; I rebuilt and ran everything again and when I looked at the contents of the incoming request in the Bean I noticed that element ns1:addImport and its children are not visible or present in the message structure. So the line Source source = soapPart.getContent(); returns an invalid object. If I inspect the response back in testProviderDispatch() and testProviderMessage() (in ProviderMessageTestCase.java) the entire message is there. So the question is: why is that when the message arrives on the server side it is missing a portion of its contents? Any thoughts or comments are greatly appreciated Regards, Octavio View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264389#4264389 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264389 From rubavathi.srinivasan at mobax.com Mon Nov 9 02:23:32 2009 From: rubavathi.srinivasan at mobax.com (Rubavathi) Date: Mon, 09 Nov 2009 12:53:32 +0530 Subject: [jbossws-users] javax.xml.ws.WebServiceException: Message-ID: <4AF7C374.5090507@mobax.com> Hi, I am facing the following issue while invoking a web service method, Exception in thread "main" javax.xml.ws.WebServiceException: java.lang.IllegalStateException: Cannot find property: javax.xml.ws.handler.message.outbound | at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:410) Please give me a solution to solve this problem Regards, Rubavathi From do-not-reply at jboss.com Mon Nov 9 14:24:18 2009 From: do-not-reply at jboss.com (jasonstratton) Date: Mon, 9 Nov 2009 14:24:18 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - JBossWS Client vs. SoapUI Message-ID: <22582333.1257794658719.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> One of our teams has a service that has been deployed and I can successfully test it with SoapUI. This is a service that was originally on a Matamatrix server and is now deployed on JBoss. Both the new JBoss service and the legacy Metamatrix services are available and can be tested successfully with SoapUI. The WSDL have not changed, just the endpoint location. Another team has written a client of the original Metamatrix service, which works fine. They changed the endpoint to point to the new service on JBoss and they get a "Server Error". I have hopped in to try to resolve the issue. Used wsconsume to generate the client stubs and a small command line app to drive things. I generated it using the WSDL of the service deployed on JBoss and I get the same "Server Error". I just change the BindingProvider.ENDPOINT_ADDRESS_PROPERTY to point t the legacy Metamatrix service and it works fine. So I believe my code should work with either service. I have checked the log on the server when the error occurs and I find the error message: "SAAJ0511: Unable to create envelope from given source" Next I used TCPTrace to capture the successful request from SoapUI and the unsuccessful request from my code and I found the following: Successful Request from SoapUI: POST /idataservice-rs-pa/ia HTTP/1.0 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "IAList_WebService.IAList.getIAList" User-Agent: Jakarta Commons-HttpClient/3.1 Content-Length: 340 Authorization: Basic czYwOTE1NzpKYVo3VnU5dQ== Host: localhost:8080 174991806 1749918060205 Unsuccessful Request: POST /idataservice-rs-pa/ia HTTP/1.1 Authorization: Basic czYwOTE1NzpKYVo3VnU5dQ== SOAPAction: "IAList_WebService.IAList.getIAList" Content-Type: text/xml; charset=UTF-8 JBoss-Remoting-Version: 22 User-Agent: JBossRemoting - 2.2.3 Host: localhost:8080 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Transfer-Encoding: chunked 123 1749918061749918060205 0 Please note the text/numbers before and after the tags. I'm guessing that these are causing the "SAAJ0511: Unable to create envelope from given source" error. I'm not sure where this text/numbers are coming from. Can anyone please give me a clue? Thank you very much Jason View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264671#4264671 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264671 From do-not-reply at jboss.com Tue Nov 10 10:38:34 2009 From: do-not-reply at jboss.com (jasonstratton) Date: Tue, 10 Nov 2009 10:38:34 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - HTTP 1.0 Config Message-ID: <25049170.1257867514054.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hello All, I'm trying to create a JBossWS client that uses the HTTP 1.0 protocol in order to prevent chunking, but I cannot seem to set the configuration. I've tried several variations of the following: URL securityURL = new File("C:/app_projects_jboss/temp/MM/standard-jaxws-client-config.xml").toURL(); | ((StubExt)ial).setSecurityConfig(securityURL.toExternalForm()); | ((StubExt)ial).setConfigName("HTTP 1.0 Client"); | All without success. I imagine I'm missing something simple. Can anyone illuminate me? Thank you Jason View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264862#4264862 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264862 From do-not-reply at jboss.com Tue Nov 10 12:11:01 2009 From: do-not-reply at jboss.com (jasonstratton) Date: Tue, 10 Nov 2009 12:11:01 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: HTTP 1.0 Config Message-ID: <23258000.1257873061567.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> By spewing out: System.out.println("Config File = " + ((StubExt)ial).getConfigFile()); I was able to determine that it was looking for the standard-jaxws-client-config.xml in the META-INF directory. So I created a META-INF on the classpath and copied it there. It appears that setSecurityConfig() and setConfigName() did not change these values for me. No matter what values I set for these two properties, it always uses "META-INF/standard-jaxws-client-config.xml" and "Standard Client" So I was able to turn off the chunking by changing the http://org.jboss.ws/http#chunksize to 0 in the Standard Client element, but this seems less than ideal. What is my disconnect here? Alternately, I would like to set CHUNKED_ENCODING_SIZE to 0 programatically, but I have not been able to figure out how. Thank you all for your time and attention. Jason View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264880#4264880 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264880 From do-not-reply at jboss.com Tue Nov 10 12:14:07 2009 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 10 Nov 2009 12:14:07 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: HTTP 1.0 Config Message-ID: <30409123.1257873247504.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> anonymous wrote : turn off the chunking by changing the http://org.jboss.ws/http#chunksize to 0 in the Standard Client element Having dealt with this issue a few months ago, it would appear that this is the only way to do this. At least I could not come up with any alternatives. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264882#4264882 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264882 From do-not-reply at jboss.com Wed Nov 11 04:13:52 2009 From: do-not-reply at jboss.com (karypid) Date: Wed, 11 Nov 2009 04:13:52 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: WS-RM Exception: cannot be cast to org.jboss.ws.core.Stu Message-ID: <25454134.1257930832693.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I've added a patch that seems to fix this (in the most straight-forward, but also uneducated manner one can think of). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264972#4264972 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264972 From do-not-reply at jboss.com Wed Nov 11 05:14:52 2009 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 11 Nov 2009 05:14:52 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: WS-RM Exception: cannot be cast to org.jboss.ws.core.Stu Message-ID: <32071947.1257934492566.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I've scanned the patch, thanks. I've just one concern, ie. whether it's a bit too aggressive rewriting a "file://foo-bar" address with one using http protocol, as theoretically that might refer to a jms binding. So you might want to enhance the patch a bit scanning the model, getting the binding corresponding to the address being analysed and verifying the soap:binding in use before rewriting "file" to "http(s)". Btw, besides fixing this which is good in anycase, did you try providing an address without procotol (simply "replace-me" for instance) in your wsdl as a workaround? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264983#4264983 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264983 From do-not-reply at jboss.com Fri Nov 13 02:50:13 2009 From: do-not-reply at jboss.com (Willboss) Date: Fri, 13 Nov 2009 02:50:13 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - How should I begin with XTS(WebService Transaction) programi Message-ID: <14274819.1258098613880.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Anybody tell me how to get a sample about the WebService Transaction Programing?It's metioned in the <>,but I can't get the API or jar File?Pls reply this topic or conntact me with moonstroller at hotmail.com ,It's emergent,thank you very much! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265413#4265413 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265413 From do-not-reply at jboss.com Fri Nov 13 05:59:35 2009 From: do-not-reply at jboss.com (jpebe001) Date: Fri, 13 Nov 2009 05:59:35 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Starting up JBossWS 3.2.1 on Jboss 5.1.0.GA MINIMAL Message-ID: <7689403.1258109975247.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi there, this must be a really basic question - but still one which I could not find anything about, I have installed JBoss WS 3.2.1 on JBoss 5.1.0.GA and everything works fine, I can see: 11:56:37,697 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ | 11:56:41,805 INFO [AbstractServerConfig] JBoss Web Services - CXF Server | 11:56:41,805 INFO [AbstractServerConfig] 3.2.1.GA However if I run the server using run.bat -c minimal The WS stack is not initialised. Which files/folders should I copy from the deploy directory to get this to work ? (I want it only to run the basic services and the web service stack) Many Thanks JP View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265464#4265464 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265464 From do-not-reply at jboss.com Fri Nov 13 12:05:14 2009 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 13 Nov 2009 12:05:14 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Starting up JBossWS 3.2.1 on Jboss 5.1.0.GA MINIMAL Message-ID: <28387655.1258131914487.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> The 'minimal' configuration does not contain enough basic services to support web services. I'm not sure if the 'web' configuration does, but that might be something worth trying (assuming you are not using EJBs for your web services.). Otherwise, you will have to use 'default' and follow the slimming guidelines to remove unwanted services: http://www.jboss.org/community/wiki/JBoss5xTuningSlimming View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265595#4265595 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265595 From do-not-reply at jboss.com Fri Nov 13 13:34:19 2009 From: do-not-reply at jboss.com (jonrowlands83) Date: Fri, 13 Nov 2009 13:34:19 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - WS Client Problem Message-ID: <15368506.1258137259257.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I am using wsconsume from a wsdl with the following policy: The name space comes from xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" It is referenced by: ... The problem is when when my client is run against the wsdl an exception is thrown. Exception in thread "main" org.jboss.ws.WSException: Policy not supported! #MimePolicy I am at a loss as to what to do to fix the problem. I am using the native jboss-ws. Any help would be appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265612#4265612 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265612 From do-not-reply at jboss.com Fri Nov 13 15:25:47 2009 From: do-not-reply at jboss.com (ozizka@redhat.com) Date: Fri, 13 Nov 2009 15:25:47 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - JAXB - elements unmarshalled to other parent Message-ID: <30566094.1258143947766.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi all, I have a problem with JAXB unmarshalling. First I marshall to a XML: | | | | | | | | | | | | | | Then I unmarshall it, but JAXB reads this: | | | | | | | | | | | | | It's most likely an error in my JAXB annotations. Anyone has ever seen this? Any idea what could cause this? I can post the code if necessary. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265620#4265620 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265620 From do-not-reply at jboss.com Sun Nov 15 02:19:24 2009 From: do-not-reply at jboss.com (rams.rapo) Date: Sun, 15 Nov 2009 02:19:24 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - JBoss 5.1.0 Apache Axiom Message-ID: <25412121.1258269564862.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi, I've been using SAAJ for a long time with spring webservices. Application is deploying fine on jBoss 5.1.0.GA with jdk 1.6. Recently read about the improvements with Apache Axiom and wanted to try it out. Just wanted to hear from group if anyone has tried this before and is it suggestable to go to production with Axiom instead of SAAJ? Thanks, Rams View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265714#4265714 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265714 From do-not-reply at jboss.com Mon Nov 16 00:18:48 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Mon, 16 Nov 2009 00:18:48 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <303706.1258348728066.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I find that if jbossws-native is replaced by JBOssws-METRO, the same jar works!!! There must be something wrong with jbossws-native! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265771#4265771 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265771 From do-not-reply at jboss.com Mon Nov 16 00:27:04 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Mon, 16 Nov 2009 00:27:04 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - "jbossws-native-3.2.1.GA.zip" does NOT support polimorphism? Message-ID: <7911644.1258349224365.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> problem of polimorphism web service is post here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=163305 I have tried "jbossws-metro-3.2.1.GA.zip" in jboss510, polimorphism web service[@XMLSeeAlso] is supported well!!! The same example works in Glassfish too. There must be something wrong with "jbossws-native-3.2.1.GA.zip". There is no response here, i am discouraged. :( View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265772#4265772 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265772 From do-not-reply at jboss.com Mon Nov 16 00:28:57 2009 From: do-not-reply at jboss.com (xiangyingbing) Date: Mon, 16 Nov 2009 00:28:57 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: JAXB - elements unmarshalled to other parent Message-ID: <10138290.1258349337104.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> It seems that jboss's guys are busy, what we can do is just to wait, and wait................ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265773#4265773 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265773 From do-not-reply at jboss.com Mon Nov 16 08:11:54 2009 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 16 Nov 2009 08:11:54 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: JAXB - elements unmarshalled to other parent Message-ID: <19587960.1258377114203.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi Ondra, we're using Sun JAXB implementation. Please forward your question to their user forum. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265850#4265850 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265850 From do-not-reply at jboss.com Mon Nov 16 08:18:36 2009 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 16 Nov 2009 08:18:36 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService Message-ID: <7460649.1258377516570.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> "xiangyingbing" wrote : Dear JBoss developers, | please give me an simple example about polymorphism webservice. | Thanks!!! I DO need it. Download native source distro. I found these tests there: | [/home/opalka][/home/opalka/svn/jbossws/framework/trunk/testsuite]>grep -r XmlSeeAlso * | grep -v "\.svn" | test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java: assertTrue("@XmlSeeAlso expected on SEI (types not referenced by the Port in the wsdl)", sei.isAnnotationPresent(XmlSeeAlso.class)); | test/java/org/jboss/test/ws/jaxws/jbws2701/Endpoint.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/jbws2701/Endpoint.java:@XmlSeeAlso(value={ClassA.class}) | test/java/org/jboss/test/ws/jaxws/jbws2701/JBWS2701TestCase.java: * [JBWS-2701] @XmlSeeAlso and generated wsdl | test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassA.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassA.java:@XmlSeeAlso({ClassB.class, ClassC.class}) | test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassC.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassB.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/jbws1702/types/ClassB.java:@XmlSeeAlso({ClassC.class}) | test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Registration.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Registration.java:@XmlSeeAlso({ | test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/RegistrationFault.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/RegistrationFault.java:@XmlSeeAlso({ | test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Customer.java:import javax.xml.bind.annotation.XmlSeeAlso; | test/java/org/jboss/test/ws/jaxws/benchmark/test/complex/types/Customer.java:@XmlSeeAlso({ | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265852#4265852 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265852 From do-not-reply at jboss.com Mon Nov 16 16:15:13 2009 From: do-not-reply at jboss.com (pa12399) Date: Mon, 16 Nov 2009 16:15:13 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - JBoss 4.2.2 JDK1.5 Webservice user-defined Exception handlin Message-ID: <26724712.1258406113956.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi I am trying to write a webservice, that throws a user-defined exception. I am using bottom-up approach and when I package and deploy the webservice in JBoss 4.2.2 AS, I am getting exceptions. Looks like it does not like the way the BaseErrorType (user-defined exception) is defined. How do I fix this issue? Here is my webservice: ServiceRequests.java @WebService public class ServiceRequests { public List GetNpaNxxList( @WebParam(name="postalCode") String postalCode, @WebParam(name="npa") String npa, @WebParam(name="npaNxx") String npaNxx, @WebParam(name="transactionId") String transactionId, @WebParam(name="restrictedFlag") boolean restrictedFlag) throws BaseErrorType { List list = new ArrayList(); return list; } BaseErrorType.java import javax.xml.bind.annotation.XmlType; @XmlType(name="com.vzw.opc.ws.BaseErrorType") public class BaseErrorType extends java.lang.Exception{ public BaseErrorType() {} public BaseErrorType(String msg) { super(msg); } } When I package and deploy my webservice in Jboss, I am getting this exception: 2009-11-16 11:19:21,803 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/opt/vzw/webserver/jboss-4.2.2.GA/server/provapi-ws/deploy/OnstarWebService.war javax.xml.ws.WebServiceException: @XmlType missing from fault bean: com.vzw.opc.ws.jaxws.BaseErrorTypeBean at org.jboss.ws.metadata.umdm.FaultMetaData.initializeFaultBean(FaultMetaData.java:256) at org.jboss.ws.metadata.umdm.FaultMetaData.eagerInitialize(FaultMetaData.java:226) at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:464) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:533) at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:519) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:507) at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:429) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265965#4265965 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265965 From do-not-reply at jboss.com Tue Nov 17 06:01:01 2009 From: do-not-reply at jboss.com (moa) Date: Tue, 17 Nov 2009 06:01:01 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: WSSE UsernameToken without HTTP basic auth? Message-ID: <24971609.1258455661427.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi Mikael and Darran, Sorry for wakening an old thread. We had the same problem with the principal = null over in the STS wiki: http://www.jboss.org/community/wiki/jbosssecuritytokenservice#comment-2075 So I have added a JIRA bug for you Darran: https://jira.jboss.org/jira/browse/JBWS-2833 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266035#4266035 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266035 From do-not-reply at jboss.com Tue Nov 17 09:48:00 2009 From: do-not-reply at jboss.com (pa12399) Date: Tue, 17 Nov 2009 09:48:00 -0500 (EST) Subject: [jbossws-users] =?utf-8?q?=5BJBoss_Web_Services_Users=5D_-_Re=3A_?= =?utf-8?b?Y3VzdG9tIGZhdWx0IG1hcHBpbmcgd2l0aCBqYXgtcnBjw4PCosOCwoDDgsKP?= Message-ID: <14111887.1258469280658.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi I am encountering the same issue - I am unable to deploy a webservice with user-defined exception. I am using JBoss 4.2.2GA and JDK1.5. Did you resolve your problem of having user-defined faults? Please share your experience. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266110#4266110 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266110 From do-not-reply at jboss.com Tue Nov 17 12:11:28 2009 From: do-not-reply at jboss.com (newmanw10) Date: Tue, 17 Nov 2009 12:11:28 -0500 (EST) Subject: [jbossws-users] =?utf-8?q?=5BJBoss_Web_Services_Users=5D_-_Re=3A_?= =?utf-8?b?Y3VzdG9tIGZhdWx0IG1hcHBpbmcgd2l0aCBqYXgtcnBjw4PCosOCwoDDgsKP?= Message-ID: <29980320.1258477888492.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I did finally figure out what my problem was. Are you using wscompile to generate your jax-rpc mapping file? If so that is your problem! I am not sure if wscompile is generating the xml incorrectly or if jboss does not parse wscompile's generated mapping file correctly. The solution is to use wstools (which is a jboss tool). You can find some information on wstools on the web but you will have to look as jboss and the community do not support it anymore. Which also means that if you try and look for the documentation for wstools on jboss.org you will not find it. Which is stupid because they still deliver this tool with 4.2.3.GA which is used a ton in industry. So why not still have the wstools docs out there? Enough ranting I guess. All I did was use wstools to generate my mapping file, I still used wscompile to generate all other artifacts. After that all was well I as able to deploy my service and catch a custom wsdl fault/exception on the client side. Looking at the two mapping files they are different I just don't know if this is a jboss bug or wscompile bug. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266151#4266151 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266151 From do-not-reply at jboss.com Thu Nov 19 09:08:01 2009 From: do-not-reply at jboss.com (sverker) Date: Thu, 19 Nov 2009 09:08:01 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - How to disable Transfer-encoding: chunked from server side? Message-ID: <2073236.1258639681400.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I have a problem to access a web service on jbossws from a client with User-Agent: SOAP Toolkit 3.0 (Microsoft Office). I've compared the messages on soap level with a service that works and they are the same. The only difference I can see is that jbossws's response use Transfer-encoding: chunked which the other doesn't. Information I found indicates that this client can't handle chunked encoding. I found in your wiki how to disable it from client side but nothing about server sida. Is there a way? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266557#4266557 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266557 From do-not-reply at jboss.com Thu Nov 19 11:08:59 2009 From: do-not-reply at jboss.com (sverker) Date: Thu, 19 Nov 2009 11:08:59 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: How to disable Transfer-encoding: chunked from server si Message-ID: <30028845.1258646939285.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Pls disregard from this post, I've now been able to decode the SSL traffic that the acctual client use and Transfer-encoding: chunked is not used. I see another thing though that I'll might get back to you about after investigating some more. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266589#4266589 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266589 From do-not-reply at jboss.com Thu Nov 19 11:20:19 2009 From: do-not-reply at jboss.com (sverker) Date: Thu, 19 Nov 2009 11:20:19 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - jbossws does not emit xml declaration on soap response Message-ID: <6009051.1258647619130.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi, I'm trying to implement a webservice for a Microsoft Office protocol. It identifies itself as User-Agent: SOAP Toolkit 3.0. However I can't get it to work and now I've been able to decode the acctual SSL traffic. I'm comparing what my service responds with a working service. The only difference I can see (except for the server header and some X- headers which shouldn't matter is that JbossWS starts the soap response like this: while Microsoft-IIS/7.0 starts it like this: I'd be supprise if it's the namespace declarations (soap, xsi and xsd vs env) that cause the problem, although may be. Apart from that the difference is that IIS emits a xml declaration and it use double quote for the namespace declaration in envelope while JbossWS use single quote. Is it possible to configure JbossWS to output like IIS in this case? Any experience on interoperability on this user agent with JbossWS? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266597#4266597 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266597 From do-not-reply at jboss.com Thu Nov 19 12:29:37 2009 From: do-not-reply at jboss.com (peterdnight2) Date: Thu, 19 Nov 2009 12:29:37 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Linkage error when packaging metro Message-ID: <1861360.1258651777537.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I added an entry to jboss-web.xml, but still get errors below. Help Please ;) com.example:archive=petersLoader java2ParentDelegation=false 12:25:04,853 INFO [http] WSSERVLET12: JAX-WS context listener initializing 12:25:05,462 SEVERE [http] WSSERVLET11: failed to parse runtime descriptor: java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of ) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of ) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.(RuntimeBuiltinLeafInfoImpl.java:224) at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.(RuntimeTypeInfoSetImpl.java:61) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:127) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:79) at com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.java:152) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266615#4266615 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266615 From do-not-reply at jboss.com Fri Nov 20 05:16:52 2009 From: do-not-reply at jboss.com (sergey.olifirenko) Date: Fri, 20 Nov 2009 05:16:52 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Handlers number depends on number of concurrent threads Message-ID: <15137679.1258712212491.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hello, I've found possible bug related to WS Handlers creation during concurrent WS access. Problem is in number of created Handlers for WS and as result their execution order. Their number differs in two cases 1) Single thread calls WS. Then 20 threads concurrently call the same WS. (example below shows 3 created Handlers with order C-B-A-WS-A-B-C ) 2) 20 threads call WS concurrently. (example below shows creation 20*3 = 60 handlers, with invalid execution order f.e. C-B-A-B-A-C-...-A-A-WS-A-C-B-A-B-A-C-...-A-A) As I understand WS Handlers initilization isn't synchronized. Is it known issue? Example: There is following handler chain: com.softcomputer.softlab.lab.service.HandlerA com.softcomputer.softlab.lab.service.HandlerB com.softcomputer.softlab.lab.service.HandlerC Service: @WebService(name = "TimeService") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @Stateless @HandlerChain(file = "META-INF/custom_handlers.xml") public class TimeService implements ITimeService { @WebMethod public long getServerTime(Void dummy) { try { Thread.sleep(200); } catch (Exception e) { throw new IllegalStateException(e); } return System.currentTimeMillis(); } } Handlers are following: public class HandlerA implements SOAPHandler { public HandlerA() { logMsg(this, "Constructor"); } public void close(MessageContext arg0) { shortLog(this.getClass(), "close"); } public Set getHeaders() { shortLog(this.getClass(), "get Headers"); return null; } public boolean handleFault(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handleFault", arg0); return true; } public boolean handleMessage(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handle Message ", arg0); return true; } } public class HandlerB implements SOAPHandler { public HandlerB() { logMsg(this, "Constructor"); } public void close(MessageContext arg0) { shortLog(this.getClass(), "close"); } public Set getHeaders() { shortLog(this.getClass(), "get Headers"); return null; } public boolean handleFault(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handleFault", arg0); return true; } public boolean handleMessage(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handle Message ", arg0); return true; } } C is the same like A and B. Part of 1st case Log: 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA Constructor 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA get Headers 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB Constructor 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB get Headers 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC Constructor 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC get Headers 2009-11-20 11:30:30,035 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC handle Message opName_:urn:getServerTime; way_: IN; user_:scc; ts_:1258709429988 2009-11-20 11:30:30,035 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB handle Message opName_:urn:getServerTime; way_: IN; user_:scc; ts_:1258709430035 2009-11-20 11:30:30,035 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA handle Message opName_:urn:getServerTime; way_: IN; user_:scc; ts_:1258709430035 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709430722 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709430722 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709430722 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA close 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB close 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC close 2009-11-20 11:33:01,687 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf3; ts_:1258709581687 2009-11-20 11:33:01,687 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB handle Message opName_:getServerTime; way_: IN; user_:prf3; ts_:1258709581687 2009-11-20 11:33:01,687 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA handle Message opName_:getServerTime; way_: IN; user_:prf3; ts_:1258709581687 2009-11-20 11:33:01,718 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf2; ts_:1258709581718 2009-11-20 11:33:01,718 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerB handle Message opName_:getServerTime; way_: IN; user_:prf2; ts_:1258709581718 2009-11-20 11:33:01,718 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerA handle Message opName_:getServerTime; way_: IN; user_:prf2; ts_:1258709581718 ... 2009-11-20 11:33:01,922 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709581922 2009-11-20 11:33:01,922 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709581922 2009-11-20 11:33:01,922 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709581922 2009-11-20 11:33:01,922 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA close 2009-11-20 11:33:01,922 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB close 2009-11-20 11:33:01,922 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC close 2009-11-20 11:33:01,937 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerA handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709581937 2009-11-20 11:33:01,937 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerB handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709581937 2009-11-20 11:33:01,937 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerC handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709581937 2009-11-20 11:33:01,937 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerA close 2009-11-20 11:33:01,937 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerB close 2009-11-20 11:33:01,937 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerC close Part of 2nd case Log(execution order detailed for thread 10): 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-18] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-17] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-9] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-7] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-4] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-6] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-13] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-14] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-16] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-8] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-20] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-3] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-11] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-15] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-12] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-19] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-5] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA Constructor 2009-11-20 11:43:44,499 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-17] HandlerA get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-18] HandlerA get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-18] HandlerB Constructor 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-18] HandlerB get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-18] HandlerC Constructor 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-18] HandlerC get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-17] HandlerB Constructor 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-17] HandlerB get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-17] HandlerC Constructor 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-17] HandlerC get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerA get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerB Constructor 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerB get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerC Constructor 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-2] HandlerC get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-16] HandlerA get Headers 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-16] HandlerB Constructor 2009-11-20 11:43:44,515 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-16] HandlerB get Headers ... 2009-11-20 11:43:44,608 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-14] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf4; ts_:125871022454...6 2009-11-20 11:43:44,608 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-7] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf2; ts_:1258710224546 2009-11-20 11:43:44,608 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf18; ts_:1258710224546 2009-11-20 11:43:44,608 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-17] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf19; ts_:1258710224546 ... 2009-11-20 11:43:44,608 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerB handle Message opName_:getServerTime; way_: IN; user_:prf18; ts_:1258710224608 ... 2009-11-20 11:43:44,608 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerA handle Message opName_:getServerTime; way_: IN; user_:prf18; ts_:1258710224608 ... 2009-11-20 11:43:44,608 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf18; ts_:12587102246080 ... 2009-11-20 11:43:44,624 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerB handle Message opName_:getServerTime; way_: IN; user_:prf18; ts_:1258710224624 ... 2009-11-20 11:43:44,624 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerA handle Message opName_:getServerTime; way_: IN; user_:prf18; ts_:1258710224624 ... 2009-11-20 11:43:44,624 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-10] HandlerC handle Message opName_:getServerTime; way_: IN; user_:prf18; ts_:1258710224624 etc. thread 10 calls all 60 handlers randomly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266712#4266712 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266712 From do-not-reply at jboss.com Fri Nov 20 05:34:33 2009 From: do-not-reply at jboss.com (sverker) Date: Fri, 20 Nov 2009 05:34:33 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: jbossws does not emit xml declaration on soap response Message-ID: <27104779.1258713273987.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I found after extensive testing that it wasn't the SOAP part that caused the problems but that the client was very sensitive to how the payload was formatted... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266715#4266715 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266715 From do-not-reply at jboss.com Fri Nov 20 07:44:11 2009 From: do-not-reply at jboss.com (pvenkatesh) Date: Fri, 20 Nov 2009 07:44:11 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Accessing Secured WebService is failing Message-ID: <18637000.1258721051808.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi All I am able to access my webservice if i access it without applying any security stuff, but it's failing when I enable security for my service I've exactly followed the following link to apply security for my webservice http://www.developer.com/java/other/article.php/10936_3802631_1/Securing-Web-Services-in-JBoss-Application-Server-with-WS-Security.htm My WAR file structure is as follows JBossWS | |-src | |_org.jbia.ws | |_Hello.java | |-lib | | | all the jarfile | |-WebContent | | | WEB-INF | | |-jboss-wsse-server.xml | | |-server.keystore | | |-server.truststore | | |-web.xml | | | META-INF | | | | | |-MANIFEST.MF My JAR file's structure is as follows WebService | |-src | |_org.jbia.ws | |_Client.java | |_All the generated stuff based on wsdl(hello.java, HelloBindingStrub.java,HelloProxy.java,HellowService.java, HelloServiceLocatior.java) | |-lib | | | all the jarfile | |-META-INF | | | |-jboss-wsse-client.xml | |-client.keystore | |-client.truststore | |-standard-jaxws-client-config.xml | | I tried to print the SOAP Request mesage at stub class as follows, but it's going as NULL | SOAPMessage message = _call.getMessageContext().getMessage(); | System.out.println("------------------------"); | System.out.println(message); | System.out.println("------------------------"); | My Client java files is as follows | package org.jbia.ws; | | import java.rmi.RemoteException; | | public class Client { | String st = null; | public String hello(String args) { | HelloProxy svc = new HelloProxy(); | Hello hello = svc.getHello(); | try { | st = hello.sayHello(args); | } catch (RemoteException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | return st; | } | public static void main(String[] args) { | Client cl = new Client(); | cl.hello("Venkat"); | } | } | The exception I am getting is as follows 17:09:26,531 ERROR [HandlerChainExecutor] Exception during handler processing | java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | 17:09:26,625 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: java.lang.NullPointerException | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | Caused by: java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 27 more | 17:09:26,796 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: java.lang.NullPointerException | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | Caused by: java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 27 more | I would appriciate if someone throws some light on this issue Thanks With Regards Venkatesh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266743#4266743 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266743 From do-not-reply at jboss.com Mon Nov 23 05:32:14 2009 From: do-not-reply at jboss.com (jpebe001) Date: Mon, 23 Nov 2009 05:32:14 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Basic WebService setup failing (wsconsume 4.2.2 vs 5.1.0 - g Message-ID: <17597723.1258972334659.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi there @ JBoss web, Disclaimer: I do not think the following is a bug (because this is pretty basic functionality) but I cannot see what, for the life of us, we are doing wrong or unconventional. We are using a basic example and we have the following setups A: JBoss 5.1.0 with CXF WS Stack 3.2.1 B: JBoss 4.2.2 with CXF WS Stack 3.0.2 For both A and B we have the SAME WSDL file (reproduced for completeness hereunder - note that this is automatically generated through the same server class annotation). | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the wsconsume tool in the JBoss BIN folder, this WSDL file generates different clients for setups A and B (described above). The main and (possibly only) interesting difference in the service interface is the following: In A: JBoss 5.1.0 with CXF WS Stack 3.2.1: (class finally generated by Apache CXF 2.2.4) | @WebResult(name = "testApiCallerResult", targetNamespace = "") | @.. //other annotations identical! | public com.ixaris.ws.server.Testpaymentconfirmation apiCaller( | @WebParam(name = "arg0", targetNamespace = "http://server.ws.ixaris.com") | com.ixaris.ws.server.Testpayment arg0 | ); | In B: JBoss 4.2.2 with CXF WS Stack 3.0.2: (class finally generated by JAX-WS RI 2.1.1-b03) | @WebResult(name = "testApiCallerResult", targetNamespace = "http://server.ws.ixaris.com") | @.. //other annotations identical! | public Testpaymentconfirmation apiCaller( | @WebParam(name = "arg0", targetNamespace = "http://server.ws.ixaris.com") | Testpayment arg0); | As you can see the client generated by the wsconsume tool in setup A does not have a namespace and generates the following exception: | Exception in thread "main" javax.xml.ws.WebServiceException: class com.ixaris.ws.client.endpoints.ApiCallerResponse do not have a property of the name testApiCallerResult | at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.(ResponseBuilder.java:486) | at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.(SyncMethodHandler.java:171) | at com.sun.xml.internal.ws.client.sei.SEIStub.(SEIStub.java:67) | at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:544) | at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:292) | at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274) | at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267) | at javax.xml.ws.Service.getPort(Service.java:92) | at com.ixaris.ws.client.endpoints.TestApiService_Service.getTestapiport(TestApiService_Service.java:62) | at com.ixaris.ws.client.testapiclient.testApiClientProcess(testapiclient.java:31) | at com.ixaris.ws.client.testapiclient.main(testapiclient.java:84) | Caused by: javax.xml.bind.JAXBException: testApiCallerResult is not a valid property on class com.ixaris.ws.client.endpoints.ApiCallerResponse | at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:910) | at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.(ResponseBuilder.java:475) | ... 10 more | Note that if I add this targetNamespace = "http://server.ws.ixaris.com" to the Jboss 5.1.0 and CXF 3.2.1 (setup A) WebResult annotation on the interface, everything works fine. Note: I am running BOTH war files on JBoss 5.1.0 with CXF stack 3.2.1 Any ideas why this is happening ? Many Thanks JP View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267001#4267001 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267001 From do-not-reply at jboss.com Mon Nov 23 23:35:52 2009 From: do-not-reply at jboss.com (chubinator) Date: Mon, 23 Nov 2009 23:35:52 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Unable to process deployment descriptor for context and Message-ID: <13038969.1259037352885.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Ok, feeling little stupid. Apparently I didn't spend enough time searching--I think I kept including JBoss in my search which led me down rabbit holes. Searching on context.xml makes it clear that this little beast has been around for some time: http://wiki.metawerx.net/wiki/Context.xml So I'll figure out where I have to put it in my war-less deployment. :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267208#4267208 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267208 From do-not-reply at jboss.com Tue Nov 24 00:37:39 2009 From: do-not-reply at jboss.com (chubinator) Date: Tue, 24 Nov 2009 00:37:39 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Unable to process deployment descriptor for context and Message-ID: <12277005.1259041059041.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Spoke too soon: The problem I'm running into is that I can deploy a context.xml in a war, but I can't include a war in my ear with the same context as my web services. JBoss reports that the context is already installed. So, how do I configure the context for my web services and include it in my ear/jar? In the end, I can fallback to configuring it outside my ear, but I'd rather not. Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267213#4267213 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267213 From do-not-reply at jboss.com Tue Nov 24 06:32:47 2009 From: do-not-reply at jboss.com (brettcave) Date: Tue, 24 Nov 2009 06:32:47 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Jboss 4.2.3 Virtual Host Configuration Message-ID: <9323948.1259062367545.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I have the same problem (JB AS 4.2.2). JBossWS 3.0.5 is not deployed to the server. My web service class has: // start @Name("myWS") @Stateless() @WebContext(virtualHosts = {"my.virtual.host"}, contextRoot = "/services" @WebService(name="myWS", serviceName="myWS") public class MyWSBean {} // end accessing http://my.virtual.host/services/MyWSBean?wsdl fails, while http://localhost:8080/services/MyWSBean?wsdl works. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267268#4267268 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267268 From do-not-reply at jboss.com Tue Nov 24 06:56:22 2009 From: do-not-reply at jboss.com (brettcave) Date: Tue, 24 Nov 2009 06:56:22 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - web services and virtual hosts (jbossws 3.0.5 on AS4.2.2) Message-ID: <27114345.1259063782601.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> theres a few topics on this, and doesn't seem to be resolved yet, although jbossws-native 3.0.3 addressed the issue - is there perhaps a step missing, or is this an issue with a component other than just jbossws (ejb2.1 endpoints?) 1) upgrade jboss to jbossws-native 3.0.5 and restart (all libs and the jbossws.sar updated in deploy) 2) update libraries in my project classpath (ide and compile cp's) - specifically jbossws-spi.jar for the annotations (jaxb-api stays the same). recompile and redeploy project. jboss-web.deployer/server.xml: | my.virtual.host.name | my.virtual.host.name:80 | | | The default "localhost" virtualhost is still configured, and listens on 0.0.0.0:8080 to all headers excluding the virtualhost aliases above. MyWSBean.java (seam 2.1.1): @Name("myWS") | @Stateless() | @WebContext(virtualHosts = {"my.virtual.host"}, contextRoot = "/services") | @WebService(name="myWS", serviceName="myWS") | public class MyWSBean {} | See theres a few jira issues about this, assuming there is no working for jboss 4? (5.0.1 is resolved). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267270#4267270 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267270 From do-not-reply at jboss.com Tue Nov 24 07:00:34 2009 From: do-not-reply at jboss.com (brettcave) Date: Tue, 24 Nov 2009 07:00:34 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: web services and virtual hosts (jbossws 3.0.5 on AS4.2.2 Message-ID: <22579822.1259064034299.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> s/there is no working/there is no workaround/ I can access the wsdl on http://0.0.0.0:8080/services/MyWSBean?wsdl but not on http://my.virtual.host.name/services/MyWSBean?wsdl View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267273#4267273 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267273 From do-not-reply at jboss.com Wed Nov 25 17:53:56 2009 From: do-not-reply at jboss.com (eliasbg) Date: Wed, 25 Nov 2009 17:53:56 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: InvokerServlet in JBoss 4.2.2 Message-ID: <19919887.1259189636586.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> hay alguna respuesta para esta pregunta? Saludos, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267589#4267589 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267589 From do-not-reply at jboss.com Thu Nov 26 08:43:59 2009 From: do-not-reply at jboss.com (ddefrancesco) Date: Thu, 26 Nov 2009 08:43:59 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: java.lang.LinkageError: loader constraint violation:(In Message-ID: <614151.1259243039758.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi all, I'm facing the very same issue, I can run test successfully but when I embed the ws call in my jsf webapp the dreaded LinkageError show itself... I'm aware that should be a library problem...I actually have tried many lib configs...but no luck so far... any further pointers?? Cheers -- Daniele View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267671#4267671 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267671 From do-not-reply at jboss.com Thu Nov 26 09:06:17 2009 From: do-not-reply at jboss.com (ddefrancesco) Date: Thu, 26 Nov 2009 09:06:17 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: java.lang.LinkageError: loader constraint violation:(In Message-ID: <16076021.1259244377054.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hi again, just one thing... at the link http://www.jboss.org/jbossws/downloads/ are downloadable the jbossws distributions...which file am I to download?? Which is the readme file?? Cheers -- Daniele View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267673#4267673 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267673 From do-not-reply at jboss.com Thu Nov 26 14:19:08 2009 From: do-not-reply at jboss.com (Oberiko) Date: Thu, 26 Nov 2009 14:19:08 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - JBossWS is Java EE 5 compliant? Message-ID: <464365.1259263148716.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hello, The last word I've seen on this is the 2007 whitepaper which states that JBossWS is not fully Java EE 5 compliant. Can anyone confirm otherwise? For example, if I were to create an application in JBossWS, would I be able to deploy it to another Java EE 5 compliant application server (as listed http://java.sun.com/javaee/overview/compatibility.jsp)? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267706#4267706 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267706 From do-not-reply at jboss.com Fri Nov 27 03:34:09 2009 From: do-not-reply at jboss.com (11mpp) Date: Fri, 27 Nov 2009 03:34:09 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - No charset in MTOM enabled response Message-ID: <29419923.1259310849816.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> I'm using JBoss 5.1.0 GA and the native web services stack to create (wsconsume) and deploy web services. I use document.literal.wrapped style and MTOM to send binary data as attachments to .NET client. For non MTOM operations everything works fine, but for MTOM there is no charset value in Content-Type HTTP header and .NET client fails. Generated header in HTTP response: Content-Type multipart/related; type="application/xop+xml"; start=""; start-info="text/xml"; boundary="----=_Part_2_28637409.1259255159140" Is it a bug in jbossws? Please tell me how to add charset=utf-8 to the header manually if there is no other way. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267729#4267729 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267729 From do-not-reply at jboss.com Sat Nov 28 14:28:31 2009 From: do-not-reply at jboss.com (PeterJ) Date: Sat, 28 Nov 2009 14:28:31 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: JBossWS is Java EE 5 compliant? Message-ID: <12600819.1259436511939.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> As far as I know, JBoss AS 5.x is Java EE 5 compliant. I believe that the "standard" configuration supplied in 5.x is the one that passed the certification tests. anonymous wrote : the 2007 whitepaper which states that JBossWS is not fully Java EE 5 compliant Given that AS 5.0.0 was not released until the end of 2008 (Nov or Dec), it doesn't surprise me that a 2007 whitepaper would state such a thing. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267917#4267917 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267917 From do-not-reply at jboss.com Mon Nov 30 07:21:09 2009 From: do-not-reply at jboss.com (ramboid) Date: Mon, 30 Nov 2009 07:21:09 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: InvokerServlet in JBoss 4.2.2 Message-ID: <3863237.1259583669402.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> One can give the appropriate "privilege" to the invoker servlet in the context.xml file and then one can use it. I think that somebody decided that the invoker servlet was "unsafe" and that one must configure jboss to use it bu giving it the "privilege" View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268065#4268065 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268065 From do-not-reply at jboss.com Mon Nov 30 08:13:49 2009 From: do-not-reply at jboss.com (altes-kind) Date: Mon, 30 Nov 2009 08:13:49 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - PolicyAttachment with custom assertions Message-ID: <31951419.1259586829604.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hello, I'm trying to implement a custom policy assertion with JBossWS. When I use @PolicyAttachment with my custom policy XML I get the log message "Unknown namespace:http://www.hfu.de/server/service/calculator/CalculatorPolicy...Assertion not supported". Is the usage of PolicyAttachment limited to standard policies like WS-SecurityPolicy or is there anything wrong with my custom assertion? 2009-11-30 14:01:41,857 DEBUG [org.jboss.ws.extensions.policy.deployer.PolicyDeployer] (main) ####class org.apache.ws.policy.XorCompositeAssertion | 2009-11-30 14:01:41,857 DEBUG [org.jboss.ws.extensions.policy.deployer.PolicyDeployer] (main) ####[org.apache.ws.policy.AndCompositeAssertion at aeb11d] | 2009-11-30 14:01:41,858 DEBUG [org.jboss.ws.extensions.policy.deployer.PolicyDeployer] (main) alternative | 2009-11-30 14:01:41,858 DEBUG [org.jboss.ws.extensions.policy.deployer.PolicyDeployer] (main) Unknown namespace:http://www.hfu.de/server/service/calculator/CalculatorPolicy...Assertion not supported | 2009-11-30 14:01:41,858 DEBUG [org.jboss.ws.extensions.policy.deployer.PolicyDeployer] (main) Unsupported Alternative | 2009-11-30 14:01:41,858 DEBUG [org.jboss.ws.extensions.policy.deployer.PolicyDeployer] (main) XorComposite zero element...Policy not supported | 2009-11-30 14:01:41,858 WARN [org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder] (main) Policy Not supported:null @Stateless | @WebService(name = "Calculator", targetNamespace = "http://calculator.service.server.hfu.de/") | @PolicyAttachment( { @Policy(policyFileLocation = "CalculatorPolicy.xml", scope = PolicyScopeLevel.WSDL_PORT) }) | public class Calculator implements CalculatorRemote, CalculatorLocal { | | public double add(double num1, double num2) { | return num1 + num2; | } | | } | | | | | 10.0 | 0.0 | | | Any help is appreciated. altes-kind View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268073#4268073 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268073 From do-not-reply at jboss.com Mon Nov 30 11:53:15 2009 From: do-not-reply at jboss.com (gwzoller) Date: Mon, 30 Nov 2009 11:53:15 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Newbie: Empty ArrayList Passed on WS Call Message-ID: <16655002.1259599995666.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Hello, I'm having some difficulty getting a list of things passed successfully as a web service parameter. A no-param, or simple (non-list) param works fine. My web service is an EJB stateless session bean...code below. The Interface: | @Remote | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public interface OrderTakerRemote { | @WebMethod | public String msg(ArrayList say); | } The Implementation: | @WebService(endpointInterface="com.kepler.ecom.services.OrderTakerRemote") | @Stateless | public class OrderTaker implements OrderTakerRemote { | | // Default constructor. | public OrderTaker() { | } | | public String msg(ArrayList say) { | StringBuffer sb = new StringBuffer(); | System.out.println(say.size()); // verify non-emtpy list | if( say != null ) { | sb.append("Hey you says "); | for(String one : say ) { | sb.append("\""+one+"\" "); | } | } | return sb.toString(); | } | } The Client: | private void wsPlaceOrder() { | String endpointURI ="http://127.0.0.1:8080/keplerEAR-kepler/OrderTaker?wsdl"; | try | { | ArrayList stuff = new ArrayList(); | stuff.add("One"); | stuff.add("Two"); | stuff.add("Three"); | this.wsOrderResult = (String) getPort(endpointURI).msg(stuff); | } catch (MalformedURLException e) { | e.printStackTrace(); | throw new RuntimeException(e); | } | } The ArrayList is clearly created and populated in the client. The call is made...no errors on the console..and I do get a result string back, but its just the little header "Hey you says"...not the rest of it. The console output from the implementation showing the received list size prints 0. Any ideas why my list isn't going over the wire? Thanks! Greg View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268142#4268142 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268142 From do-not-reply at jboss.com Mon Nov 30 16:24:38 2009 From: do-not-reply at jboss.com (gwzoller) Date: Mon, 30 Nov 2009 16:24:38 -0500 (EST) Subject: [jbossws-users] [JBoss Web Services Users] - Re: Newbie: Empty ArrayList Passed on WS Call Message-ID: <4477195.1259616278666.JavaMail.jboss@nukes01.app.mwc.hst.phx2.redhat.com> Ok... I have 1/2 an answer. By playing with the annotations (brute force really) I can now get my list going over the wire, but... I lost my WSDL. New Interface: @WebService | public interface OrderTakerRemote { | public String msg(ArrayList say); | } | New Impl: @Remote(OrderTakerRemote.class) | @WebService(endpointInterface="com.kepler.ecom.services.OrderTakerRemote") | @SOAPBinding(style = SOAPBinding.Style.RPC) | @Stateless | public class OrderTaker implements OrderTakerRemote { | | // Default constructor. | public OrderTaker() { | } | | @WebMethod | public String msg(ArrayList say) { | // same as before | } | } I'd rather annotate the interface, not the implementation but to get it working it's a minor quibble. My larger problem is the WSDL. If I specify a simple @WebService (no endpoint parameter) in the impl then my WSDL looks something like this: | - | | - | | | | - | | - | | | | | - | | - | | | | | | | - | | | | - | | | | - | | - | | | | | | - | | | - | | | - | | | | - | | | | | - | | | - | | | | - | | | | | | - | | - | | | | | As shown in this code (with the endpoint parameter) my WSDL looks like this: | | - | | - | | | | | Somehow my Java client was fine with the abbreviated WSDL but I'm worried a non-Java client may need all the detail in the longer version. The annotation combo that gives me the longer (more complete?) WSDL doesn't let me pass my list. The short WSDL passes my list. Any ideas what's going on? What happened to all the stuff that defined the method calls and the parameter types? Any ideas appreciated! Confused newbie. Greg View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268184#4268184 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268184