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 "Tim K (JIRA)" <ax...@ws.apache.org> on 2005/04/19 03:29:49 UTC
[jira] Created: (AXIS-1936) .NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
.NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
-------------------------------------------------------------------------------------------
Key: AXIS-1936
URL: http://issues.apache.org/jira/browse/AXIS-1936
Project: Axis
Type: Bug
Environment: Axis 1.2RC3 nightly
Reporter: Tim K
It seems that I have to edit the WSDL generated by java2wsdl in wrapped/literal mode by hand to add nillable="true" to
the response type, like this:
<element name="loginResponse">
<complexType>
<sequence name="loginResponseReturn" type="impl:ArrayOfNamedValue"
nillable="true"/>
</complexType>
</element>
Java2WSDL doesn't do this by default and .NET will no return a null object even though the return value is xsi:nil
Please see this bug for the WSDL: http://issues.apache.org/jira/browse/AXIS-1926
The link to the attachment is:
http://issues.apache.org/jira/secure/attachment/19629/RemoteLoginManager.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
[jira] Commented: (AXIS-1936) .NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1936?page=comments#action_63282 ]
Davanum Srinivas commented on AXIS-1936:
----------------------------------------
Reviewing the code, i see that createLiteralArrayElement in Types.java should be called. this adds "minOccurs=0 maxOccurs=unbounded"...can you zip up your sources so that i can run Java2WSDL?
thanks,
dims
> .NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
> -------------------------------------------------------------------------------------------
>
> Key: AXIS-1936
> URL: http://issues.apache.org/jira/browse/AXIS-1936
> Project: Axis
> Type: Bug
> Environment: Axis 1.2RC3 nightly
> Reporter: Tim K
>
> It seems that I have to edit the WSDL generated by java2wsdl in wrapped/literal mode by hand to add nillable="true" to
> the response type, like this:
> <element name="loginResponse">
> <complexType>
> <sequence name="loginResponseReturn" type="impl:ArrayOfNamedValue"
> nillable="true"/>
> </complexType>
> </element>
> Java2WSDL doesn't do this by default and .NET will no return a null object even though the return value is xsi:nil
> Please see this bug for the WSDL: http://issues.apache.org/jira/browse/AXIS-1926
> The link to the attachment is:
> http://issues.apache.org/jira/secure/attachment/19629/RemoteLoginManager.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
[jira] Commented: (AXIS-1936) .NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1936?page=comments#action_63287 ]
Davanum Srinivas commented on AXIS-1936:
----------------------------------------
Tim,
i was not asking for your *production* source...a fleshed out sample/test java classes that recreate the problem would be a good start.
thanks,
dims
> .NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
> -------------------------------------------------------------------------------------------
>
> Key: AXIS-1936
> URL: http://issues.apache.org/jira/browse/AXIS-1936
> Project: Axis
> Type: Bug
> Environment: Axis 1.2RC3 nightly
> Reporter: Tim K
>
> It seems that I have to edit the WSDL generated by java2wsdl in wrapped/literal mode by hand to add nillable="true" to
> the response type, like this:
> <element name="loginResponse">
> <complexType>
> <sequence name="loginResponseReturn" type="impl:ArrayOfNamedValue"
> nillable="true"/>
> </complexType>
> </element>
> Java2WSDL doesn't do this by default and .NET will no return a null object even though the return value is xsi:nil
> Please see this bug for the WSDL: http://issues.apache.org/jira/browse/AXIS-1926
> The link to the attachment is:
> http://issues.apache.org/jira/secure/attachment/19629/RemoteLoginManager.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
[jira] Commented: (AXIS-1936) .NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
Posted by "Tim K (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1936?page=comments#action_63283 ]
Tim K commented on AXIS-1936:
-----------------------------
I cannot post the source, I'm sure my company's legal department would have something to say about it. Sorry.
But I'm sure this can be reproduced easily by a method like this:
public NamedValue[] login(String a, String b, NamedValue[] options)
throws MyCustomException;
where:
NamedValue
{
String name;
Object value;
// getters + setters
}
MyCustomException extends Exception
{
// some custom int and String fields + getters for them
...
}
> .NET interop problem: generated WSDL should add nillable="true" for methodResponReturn type
> -------------------------------------------------------------------------------------------
>
> Key: AXIS-1936
> URL: http://issues.apache.org/jira/browse/AXIS-1936
> Project: Axis
> Type: Bug
> Environment: Axis 1.2RC3 nightly
> Reporter: Tim K
>
> It seems that I have to edit the WSDL generated by java2wsdl in wrapped/literal mode by hand to add nillable="true" to
> the response type, like this:
> <element name="loginResponse">
> <complexType>
> <sequence name="loginResponseReturn" type="impl:ArrayOfNamedValue"
> nillable="true"/>
> </complexType>
> </element>
> Java2WSDL doesn't do this by default and .NET will no return a null object even though the return value is xsi:nil
> Please see this bug for the WSDL: http://issues.apache.org/jira/browse/AXIS-1926
> The link to the attachment is:
> http://issues.apache.org/jira/secure/attachment/19629/RemoteLoginManager.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