[prev in list] [next in list] [prev in thread] [next in thread]
List: axis-c-user
Subject: Access Violation in Call-->invoke() method
From: "Cid, Jose" <Jose.Cid () avocent ! com>
Date: 2005-02-19 1:21:44
Message-ID: 4821D5B6CD3C1B4880E6E94C6E70913ED8EB59 () sun-email ! corp ! avocent ! com
[Download RAW message or body]
Hello again,
I have installed axis c++ 1.5 and axis java server 1_2RC2 under tomcat
4.1.30.
I have the following wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="urn:simpleTest" targetNamespace="urn:simpleTest"
xmlns:tns="urn:simpleTest"
xmlns:typens="urn:simpleTest"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:impl="urn:simpleTest"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<!-- Type Declarations -->
<!-- Message Declarations -->
<message name="authenticateUserRequest">
<part name="userName" type="xsd:string"/>
<part name="userPassword" type="xsd:string"/>
</message>
<message name="authenticateUserResponse">
<part name="authenticateReturn" type="xsd:string"/>
</message>
<!-- Port Type Declarations -->
<portType name="SimpleTestPortTypes">
<operation name="authenticateUser" parameterOrder="userName
userPassword">
<input message="tns:authenticateUserRequest"/>
<output message="tns:authenticateUserResponse"/>
</operation>
</portType>
<!-- Binding Declarations -->
<binding name="SimpleTestSoapBinding" type="tns:SimpleTestPortTypes">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="authenticateUser">
<soap:operation soapAction="SimpleTestPortTypes#authenticateUser"/>
<input name="authenticateUserRequest">
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:simpleTest"
use="encoded"/>
</input>
<output name="authenticateUserResponse">
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:SonicAdminWS"
use="encoded"/>
</output>
</operation>
</binding>
<!-- Service Declaration -->
<service name="SimpleTestService">
<port binding="tns:SimpleTestSoapBinding" name="SimpleTestPortTypes">
<soap:address
location="http://sun-josecid:8080/axis/services/SimpleTestPortTypes"/>
</port>
</service>
</definitions>
Have deployed the server side and created client side stubs in c++. My
client code is simple and the relevant part looks as follow:
SimpleTestPortTypes sa( endpoint, APTHTTP1_0 );
szReturn = sa.authenticateUser( "jose", "bogus");
When the service, authenticateUser(...), is called as above the code
generates an access violation. This happens during the invoke method of
the client stub impl:
if (AXIS_SUCCESS == m_pCall->invoke()) <--- Fails during this call
{
if(AXIS_SUCCESS == m_pCall->checkMessage("authenticateUserResponse",
"urn:simpleTest"))
{
Ret = m_pCall->getElementAsString("authenticateReturn", 0);
}
}
m_pCall->unInitialize();
return Ret;
When the service method is called with empty strings as parameters, ie.
authenticateUser( "", "" ), the call succeeds. I had the SoapMonitor
applet running to see if the request is being made and response. Does
any one have any idea what could be going on here? Am I missing some
files, configuration, etc..
Any help is appreciated
Thanks,
jose
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=013440901-19022005>Hello
again,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=013440901-19022005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=013440901-19022005>I have installed
axis c++ 1.5 and axis java server 1_2RC2 under tomcat
4.1.30.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=013440901-19022005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=013440901-19022005>I have the following
wsdl file:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=013440901-19022005></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=013440901-19022005>
<P><FONT face=Arial size=2><?xml version="1.0"
encoding="UTF-8"?></FONT></P>
<P><FONT face=Arial size=2><definitions name="urn:simpleTest"
targetNamespace="urn:simpleTest"</FONT></P>
<P><FONT face=Arial size=2>xmlns:tns="urn:simpleTest"</FONT></P>
<P><FONT face=Arial size=2>xmlns:typens="urn:simpleTest"</FONT></P>
<P><FONT face=Arial
size=2>xmlns:xsd="http://www.w3.org/2001/XMLSchema"</FONT></P>
<P><FONT face=Arial
size=2>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"</FONT></P>
<P><FONT face=Arial size=2>xmlns:impl="urn:simpleTest"</FONT></P>
<P><FONT face=Arial
size=2>xmlns="http://schemas.xmlsoap.org/wsdl/"></FONT></P>
<P><FONT face=Arial size=2><!-- Type Declarations --></FONT></P>
<P><FONT face=Arial size=2><!-- Message Declarations --></FONT></P>
<P><FONT face=Arial size=2><message
name="authenticateUserRequest"></FONT></P>
<P><FONT face=Arial size=2><part name="userName"
type="xsd:string"/></FONT></P>
<P><FONT face=Arial size=2><part name="userPassword"
type="xsd:string"/></FONT></P>
<P><FONT face=Arial size=2></message></FONT></P>
<P><FONT face=Arial size=2><message
name="authenticateUserResponse"></FONT></P>
<P><FONT face=Arial size=2><part name="authenticateReturn"
type="xsd:string"/></FONT></P>
<P><FONT face=Arial size=2></message></FONT></P>
<P><FONT face=Arial size=2><!-- Port Type Declarations --></FONT></P>
<P><FONT face=Arial size=2><portType
name="SimpleTestPortTypes"></FONT></P>
<P><FONT face=Arial size=2><operation name="authenticateUser"
parameterOrder="userName userPassword"></FONT></P>
<P><FONT face=Arial size=2><input
message="tns:authenticateUserRequest"/></FONT></P>
<P><FONT face=Arial size=2><output
message="tns:authenticateUserResponse"/></FONT></P>
<P><FONT face=Arial size=2></operation></FONT></P>
<P><FONT face=Arial size=2></portType></FONT></P>
<P><FONT face=Arial size=2><!-- Binding Declarations --></FONT></P>
<P><FONT face=Arial size=2><binding name="SimpleTestSoapBinding"
type="tns:SimpleTestPortTypes"></FONT></P>
<P><FONT face=Arial size=2><soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/></FONT></P>
<P><FONT face=Arial size=2><operation name="authenticateUser"></FONT></P>
<P><FONT face=Arial size=2><soap:operation
soapAction="SimpleTestPortTypes#authenticateUser"/></FONT></P>
<P><FONT face=Arial size=2><input
name="authenticateUserRequest"></FONT></P>
<P><FONT face=Arial size=2><soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"</FONT></P>
<P><FONT face=Arial size=2>namespace="urn:simpleTest"</FONT></P>
<P><FONT face=Arial size=2>use="encoded"/></FONT></P>
<P><FONT face=Arial size=2></input></FONT></P>
<P><FONT face=Arial size=2><output
name="authenticateUserResponse"></FONT></P>
<P><FONT face=Arial size=2><soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" </FONT></P>
<P><FONT face=Arial size=2>namespace="urn:SonicAdminWS"</FONT></P>
<P><FONT face=Arial size=2>use="encoded"/></FONT></P>
<P><FONT face=Arial size=2></output></FONT></P>
<P><FONT face=Arial size=2></operation></FONT></P>
<P><FONT face=Arial size=2></binding> </FONT></P>
<P><FONT face=Arial size=2><!-- Service Declaration --></FONT></P>
<P><FONT face=Arial size=2><service name="SimpleTestService"></FONT></P>
<P><FONT face=Arial size=2><port binding="tns:SimpleTestSoapBinding"
name="SimpleTestPortTypes"></FONT></P>
<P><FONT face=Arial size=2><soap:address
location="http://sun-josecid:8080/axis/services/SimpleTestPortTypes"/></FONT></P>
<P><FONT face=Arial size=2></port></FONT></P>
<P><FONT face=Arial size=2></service></FONT></P>
<P><FONT face=Arial size=2></definitions></FONT></P>
<P><FONT face=Arial size=2></FONT> </P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2>Have deployed the
server side and created client side stubs in c++. My client code is simple and
the relevant part looks as follow:</FONT></SPAN></P>
<P><SPAN class=013440901-19022005><FONT face=Arial
size=2> SimpleTestPortTypes sa( endpoint, APTHTTP1_0
);</FONT></SPAN></P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2>
</FONT></SPAN><SPAN class=013440901-19022005><FONT face=Arial size=2>szReturn =
sa.authenticateUser( "jose", "bogus");<BR></FONT></SPAN><SPAN
class=013440901-19022005></SPAN></P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2>When the service,
authenticateUser(...), is called as above the code generates an access
violation. This happens during the invoke method of the client stub
impl:</FONT></SPAN></P>
<P><SPAN class=013440901-19022005><FONT face=Arial
size=2></FONT></SPAN> </P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2> if
(AXIS_SUCCESS == m_pCall->invoke()) <---
Fails during this
call<BR> {<BR> if(AXIS_SUCCESS ==
m_pCall->checkMessage("authenticateUserResponse",
"urn:simpleTest"))<BR> {<BR> Ret =
m_pCall->getElementAsString("authenticateReturn",
0);<BR> }<BR> }<BR> m_pCall->unInitialize();<BR> return
Ret;<BR></FONT></SPAN></P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2>When the service
method is called with empty strings as parameters, ie. authenticateUser( "", ""
), the call succeeds. I had the SoapMonitor applet running to see if the request
is being made and response. Does any one have any idea what could be going on
here? Am I missing some files, configuration, etc.. </FONT></SPAN></P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2>Any help is
appreciated</FONT></SPAN></P>
<P><FONT face=Arial><FONT size=2><SPAN
class=013440901-19022005>Thanks,</SPAN></FONT></FONT></P>
<P><FONT face=Arial><FONT size=2><SPAN class=013440901-19022005>jose</SPAN><SPAN
class=013440901-19022005></P></SPAN></FONT></FONT></SPAN></FONT></DIV></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic