You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "C. Brian Cox (JIRA)" <ji...@apache.org> on 2006/11/02 14:16:16 UTC
[jira] Created: (AXIS2-1581) Code generation problem with XMLBeans
Binding
Code generation problem with XMLBeans Binding
---------------------------------------------
Key: AXIS2-1581
URL: http://issues.apache.org/jira/browse/AXIS2-1581
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: codegen
Affects Versions: 1.1
Environment: Axis2 1.1 Snapshot from Oct 29th
JDK 1.5
Win2003 Server
Reporter: C. Brian Cox
This issue has been discussed in the following:
http://marc.theaimsgroup.com/?l=axis-user&m=116242601905531&w=2
--------------------------
When I generate the source code using the following parameters:
wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client
I receive the synchronous method:
/**
- Auto generated method signature
- @see com.ems.client.BookQuoteService#getBookPriceNonRobust
- @param param4
*/
public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
throws java.rmi.RemoteException
{
.
.
//Style is Doc.
.
.
}
Notice the exception is not the one defined in the wsdl. The source file InvalidIsbnFaultException.java is generated in the target directory with the stub though. Also, there is a comment which leads me to believe that codegen thinks the wsdl is doc/literal. These anomalies occur in both BookQuote.wsdl and BookQuote2.wsdl.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1581) Code generation problem with XMLBeans
Binding
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-1581:
------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> Code generation problem with XMLBeans Binding
> ---------------------------------------------
>
> Key: AXIS2-1581
> URL: https://issues.apache.org/jira/browse/AXIS2-1581
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Axis2 1.1 Snapshot from Oct 29th
> JDK 1.5
> Win2003 Server
> Reporter: C. Brian Cox
> Assigned To: Amila Chinthaka Suriarachchi
> Attachments: BookQuote2.wsdl
>
>
> This issue has been discussed in the following:
> http://marc.theaimsgroup.com/?l=axis-user&m=116242601905531&w=2
> --------------------------
> When I generate the source code using the following parameters:
> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client
> I receive the synchronous method:
> /**
> - Auto generated method signature
> - @see com.ems.client.BookQuoteService#getBookPriceNonRobust
> - @param param4
> */
> public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
> com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
> throws java.rmi.RemoteException
> {
> .
> .
>
> //Style is Doc.
> .
> .
> }
> Notice the exception is not the one defined in the wsdl. The source file InvalidIsbnFaultException.java is generated in the target directory with the stub though. Also, there is a comment which leads me to believe that codegen thinks the wsdl is doc/literal. These anomalies occur in both BookQuote.wsdl and BookQuote2.wsdl.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-1581) Code generation problem with XMLBeans
Binding
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-1581.
-------------------------------------------------
Resolution: Fixed
now it saves the correct wsdl to resource folder
> Code generation problem with XMLBeans Binding
> ---------------------------------------------
>
> Key: AXIS2-1581
> URL: https://issues.apache.org/jira/browse/AXIS2-1581
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Axis2 1.1 Snapshot from Oct 29th
> JDK 1.5
> Win2003 Server
> Reporter: C. Brian Cox
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Blocker
> Attachments: BookQuote2.wsdl
>
>
> This issue has been discussed in the following:
> http://marc.theaimsgroup.com/?l=axis-user&m=116242601905531&w=2
> --------------------------
> When I generate the source code using the following parameters:
> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client
> I receive the synchronous method:
> /**
> - Auto generated method signature
> - @see com.ems.client.BookQuoteService#getBookPriceNonRobust
> - @param param4
> */
> public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
> com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
> throws java.rmi.RemoteException
> {
> .
> .
>
> //Style is Doc.
> .
> .
> }
> Notice the exception is not the one defined in the wsdl. The source file InvalidIsbnFaultException.java is generated in the target directory with the stub though. Also, there is a comment which leads me to believe that codegen thinks the wsdl is doc/literal. These anomalies occur in both BookQuote.wsdl and BookQuote2.wsdl.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1581) Code generation problem with XMLBeans
Binding
Posted by "C. Brian Cox (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1581?page=all ]
C. Brian Cox updated AXIS2-1581:
--------------------------------
Attachment: BookQuote2.wsdl
Axis2 Standard wsdl located in: modules\xmlbeans\test-resources\BookQuote2.wsdl
> Code generation problem with XMLBeans Binding
> ---------------------------------------------
>
> Key: AXIS2-1581
> URL: http://issues.apache.org/jira/browse/AXIS2-1581
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Axis2 1.1 Snapshot from Oct 29th
> JDK 1.5
> Win2003 Server
> Reporter: C. Brian Cox
> Attachments: BookQuote2.wsdl
>
>
> This issue has been discussed in the following:
> http://marc.theaimsgroup.com/?l=axis-user&m=116242601905531&w=2
> --------------------------
> When I generate the source code using the following parameters:
> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client
> I receive the synchronous method:
> /**
> - Auto generated method signature
> - @see com.ems.client.BookQuoteService#getBookPriceNonRobust
> - @param param4
> */
> public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
> com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
> throws java.rmi.RemoteException
> {
> .
> .
>
> //Style is Doc.
> .
> .
> }
> Notice the exception is not the one defined in the wsdl. The source file InvalidIsbnFaultException.java is generated in the target directory with the stub though. Also, there is a comment which leads me to believe that codegen thinks the wsdl is doc/literal. These anomalies occur in both BookQuote.wsdl and BookQuote2.wsdl.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1581) Code generation problem with
XMLBeans Binding
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1581?page=comments#action_12446814 ]
Amila Chinthaka Suriarachchi commented on AXIS2-1581:
-----------------------------------------------------
I think you have switched the operation names and the parameters.
In your wsdl you have an operation called getBookPriceNonRobust as follows
<operation name="getBookPriceNonRobust">
<input message="mh:BookQuote_getBookPrice"/>
<output message="mh:BookQuote_getBookPriceResponse"/>
</operation>
and it's method signature is
public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
throws java.rmi.RemoteException
and for the other operation which has a fault message is,
public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceResponseDocument getBookPrice(
com.monson_haefel.www.jwsbook.bookquote.GetBookPriceDocument param6)
throws java.rmi.RemoteException
,com.monson_haefel.www.jwsbook.bookquote.InvalidIsbnFaultException{
So the method signatures generated are correct.
Please try with 1.1-RC2 release as well.
> Code generation problem with XMLBeans Binding
> ---------------------------------------------
>
> Key: AXIS2-1581
> URL: http://issues.apache.org/jira/browse/AXIS2-1581
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Axis2 1.1 Snapshot from Oct 29th
> JDK 1.5
> Win2003 Server
> Reporter: C. Brian Cox
> Attachments: BookQuote2.wsdl
>
>
> This issue has been discussed in the following:
> http://marc.theaimsgroup.com/?l=axis-user&m=116242601905531&w=2
> --------------------------
> When I generate the source code using the following parameters:
> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client
> I receive the synchronous method:
> /**
> - Auto generated method signature
> - @see com.ems.client.BookQuoteService#getBookPriceNonRobust
> - @param param4
> */
> public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
> com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
> throws java.rmi.RemoteException
> {
> .
> .
>
> //Style is Doc.
> .
> .
> }
> Notice the exception is not the one defined in the wsdl. The source file InvalidIsbnFaultException.java is generated in the target directory with the stub though. Also, there is a comment which leads me to believe that codegen thinks the wsdl is doc/literal. These anomalies occur in both BookQuote.wsdl and BookQuote2.wsdl.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1581) Code generation problem with XMLBeans
Binding
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe updated AXIS2-1581:
-------------------------------------
Priority: Blocker (was: Major)
> Code generation problem with XMLBeans Binding
> ---------------------------------------------
>
> Key: AXIS2-1581
> URL: https://issues.apache.org/jira/browse/AXIS2-1581
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Axis2 1.1 Snapshot from Oct 29th
> JDK 1.5
> Win2003 Server
> Reporter: C. Brian Cox
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Blocker
> Attachments: BookQuote2.wsdl
>
>
> This issue has been discussed in the following:
> http://marc.theaimsgroup.com/?l=axis-user&m=116242601905531&w=2
> --------------------------
> When I generate the source code using the following parameters:
> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client
> I receive the synchronous method:
> /**
> - Auto generated method signature
> - @see com.ems.client.BookQuoteService#getBookPriceNonRobust
> - @param param4
> */
> public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
> com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
> throws java.rmi.RemoteException
> {
> .
> .
>
> //Style is Doc.
> .
> .
> }
> Notice the exception is not the one defined in the wsdl. The source file InvalidIsbnFaultException.java is generated in the target directory with the stub though. Also, there is a comment which leads me to believe that codegen thinks the wsdl is doc/literal. These anomalies occur in both BookQuote.wsdl and BookQuote2.wsdl.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1581) Code generation problem with
XMLBeans Binding
Posted by "C. Brian Cox (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1581?page=comments#action_12446938 ]
C. Brian Cox commented on AXIS2-1581:
-------------------------------------
You are correct. I obviously didn't pay enough attention to the method name and assumed they would be in the same order as defined in the wsdl. This assumption is apparently not true. However, do you agree the codegen is treating this wsdl as doc/literal? I generated the code and deployed the service for this wsdl which is clearly an RPC/literal. When I click on the service on the Axis2 Services page the auto-generated wsdl is doc/literal. Something seems wrong here?
> Code generation problem with XMLBeans Binding
> ---------------------------------------------
>
> Key: AXIS2-1581
> URL: http://issues.apache.org/jira/browse/AXIS2-1581
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Axis2 1.1 Snapshot from Oct 29th
> JDK 1.5
> Win2003 Server
> Reporter: C. Brian Cox
> Attachments: BookQuote2.wsdl
>
>
> This issue has been discussed in the following:
> http://marc.theaimsgroup.com/?l=axis-user&m=116242601905531&w=2
> --------------------------
> When I generate the source code using the following parameters:
> wsdl2java -uri BookQuote.wsdl -d xmlbeans -o client -p com.ems.client
> I receive the synchronous method:
> /**
> - Auto generated method signature
> - @see com.ems.client.BookQuoteService#getBookPriceNonRobust
> - @param param4
> */
> public com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustResponseDocument getBookPriceNonRobust(
> com.monson_haefel.www.jwsbook.bookquote.GetBookPriceNonRobustDocument param4)
> throws java.rmi.RemoteException
> {
> .
> .
>
> //Style is Doc.
> .
> .
> }
> Notice the exception is not the one defined in the wsdl. The source file InvalidIsbnFaultException.java is generated in the target directory with the stub though. Also, there is a comment which leads me to believe that codegen thinks the wsdl is doc/literal. These anomalies occur in both BookQuote.wsdl and BookQuote2.wsdl.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org