[
https://issues.apache.org/jira/browse/CXF-2438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757593#action_12757593
]
Benson Margulies commented on CXF-2438:
---------------------------------------
According to Dan Kulp:
I would say that it invalid, at least for soap. The WSI-BP specifically
says:
R2204 A document-literal binding in a DESCRIPTION MUST refer, in each of its
soapbind:body element(s), only to wsdl:part element(s) that have been defined
using the element attribute.
and
R2203 An rpc-literal binding in a DESCRIPTION MUST refer, in its
soapbind:body element(s), only to wsdl:part element(s) that have been defined
using the type attribute.
In your case, it's not defined by type or element, and thus is not valid for
rpc/lit or doc/lit.
Thus, I would say throwing an exception saying this is invalid is an
appropriate thing to do.
Dan
> NPE creating dynamic client
> ---------------------------
>
> Key: CXF-2438
> URL: https://issues.apache.org/jira/browse/CXF-2438
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Ubuntu Linux 9.04
> java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
> Reporter: Walter MourĂ£o
> Priority: Blocker
> Fix For: 2.3
>
> Attachments: wsdl.xml
>
>
> The following code generates the NPE:
> DynamicClientFactory dcf = DynamicClientFactory.newInstance();
> Client client = dcf.createClient(new
> URL("http://hidroweb.ana.gov.br/fcthservices/FCTH.asmx?WSDL"),new
> QName("http://www.ana.gov.br","FCTHService"), new
> QName("http://www.ana.gov.br","FCTHServiceSoap"));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.