cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean O'Callaghan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1475) Dynamic client invocation places argument in soap header
Date Tue, 03 Feb 2009 14:25:59 GMT

    [ https://issues.apache.org/jira/browse/CXF-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669967#action_12669967
] 

Sean O'Callaghan commented on CXF-1475:
---------------------------------------

Have reproduced the problem, debugging into the code to see where the problem lies.

> Dynamic client invocation places argument in soap header
> --------------------------------------------------------
>
>                 Key: CXF-1475
>                 URL: https://issues.apache.org/jira/browse/CXF-1475
>             Project: CXF
>          Issue Type: Bug
>          Components: Soap Binding
>    Affects Versions: 2.0.4
>         Environment: Windows XP SP2, Java 1.6, generated web service from http://www.xignite.com/xNews.asmx?WSDL
>            Reporter: Robert Rapant
>            Assignee: Sean O'Callaghan
>
> 			DynamicClientFactory dcf = DynamicClientFactory.newInstance();
> 			Client client = dcf.createClient("file:src/test/xNews.wsdl");
> 			Object[] res = client.invoke("GetStockHeadlines", "MSFT", 3);
> produces: 
> 	<soap:Envelope
> 		xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> 		<soap:Header>
> 			<Header xmlns:ns3="http://www.w3.org/2001/XMLSchema"
> 				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 				xmlns="http://www.xignite.com/services/" xsi:type="ns3:int">3
> 			</Header>
> 		</soap:Header>
> 		<soap:Body>
> 			<ns1:GetStockHeadlines
> 				xmlns:ns1="http://www.xignite.com/services/">
> 				<Symbols xmlns="http://www.xignite.com/services/">
> 					MSFT
> 				</Symbols>
> 			</ns1:GetStockHeadlines>
> 		</soap:Body>
> 	</soap:Envelope>
> exception:
> Server was unable to read request. --> There is an error in XML document (1, 85).
--> The specified type was not recognized: name='i
> nt', namespace='http://www.w3.org/2001/XMLSchema', at &lt;Header xmlns='http://www.xignite.com/services/'&gt;.
> In contrast, the direct manner of invocation below works fine:
> 			XigniteNews newsService = new XigniteNews();
> 			XigniteNewsSoap soap = newsService.getXigniteNewsSoap();
> 			ArrayOfStockNews newsArray = soap.getStockHeadlines("MSFT", 3);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message