[JBoss-user] [JBossWS] - Re: How to write a client that calls a document-style web se
anonymous wrote : org.jboss.webservice.deployment.ServiceDescription.getPackageName(ServiceDescription.java:824) What jboss version is this? Please check that you client uses a namespace aware XML parser like xerces, which can be enabled like this | sysproperty key=java.endorsed.dirs value=${jboss.home}/lib/endorsed/ | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864547#3864547 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864547 --- 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: How to write a client that calls a document-style web se
It was 4.0.0, I retried it in 4.0.1 with the same result: Exception in thread main javax.xml.rpc.ServiceException: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'j2ee:dewey-versionType' to a(n) type definition component. @ *unknown*[257,22] | at org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:167) | at sandbox.mette.ws.device.WSClient.main(WSClient.java:53) | Caused by: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'j2ee:dewey-versionType' to a(n) type definition component. @ *unknown*[257,22] | at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) | at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:153) | at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:140) | at org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMappingFactory.parse(JavaWsdlMappingFactory.java:63) | at org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:158) | ... 1 more | I can try making sure about the setting, but where is it located??? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864715#3864715 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864715 --- 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: How to write a client that calls a document-style web se
I found the problem that was causing the exception! I do not remember exactly how I created the jax-rpc mapping file, but I assume I must have copied and pasted it from somewhere and changed the details to fit my own. On the root element of the mapping file was the following schemaLocation: xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd; | I have seen this schemaLocation used in several jax-rpc mapping files on boards here, and a JAX-RPC page mentions this schema location, so I assume this is a common thing to do. When I go the schema at that location, I notice that it uses a lot of types in the same namespace (using the j2ee prefix) that it then doesn't define. It does however include a file j2ee_1_4.xsd, which I am unable to open from the stated location, so I assume that is where the problem lies. Being able to find the schema it goes into validatin mode, but being unable to load the entire definition the validation fails. When I remove the schemaLocation attribute, it seems to skip validation, and my code completes and it sends the request to the server. Now if I can only get my web service to work (different thread), I should be all set... :-) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864752#3864752 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864752 --- 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: How to write a client that calls a document-style web se
Generally, the jax-rpc mapping file will be created when you use wscompile to generate the wsdl file. How exactly did you create the wsdl? There is a page on the wiki that explains it further: http://www.jboss.org/wiki/Wiki.jsp?page=WSClientDII The method with the following signature: | public Service createService(URL wsdlLocation, URL mappingLocation, URL ws4eeMetaData, QName serviceName, String portName) throws ServiceException | can be found in the org.jboss.webservice.client.* package which can be found in the client directory of your JBoss installation in the jar file: jboss-ws4ee-client.jar View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864012#3864012 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864012 --- 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: How to write a client that calls a document-style web se
I created the WSDL by hand, using available examples. I aso created the jx-rpc mapping file, and that part is fine. Howvere, the wiki did not explain what to do with this file, beyond the client should be given a pointer to the jaxrpc-mapping.xml file, which the standard JAXRPC javax.xml.rpc.ServiceFactory? does not support., which frankly did not mean anything to me. The interesting thing abou tthat WIKI entry (the url is if you are interested), is that all the examples before the client example use document style, but then the client example is written in a way that does not support document style. You may want to revise this as it is confusing at best for people using either style. I am glad that there is an alternate way of doing this, and the link you sent was very helpful, but I have an additional questions (and bear with me, as I am in many ways a novice to this): Now I have to provide the mapping file URL to the code, but I assume these files are not automatically hosted by JBoss, the way the WSDL is? Do I have to host them up myself, or maintain copies on the client side? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864016#3864016 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864016 --- 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: How to write a client that calls a document-style web se
I tried using the code in the Wiki entry you linked to, changing names and namespaces as appropriate, obviously, and on the call to serviceFactory.createService, I get the exception below. Any idea what on earth it might mean??? Exception in thread main javax.xml.rpc.ServiceException: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'j2ee:dewey-versionType' to a(n) type definition component. @ *unknown*[257,22] | at org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:167) | at sandbox.mette.ws.device.WSClient.main(WSClient.java:55) | Caused by: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'j2ee:dewey-versionType' to a(n) type definition component. @ *unknown*[257,22] | at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) | at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:153) | at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:140) | at org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMappingFactory.parse(JavaWsdlMappingFactory.java:62) | at org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:158) | ... 1 more | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3864029#3864029 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3864029 --- 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