You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "bin chen (JIRA)" <ji...@apache.org> on 2010/06/21 09:58:23 UTC
[jira] Commented: (CXF-2438) NPE creating dynamic client
[ https://issues.apache.org/jira/browse/CXF-2438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880740#action_12880740 ]
bin chen commented on CXF-2438:
-------------------------------
hello all,
R2204 and R2203 only for rpc/lit or doc/lit.
but in this case, the part named Body doesn't belong to rpc/lit or doc/lit, it belongs to HTTP-GET binding I think.
Thus, I think this is valid.
...
<wsdl:message name="EstacoesHttpGetIn">
<wsdl:part name="strDataInicial" type="s:string" />
<wsdl:part name="strDataFinal" type="s:string" />
</wsdl:message>
<wsdl:message name="EstacoesHttpGetOut">
<wsdl:part name="Body" />
</wsdl:message>
<wsdl:portType name="FCTHServiceHttpGet">
<wsdl:operation name="Estacoes">
..
<wsdl:input message="tns:EstacoesHttpGetIn" />
<wsdl:output message="tns:EstacoesHttpGetOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="FCTHServiceHttpGet" type="tns:FCTHServiceHttpGet">
<http:binding verb="GET" />
<wsdl:operation name="Estacoes">
<http:operation location="/Estacoes" />
<wsdl:input>
<http:urlEncoded />
</wsdl:input>
<wsdl:output>
<mime:content part="Body" type="text/xml" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
...
did I miss something?
Thanks in advance,
> 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.