axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Closed: (AXISCPP-956) Cannot call "delayed quotes" web service
Date Sat, 20 Jan 2007 04:42:30 GMT

     [ https://issues.apache.org/jira/browse/AXISCPP-956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

nadir amra closed AXISCPP-956.
------------------------------

       Resolution: Fixed
    Fix Version/s: current (nightly)

The axis client was ignoreing the namespace specified in the operations:

		<operation name='getQuote'>
			<soap:operation soapAction='urn:xmethods-delayed-quotes#getQuote'/>
			<input>
				<soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
			</input>
			<output>
				<soap:body use='encoded' namespace='urn:xmethods-delayed-quotes' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
			</output>
		</operation>

Instead, it was using the targetNamespace namespace.  I have fixed this for RPC path only.
 I do not think it affected Doc/literal path.   

I created a test case, NamespaceInBindingOperationsRpc.  

Note that for this specific WSDL, the response returned by the service does not match published
wsdl.  The WSDL defines 

	<message name='getQuoteResponse1'>
		<part name='Result' type='xsd:float'/>
	</message>

but the response returned by the web service is:

<n:getQuoteResponse xmlns:n='urn:xmethods-delayed-quotes'>
  <Result xsi:type='xsd:float'>99.45</Result>
</n:getQuoteResponse>

I did try the code against the rate service on the web site and it worked. 

> Cannot call "delayed quotes" web service
> ----------------------------------------
>
>                 Key: AXISCPP-956
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-956
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: WSDL processing - RPC
>    Affects Versions:  1.6 Beta
>         Environment: windows xp (sp2), vc++ 6
>            Reporter: Xie Bo
>             Fix For: current (nightly)
>
>         Attachments: axiscpp-request.txt, axiscpp-response.txt, AxisLogClient.txt, gSOAP-request.txt,
gSOAP-response.txt, xmethods-delayed-quotes.wsdl
>
>
> I tried to build SOAP C++ Windows Client to call "delayed quotes" web service, but failed.
Following are steps:
> 1. Generate .hpp/.cpp
> ----------
> E:\temp\TestAxis>java -classpath .\wsdl2ws.jar;.\commons-logging.jar;.\jaxrpc.ja
> r;.\saaj.jar;.\wsdl4j.jar;.\wsdl2ws.jar;.\axis.jar;.\commons-discovery.jar
> org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
> http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl
> -lc++ -sclient
> Code generation completed.
> ----------
> 2.  TestAxis.cpp
> ----------
> #include "stdafx.h"
> #include "StockQuotePortType.hpp"
> int main(int argc, char* argv[])
> {
>       StockQuotePortType s;
>       float f=s.getQuote("IBM");
>       printf("The quote is %f\n",f);
>       return 0;
> }
> ----------
> 3. When I debug the TestAxis project, it will throw an exception "Unhandled exception
in TestAxis.exe: 0xC0000005: Access Violation" in Line 62 of StockQuotePortType.cpp
> ------Line 62--
> if( AXIS_SUCCESS == m_pCall->checkMessage(
> "getQuoteResponse1","http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/"))
> -----------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message