[JBossWS] - Re: beginner needs help
by vitor_b
Hello
Thank you for your reply.
I haven't tried your solution, since i created ant task, which generates mapping and wsdl files for me. With these files my web service (even with more complex input and output) works fine.
And i didn't have to add these tags. Maybe that was becouse of my version of jbossws (1.4) but I'm really not sure. I only had to create wscompile-config.xml file.
The problem described in my first post was occured becouse i created these files by my hand. I did it becouse i need to understand every aspect of creating these files.
And the last thing: i've seen webservice with extremally complex input and output, but someone else created it.
Best regards
vitor_b
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030545#4030545
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030545
17 years, 9 months
[JBossWS] - JSR181 EJB endpoint with root contextRoot
by joff
Hi, I've got an EJB as a JSR181 endpoint, and I want the service to be accessible via a URL like this: http://hostname:8080/MyExampleService?wsdl
This is what I have so far:
@WebService(targetNamespace = "http://example.com", name="MyExample", serviceName="MyExampleService")
| @SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL)
| @Stateless
| @PortComponent(contextRoot="/", urlPattern="/MyExampleService")
| public class MyExampleServiceImpl implements Remote, MyExampleService {
| ...
| }
However, deploying it like this results in it apparently (according to the /jbossws/services page) being deployed to http://hostname//MyExampleService?wsdl, but when I click on it, it's gives a 404 error.
Is there any way to successfully get the webservice to deploy in the root?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030427#4030427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030427
17 years, 9 months
[JBossWS] - How Do I See the XML?
by flindet
Hi,
I'm new to JBossWS. I'm using JBossWS 1.2.0.SP1, installed into JBoss AS 4.0.5.
I've created an SEI Document/Wrapped web service (unless I'm confused). I have unit tests that prove that my web service is working. It's a very simple web service based heavily on the "echo" example included with JBossWS.
It's my understanding from reading the documentation that somehow JBossWS is converting between Java objects and XML, presumably via JAXB.
anonymous wrote : JAX-WS simplifies the development model for a web service endpoint a great deal. In short, an endpoint implementation bean is annotated with JAX-WS annotations and deployed to the server. The server automatically generates and publishes the abstract contract (i.e. wsdl+schema) for client consumption. All marshalling/unmarshalling is delegated to JAXB
I'd like to see the XML that's theoretically being generated and passed along the wire so that I can 1) confirm it matches the schema I expect and 2) better understand how this is all working.
Ideally, I'd also like to have a unit test that looks at the raw XML because my expected client will not have JAXB, and will probably be in a .NET environment.
None of the code that I wrote invokes an Unmarshaller. I'm assuming this is magically done for me.
Can anyone shed some light and help me learn where I'm confused? Thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030366#4030366
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030366
17 years, 9 months