[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
I'm trying to determine if this is the same problem that I'm having. Although in my case I have to use a supplied wsdl, that has come from Microsoft .NET and is document literal. The service endpoint interface generated for this wsdl has methods with multiple parameters. Would appreciate any help or pointers you can give. I would agree that reading the wikis and trying to find out about some of this stuff is rather complicated. Thanks http://www.jboss.org/index.html?module=bbop=viewtopict=59645 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864986#3864986 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864986 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Norman, do you want to have a go at this based on what you wrote in the JBoss book? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865056#3865056 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865056 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
I'll start a more-detail oriented guide on the Wiki, but is there a standard place where I should put it? I don't wanna mess up the neat formatting. Should I create another page? or Should I just add to the Java service endpoint discussion? _RK View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865067#3865067 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865067 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
If you think your guide will help the community, create a seperate page and tell us the location (on this thread). Then we can incorporate into the main JBossWS wiki. I understand your apprehension on changing the main JbossWS wiki page. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3865077#3865077 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865077 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Hi, thanks a lot, that hint to the old posting really solved my problem. I had read the Wiki-article before (actually several times), but the text states that it is about arrays, so I thought it didn't apply to my problem... Stephan View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864903#3864903 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864903 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Yeah, I know what you mean. I spent 3 days straight staring at the Wiki, logs, source and whatever else I could get my hands on before I actually figured out what the hell was going on. :) Good job! _RK p.s. Maybe we should post something on the Wiki about what to do :) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864941#3864941 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864941 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Yes, if the webservice step are unclear create a user perspective howto to help guide new users. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864946#3864946 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864946 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Hello, I suppose you mean I should set the loglevel for org.jboss.webservice to DEBUG. The (hopefully) relevant part form the server log looks like this: | 2005-02-01 08:43:41,949 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/rciserver, warUrl=file:/usr/share/jboss/server/default/tmp/deploy/tmp22492rciserver.war/ | 2005-02-01 08:43:43,168 DEBUG [org.jboss.webservice.WSDLDefinitionFactory] getBaseInputSource [wsdlUrl=file:/usr/share/jboss/server/default/tmp/deploy/tmp22492rciserver.war/WEB-INF/wsdl/HelloService.wsdl] | 2005-02-01 08:43:43,169 DEBUG [com.ibm.wsdl.xml.WSDLReaderImpl] Retrieving document at 'file:/usr/share/jboss/server/default/tmp/deploy/tmp22492rciserver.war/WEB-INF/wsdl/HelloService.wsdl'. | 2005-02-01 08:43:44,883 DEBUG [org.jboss.webservice.metadata.WebserviceDescriptionMetaData] Replace port location 'REPLACE_WITH_ACTUAL_URL' with 'http://grobi:8080/rciserver/Hello' | 2005-02-01 08:43:45,061 INFO [org.jboss.webservice.WSDLFilePublisher] WSDL published to: file:/usr/share/jboss/server/default/data/wsdl/rciserver.war/HelloService.wsdl | 2005-02-01 08:43:45,126 DEBUG [org.jboss.webservice.AxisService] deployService: rciserver.war#Hello | 2005-02-01 08:43:46,894 DEBUG [org.jboss.webservice.deployment.ServiceDescription] No ws4ee deployment meta data available | 2005-02-01 08:43:47,463 INFO [org.jboss.webservice.AxisService] WSDD published to: /srv/www/jboss/default/data/wsdl/rciserver.war/Hello.wsdd | 2005-02-01 08:43:47,979 DEBUG [org.jboss.webservice.EngineConfigurationFinder] Found config at: file:/usr/share/jboss/server/default/deploy/jboss-ws4ee.sar/META-INF/axis-server-config.xml | 2005-02-01 08:43:51,900 DEBUG [org.jboss.webservice.server.ServerEngine] new ServerEngine [EMAIL PROTECTED] | 2005-02-01 08:43:52,064 DEBUG [org.jboss.webservice.deployment.MetaDataRegistry] Register type mapping meta data for: {http://test.com/}helloResponse | 2005-02-01 08:43:52,064 DEBUG [org.jboss.webservice.deployment.MetaDataRegistry] Register type mapping meta data for: {http://test.com/}hello | 2005-02-01 08:43:52,178 INFO [org.jboss.webservice.AxisService] Web Service deployed: http://grobi:8080/rciserver/Hello | 2005-02-01 08:43:53,907 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 | 2005-02-01 08:43:54,713 INFO [org.apache.jk.common.ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009 | 2005-02-01 08:43:54,729 INFO [org.apache.jk.server.JkMain] Jk running ID=0 time=0/147 config=null | 2005-02-01 08:43:54,846 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.1 (build: CVSTag=JBoss_4_0_1 date=200501132049)] Started in 2m:10s:227ms | 2005-02-01 08:45:47,392 DEBUG [org.jboss.webservice.server.ServiceEndpointServlet] doGet: http://localhost:8080/ws4ee/services | 2005-02-01 08:45:47,443 DEBUG [org.jboss.webservice.server.ServiceEndpointServlet] Report available services | 2005-02-01 08:45:48,088 DEBUG [org.jboss.webservice.server.InvokerProvider] initServiceDesc: service=rciserver.war#Hello | 2005-02-01 08:45:48,234 DEBUG [org.jboss.webservice.handler.HandlerChainBaseImpl] Create a handler chain for roles: [] | 2005-02-01 08:45:48,235 DEBUG [org.jboss.webservice.handler.HandlerChainBaseImpl] init: [config=null] | 2005-02-01 08:45:48,268 FATAL [org.apache.axis.InternalException] Exception: | java.lang.Exception: The OperationDesc for hello was not synchronized to a method of com.mytest.Hello. | at org.apache.axis.InternalException.init(InternalException.java:106) | at org.apache.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.java:869) | at org.apache.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:1216) | at org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecursive(ServiceDesc.java:1062) | at org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:983) | at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:732) | at org.jboss.webservice.server.InvokerProvider.initServiceDesc(InvokerProvider.java:101) | at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:388) | at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:560) | at org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDDeployment.java:617) | at org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvider.java:356) | at org.jboss.webservice.server.ServiceEndpointServlet.reportAvailableServices(ServiceEndpointServlet.java:251) | at org.jboss.webservice.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:119) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Hello, I also added debug logging for org.apache.axis. This gave me the following additional debug information: anonymous wrote : | 2005-02-01 09:11:44,918 INFO [org.jboss.webservice.AxisService] WSDD published to: /srv/www/jboss/default/data/wsdl/rciserver.war/Hello.wsdd | 2005-02-01 09:11:44,920 DEBUG [org.apache.axis.description.OperationDesc] @16c14c0setReturnType({http://test.com/}helloResponse) | 2005-02-01 09:11:44,921 DEBUG [org.apache.axis.description.OperationDesc] @16c14c0 added parameter name: {http://test.com/}hello | typeEntry: null | mode: IN | isReturn: false | typeQName: {http://test.com/}hello | javaType: null | inHeader: false | outHeader: false | @c68059total parameters:1 | 2005-02-01 09:11:44,928 DEBUG [org.jboss.webservice.deployment.MetaDataRegistry] Register type mapping meta data for: {http://test.com/}helloResponse | 2005-02-01 09:11:44,929 DEBUG [org.jboss.webservice.deployment.MetaDataRegistry] Register type mapping meta data for: {http://test.com/}hello | 2005-02-01 09:11:44,931 INFO [org.jboss.webservice.AxisService] Web Service deployed: http://grobi:8080/rciserver/Hello | 2005-02-01 09:12:51,643 DEBUG [org.apache.axis.transport.http.AxisServlet] In AxisServletBase init | 2005-02-01 09:12:51,644 DEBUG [org.apache.axis.transport.http.AxisServlet] In servlet init | 2005-02-01 09:12:51,667 DEBUG [org.jboss.webservice.server.ServiceEndpointServlet] doGet: http://localhost:8080/ws4ee/services | 2005-02-01 09:12:51,692 DEBUG [org.jboss.webservice.server.ServiceEndpointServlet] Report available services | 2005-02-01 09:12:52,083 DEBUG [org.apache.axis.description.OperationDesc] @6743e2setReturnType({http://www.w3.org/2001/XMLSchema}string) | 2005-02-01 09:12:52,125 DEBUG [org.jboss.webservice.server.InvokerProvider] initServiceDesc: service=rciserver.war#Hello | 2005-02-01 09:12:52,170 DEBUG [org.jboss.webservice.handler.HandlerChainBaseImpl] Create a handler chain for roles: [] | 2005-02-01 09:12:52,171 DEBUG [org.jboss.webservice.handler.HandlerChainBaseImpl] init: [config=null] | 2005-02-01 09:12:52,176 DEBUG [org.apache.axis.description.ServiceDesc] Enter: syncOperationToClass org.apache.axis.description.OperationDesc | name:hello | returnQName: {http://test.com/}helloResponse | returnType: {http://test.com/}helloResponse | returnClass: null | elementQName:{http://test.com/}hello | soapAction: null | style: document | use: literal | numInParams: 1 | method:null | ParameterDesc[0]: | name: {http://test.com/}hello | typeEntry: null | mode: IN | isReturn: false | typeQName: {http://test.com/}hello | javaType: null | inHeader: false | outHeader: false | | | 2005-02-01 09:12:52,176 DEBUG [org.apache.axis.description.ServiceDesc] Sync method: public abstract | java.lang.String com.mytest.Hello.hello(java.lang.String,java.lang.String) throws java.rmi.RemoteException | 2005-02-01 09:12:52,176 DEBUG [org.apache.axis.description.ServiceDesc] Number of parameters don't match | 2005-02-01 09:12:52,209 FATAL [org.apache.axis.InternalException] Exception: | java.lang.Exception: The OperationDesc for hello was not synchronized to a method of com.mytest.Hello. | followed by above backtrace. It says that my implemented method with two parameters does not match the required method with one message. Aren't the handlers supposed to handle this? Or is this a misunderstanding on my part and I have to implement a method using one parameter only (of the Hello_hello_RequestStruct class)? Thanks for your patience. Yours Stephan Siano View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864525#3864525 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864525 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
As Thomas pointed out in the following forums post: http://www.jboss.org/index.html?module=bbop=viewtopict=56424 This usually occurs when you use more than one parameter in your endpoint message. With doc/lit there is no wrapping RPC element. The entire message is defined by a single XMLSchema complex type. JBossWS currently does not support unwrapped doc style parameters in web service endpoints. I believe the doc/lit there can only be one parameter. It also says this on the wiki at: http://www.jboss.org/wiki/Wiki.jsp?page=WSArrayTypeMapping A benefit of using document/literal style over rpc/literal or rpc/encoded is that the message can be validated against an XMLSchema. The soap body *is* the single method parameter - it cannot be an array of parameters. _RK View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864754#3864754 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864754 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Siano - Nobody seems to be responding to these types of questions, but after 3 days of staring at this, I finally got mine to work. :) Here's what I did to get a document/literal web service to work in JBoss 4.0.1. Like yourself, I implemented the endpoint interface and the implementing POJO class. I initially used wscompile with the -gen:server task, but for some reason, wscompile wrote a web.xml file that JBoss complained about, so I scratched that idea since I didn't want to have my ant build file have to copy over files etc. Instead, I first created the wsdl and mapping file via the -define parameter, then I used the -client option to generate the appropriate serializers/deserializers. By hand, I wrote the webservices.xml and web.xml files which I then packaged everything together via an ant build file and pushed it into the JBoss deploy directory and voila. Everything worked. :) _RK View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864429#3864429 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864429 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Thank you for your input. I tried to follow your advice, but I got the same error as before (I also tried gen:server instead of gen:client, but all that gave the same result). How do your web.xml and webservice.xml look like? I have the following two files. Is there something wrong? ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 servlet-nameHelloWorld/servlet-name servlet-classcom.mytest.HelloImpl/servlet-class servlet-mapping servlet-nameHelloWorld/servlet-name url-pattern/Hello/url-pattern /servlet-mapping /web-app webservices xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd; version=1.1 webservice-description webservice-description-nameHelloService/webservice-description-name wsdl-fileWEB-INF/wsdl/HelloService.wsdl/wsdl-file jaxrpc-mapping-fileWEB-INF/jaxrpc.xml/jaxrpc-mapping-file port-component port-component-nameHello/port-component-name wsdl-portHelloPort/wsdl-port service-endpoint-interfacecom.mytest.Hello/service-endpoint-interface service-impl-bean servlet-linkHelloWorld/servlet-link /service-impl-bean /port-component /webservice-description My service interface looks like this: package com.mytest; import java.rmi.Remote; import java.rmi.RemoteException; public interface Hello extends Remote { public String hello(String firstName, String name) throws RemoteException; } and this is the implementing Class... package com.mytest; public class HelloImpl { public String hello(String firstName, String name) { return Hello + firstName + + name + !; } } Do you have an idea what I am doing wrong or can you tell me what the difference to your webservice is? Stephan View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864441#3864441 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864441 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Did anybody sucessfully deploy a document literal webser
Stephan - Show us what your .wsdd file looks like. Also, go into the log4j configuration file for your JBoss server instance and change the following: This way, you can see exactly the SOAP message being sent into your service, etc and where it's failing. _RK View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864476#3864476 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864476 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag--drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user