Hi
File ObjectFactory.java is generated and used by Jaxb datadinding, so
you can read a little more about it on any jaxb related page. But in
general you can just accept it is there :).
About testing with junits:
You can use different approaches depends on whats parts you want to test.
1. You can create webservice using XFire API and then use provided
method "invodeService" with xml request as parameter ( such request
can be prepared using e.g soapUi tool ). Result can be checked against
XPath expressions with assertValid("//e:echoInt", result) method
Junit sample : org.codehaus.xfire.aegis.type.xml.JDOMDocumentTest
2. You can create webservice like above ( using API ) and run
embedded http server with such service. Then you can execute generated
code ( from e.g. XFire plugin ) to call that service (but generated
code must by in the same project, not separated one )
Junit sample : org.codehaus.xfire.jaxb2.PictureServiceTest
Of course there are other possibilities but these two sample should
give you an idea what can an by done :)
On 9/18/07, srinivas kamisetty <[EMAIL PROTECTED]> wrote:
> Hello All,
> I am new to xFire and making good progress. I have been doing lot of reading
> few tutorials on the web. During the weekend, I managed create web serivice
> Echo as listed in the document. After few frustating hours I got it working
> and can see wsdl. Now I wanted to test this. I did following steps.
>
> I created a new and seperate project in Eclipse and generated
> EchoClient.java, EchoImpl.java, EchoPortType.java besides Echo.java,
> EchoResponse.java, ObjectFactory.java and packageinfo.java (I am not sure
> what the purpose of the these last 4 files yet) with xFire plugin.
First of all i
>Now I am
> sure I was able to generate wsdl how do check it to see that it is working .
> My question is. I am not still sure how do I check my service is working
> from this new project. How can I use these files to see it working like
> having Echo to my console etc. What is the purpose of these files.
>
> If someone can guide me in the right direction, I will appreciate it very
> much.
>
> Regards,
> Srini
>
>
> ________________________________
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games.
>
>
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email