Object returned by exampleMethodName() webservice method cannot be named as 
ExampleMethodNameResponse
-----------------------------------------------------------------------------------------------------

                 Key: XFIRE-1039
                 URL: http://jira.codehaus.org/browse/XFIRE-1039
             Project: XFire
          Issue Type: Bug
    Affects Versions: 1.2.6
         Environment: ubuntu 6.10, libs: jaxb-api-2.0.jar, jaxb-impl-2.0.1.jar, 
jaxb-xjc-2.0.1.jar
            Reporter: Marek
            Assignee: Dan Diephouse


My first submission but with solution provided straight away;)
Object returned by exampleMethodName() webservice method cannot be named as 
ExampleMethodNameResponse.
Service is working fine, but when generating WSDL using e.g. ant task:

<taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask" 
                             classpathref="classpath"/>
                        <wsgen outputDirectory="@{destdir}" 
                          wsdl="@{wsdlloc}" package="@{package}" 
overwrite="true" />

"Error generating JAXB model" occurs.
I've noticed that element names and message names in WSDL are also generated 
with this convention: methodName + Response. I've renamed my response objects 
and now everything works fine. But if someone don't know about that issue - 
lots of trouble...
Someone might say that it's unlucky to use that names combination, but its 
quite common name convention in my application and possibly in other webapps.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to