[JBoss JIRA] Updated: (JBWS-434) Support sequences of anys
by Heiko Braun (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-434?page=all ]
Heiko Braun updated JBWS-434:
-----------------------------
Fix Version/s: jbossws-1.0.5
(was: jbossws-1.0.6)
> Support sequences of anys
> -------------------------
>
> Key: JBWS-434
> URL: http://jira.jboss.com/jira/browse/JBWS-434
> Project: JBoss Web Services
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: jaxrpc
> Reporter: Thomas Diesler
> Assigned To: Alexey Loubyansky
> Priority: Critical
> Fix For: jbossws-1.0.5
>
>
> Francisco wrote:
> Are there plans for supporting sequences of anys? One of my grad students is working on WS transactions, which use things like
> <xsd:sequence>
> <xsd:any namespace="##other" processContents="lax"
> minOccurs="0" maxOccurs="unbounded"/>
> </xsd:sequence>
> His work should help us to get JBWS-36 done. I expect him to implement at least WS-Coordination and WS-AtomicTransaction, which should be (mostly) WS layers over the existing DTM code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 4 months
[JBoss JIRA] Created: (JBWS-1390) Duplicate names in ejb 3.0 exposed web service generated wsdl
by Sureshbabu Thyvalappil (JIRA)
Duplicate names in ejb 3.0 exposed web service generated wsdl
-------------------------------------------------------------
Key: JBWS-1390
URL: http://jira.jboss.com/jira/browse/JBWS-1390
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jbossws-1.0.4
Environment: JBOSS 4.0.4 GA patch1 installer with ejb3 option. Exposed ejb 3.0 as web service.
Reporter: Sureshbabu Thyvalappil
I've exposed a ejb 3.0 as a web service using annotations in JBOSS 4.0.4 patch1 with ejb 3.0.
Look for SortingInfo definition in the wsdl which appears 2 times.
This is a real issue for us at this point. SortingInfo which appears 2 times in wsdl is returned by getReport() method also included in ReportColumnsBean.
The ejb 3.0 class is as follows:
@WebService (name="ReportServiceEndPoint",
targetNamespace="http://tsa/services", serviceName="ReportService1")
@SOAPBinding (style=SOAPBinding.Style.RPC)
//@PortComponent(transportGuarantee="NONE",contextRoot="/ReportService1",urlPattern="/ReportService1")
@Stateless
//@HandlerChain(name = "ReportServiceEndPoint_handlerChain", file = "file://localhost/home/suresh/temp/ReportServiceEndPoint_handler.xml")
public class ReportService1 implements Report
{
@WebMethod
@TransactionAttribute (javax.ejb.TransactionAttributeType.SUPPORTS)
public SortingInfo getReport () throws ServiceException
{
SortingInfo sortingInfo = new SortingInfo();
//sortingInfo.setSortingType(SortingTypes.ASC);
//sortingInfo.setWeekType(WeekEnumTypes.Monday);
return sortingInfo;
}
@WebMethod
@TransactionAttribute (javax.ejb.TransactionAttributeType.SUPPORTS)
public ReportColumnsBean getReportColumnsBean(int[] accounts) throws java.rmi.RemoteException
{
System.out.println("IN getReportColumnsBean");
ReportColumnsBean rb = new ReportColumnsBean();
return rb;
}
}
and definition of SortingInfo.java and ReportColumnsBean.java are below.
public class SortingInfo implements java.io.Serializable
{
public SortingInfo()
{
}
/* Suresh Comment
public SortingTypes getSortingType()
{
return sortingType;
}
public void setSortingType(SortingTypes aSortingType)
{
sortingType = aSortingType;
}
*/
public String getName()
{
return theName;
}
public void setName(String aName)
{
theName = aName;
}
private String theName = null;
}
public class ReportColumnsBean implements java.io.Serializable
{
public ReportColumnsBean()
{
}
public ColumnInfo[] getColumns()
{ return theColumns; }
public void setColumns(ColumnInfo[] aColumns)
{
theColumns = aColumns;
}
public ProductInfo[] getProducts()
{ return theProducts; }
public void setProducts(ProductInfo[] aProducts)
{
theProducts = aProducts;
}
public SortingInfo[] getSorting()
{ return theSorting; }
public void setSorting(SortingInfo[] aSorting)
{
theSorting = aSorting;
}
private ColumnInfo[] theColumns;
private ProductInfo[] theProducts;
private SortingInfo[] theSorting;
}
Here is the wsdl...
-
-
<definitions name="ReportService1" targetNamespace="http://tsa/services">
-
<types>
-
<schema elementFormDefault="qualified" targetNamespace="http://tsa/services">
<import namespace="http://facade.tsa.com/jaws"/>
-
<complexType name="ReportColumnsBean">
-
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="columns" nillable="true" type="ns2:ColumnInfo"/>
<element maxOccurs="unbounded" minOccurs="0" name="products" nillable="true" type="ns2:ProductInfo"/>
<element maxOccurs="unbounded" minOccurs="0" name="sorting" nillable="true" type="ns2:SortingInfo"/>
</sequence>
</complexType>
-
<complexType name="ServiceException">
-
<sequence>
<element name="errorString" nillable="true" type="string"/>
</sequence>
</complexType>
-
<complexType name="SortingInfo">
-
<sequence>
<element name="name" nillable="true" type="string"/>
</sequence>
</complexType>
-
<complexType name="int.Array">
-
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="value" type="int"/>
</sequence>
</complexType>
<element name="ServiceException" type="tns:ServiceException"/>
</schema>
-
<schema elementFormDefault="qualified" targetNamespace="http://facade.tsa.com/jaws">
<import namespace="http://tsa/services"/>
-
<complexType name="ColumnInfo">
-
<sequence>
<element name="id" type="int"/>
<element name="name" nillable="true" type="string"/>
</sequence>
</complexType>
-
<complexType name="ProductInfo">
-
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="ids" type="int"/>
<element name="name" nillable="true" type="string"/>
</sequence>
</complexType>
-
<complexType name="SortingInfo">
-
<sequence>
<element name="name" nillable="true" type="string"/>
</sequence>
</complexType>
</schema>
</types>
-
<message name="ReportServiceEndPoint_getReportResponse">
<part name="result" type="tns:SortingInfo"/>
</message>
<message name="ReportServiceEndPoint_getReport"/>
-
<message name="ReportServiceEndPoint_getReportColumnsBeanResponse">
<part name="result" type="tns:ReportColumnsBean"/>
</message>
-
<message name="ReportServiceEndPoint_getReportColumnsBean">
<part name="int_1" type="tns:int.Array"/>
</message>
-
<message name="ServiceException">
<part element="tns:ServiceException" name="ServiceException"/>
</message>
-
<portType name="ReportServiceEndPoint">
-
<operation name="getReport">
<input message="tns:ReportServiceEndPoint_getReport"/>
<output message="tns:ReportServiceEndPoint_getReportResponse"/>
<fault message="tns:ServiceException" name="ServiceException"/>
</operation>
-
<operation name="getReportColumnsBean" parameterOrder="int_1">
<input message="tns:ReportServiceEndPoint_getReportColumnsBean"/>
<output message="tns:ReportServiceEndPoint_getReportColumnsBeanResponse"/>
</operation>
</portType>
-
<binding name="ReportServiceEndPointBinding" type="tns:ReportServiceEndPoint">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
-
<operation name="getReport">
<soap:operation soapAction=""/>
-
<input>
<soap:body namespace="http://tsa/services" use="literal"/>
</input>
-
<output>
<soap:body namespace="http://tsa/services" use="literal"/>
</output>
-
<fault name="ServiceException">
<soap:fault name="ServiceException" use="literal"/>
</fault>
</operation>
-
<operation name="getReportColumnsBean">
<soap:operation soapAction=""/>
-
<input>
<soap:body namespace="http://tsa/services" use="literal"/>
</input>
-
<output>
<soap:body namespace="http://tsa/services" use="literal"/>
</output>
</operation>
</binding>
-
<service name="ReportService1">
-
<port binding="tns:ReportServiceEndPointBinding" name="ReportServiceEndPointPort">
<soap:address location="http://whittier:8080/ReportService1/ReportService1"/>
</port>
</service>
</definitions>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 4 months
[JBoss JIRA] Created: (JBWS-1400) wstools cannot handler <xs:include schemaLocation>
by Thomas Diesler (JIRA)
wstools cannot handler <xs:include schemaLocation>
--------------------------------------------------
Key: JBWS-1400
URL: http://jira.jboss.com/jira/browse/JBWS-1400
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: wstools
Reporter: Thomas Diesler
Assigned To: Jason T. Greene
Fix For: jbossws-2.0.0
Exception in thread "main" java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName
at javax.xml.namespace.QName.<init>(Unknown Source)
at javax.xml.namespace.QName.<init>(Unknown Source)
at org.jboss.ws.tools.XSDTypeToJava.handleAttributes(XSDTypeToJava.java:418)
at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:198)
at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:153)
at org.jboss.ws.tools.XSDTypeToJava.createVARforXSElementDeclaration(XSDTypeToJava.java:632)
at org.jboss.ws.tools.XSDTypeToJava.createVARsForElements(XSDTypeToJava.java:519)
at org.jboss.ws.tools.XSDTypeToJava.createVARsforXSParticle(XSDTypeToJava.java:446)
at org.jboss.ws.tools.XSDTypeToJava.getVARList(XSDTypeToJava.java:248)
at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:153)
at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:113)
at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:497)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 4 months
[JBoss JIRA] Commented: (JBWS-1260) exception when creating client-artifacts with unwrap enabled
by Darran Lofthouse (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1260?page=comments#action_12347600 ]
Darran Lofthouse commented on JBWS-1260:
----------------------------------------
Working branch for this issue - https://svn.jboss.org/repos/jbossws/branches/dlofthouse/JBWS-1260
Have created tests for 6 scenarios to test the handling of unwraping parameters.
Of the 6 scenarios the first two (A and B) are failing with the error reported here.
One (D) is generating an invalid SEI for the WSDL.
Two are failing with a different error (E and F)
local part cannot be "null" when creating a QName
java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName
at javax.xml.namespace.QName.<init>(Unknown Source)
at javax.xml.namespace.QName.<init>(Unknown Source)
at org.jboss.ws.tools.WSDLToJava.unwrapResponseParticles(WSDLToJava.java:316)
at org.jboss.ws.tools.WSDLToJava.unwrapResponse(WSDLToJava.java:289)
at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:540)
at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:342)
at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:486)
at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:518)
at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:161)
All 6 WSDLs have been validated by running through wscompile.
> exception when creating client-artifacts with unwrap enabled
> ------------------------------------------------------------
>
> Key: JBWS-1260
> URL: http://jira.jboss.com/jira/browse/JBWS-1260
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: wstools
> Affects Versions: jbossws-1.0.3
> Reporter: Ole Matzura
> Assigned To: Darran Lofthouse
> Fix For: jbossws-1.0.5
>
>
> When creating client artifacts for http://www.webservicex.net/CurrencyConvertor.asmx?WSDL with unwrap set to true, the following error occurs:
> Exception in thread "main" org.jboss.ws.WSException: String passed is null
> at org.jboss.ws.metadata.wsdl.WSDLUtils.firstLetterUpperCase(WSDLUtils.java:453)
> at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:138)
> at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:114)
> at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:701)
> at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:694)
> at org.jboss.ws.tools.WSDLToJava.unwrapResponse(WSDLToJava.java:321)
> at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:555)
> at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:372)
> at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:512)
> at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:534)
> at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:188)
> at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:329)
> at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
> at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
> at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
> my wstools config is as follows:
> <configuration xmlns="http://www.jboss.org/jbossws-tools">
> <global>
> <package-namespace namespace="http://www.webserviceX.NET/" package="test"/>
> </global>
> <wsdl-java file="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL" unwrap="true">
> <mapping file="CurrencyConverter-mapping.xml"/>
> </wsdl-java>
> </configuration>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 4 months
[JBoss JIRA] Commented: (JBWS-1260) exception when creating client-artifacts with unwrap enabled
by Darran Lofthouse (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1260?page=comments#action_12347480 ]
Darran Lofthouse commented on JBWS-1260:
----------------------------------------
Also see JBWS-1387 for another WSDL that also reproduces this issue.
> exception when creating client-artifacts with unwrap enabled
> ------------------------------------------------------------
>
> Key: JBWS-1260
> URL: http://jira.jboss.com/jira/browse/JBWS-1260
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: wstools
> Affects Versions: jbossws-1.0.3
> Reporter: Ole Matzura
> Assigned To: Darran Lofthouse
> Fix For: jbossws-1.0.5
>
>
> When creating client artifacts for http://www.webservicex.net/CurrencyConvertor.asmx?WSDL with unwrap set to true, the following error occurs:
> Exception in thread "main" org.jboss.ws.WSException: String passed is null
> at org.jboss.ws.metadata.wsdl.WSDLUtils.firstLetterUpperCase(WSDLUtils.java:453)
> at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:138)
> at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:114)
> at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:701)
> at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:694)
> at org.jboss.ws.tools.WSDLToJava.unwrapResponse(WSDLToJava.java:321)
> at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:555)
> at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:372)
> at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:512)
> at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:534)
> at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:188)
> at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:329)
> at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
> at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
> at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
> my wstools config is as follows:
> <configuration xmlns="http://www.jboss.org/jbossws-tools">
> <global>
> <package-namespace namespace="http://www.webserviceX.NET/" package="test"/>
> </global>
> <wsdl-java file="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL" unwrap="true">
> <mapping file="CurrencyConverter-mapping.xml"/>
> </wsdl-java>
> </configuration>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 4 months