[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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT><SPAN class=013440901-19022005>
<P><FONT face=Arial size=2>&lt;?xml version="1.0" 
encoding="UTF-8"?&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;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/"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;!-- Type Declarations --&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;!-- Message Declarations --&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;message 
name="authenticateUserRequest"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;part name="userName" 
type="xsd:string"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;part name="userPassword" 
type="xsd:string"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/message&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;message 
name="authenticateUserResponse"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;part name="authenticateReturn" 
type="xsd:string"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/message&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;!-- Port Type Declarations --&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;portType 
name="SimpleTestPortTypes"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;operation name="authenticateUser" 
parameterOrder="userName userPassword"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;input 
message="tns:authenticateUserRequest"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;output 
message="tns:authenticateUserResponse"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/operation&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/portType&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;!-- Binding Declarations --&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;binding name="SimpleTestSoapBinding" 
type="tns:SimpleTestPortTypes"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;soap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;operation name="authenticateUser"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;soap:operation 
soapAction="SimpleTestPortTypes#authenticateUser"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;input 
name="authenticateUserRequest"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;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"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/input&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;output 
name="authenticateUserResponse"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;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"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/output&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/operation&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/binding&gt; </FONT></P>
<P><FONT face=Arial size=2>&lt;!-- Service Declaration --&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;service name="SimpleTestService"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;port binding="tns:SimpleTestSoapBinding" 
name="SimpleTestPortTypes"&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;soap:address 
location="http://sun-josecid:8080/axis/services/SimpleTestPortTypes"/&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/port&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/service&gt;</FONT></P>
<P><FONT face=Arial size=2>&lt;/definitions&gt;</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;&nbsp;SimpleTestPortTypes sa( endpoint, APTHTTP1_0 
);</FONT></SPAN></P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2>&nbsp; 
</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>&nbsp;</P>
<P><SPAN class=013440901-19022005><FONT face=Arial size=2>&nbsp;&nbsp;if 
(AXIS_SUCCESS == m_pCall-&gt;invoke())&nbsp;&nbsp; &lt;---&nbsp; 
Fails&nbsp;during this 
call<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if(AXIS_SUCCESS == 
m_pCall-&gt;checkMessage("authenticateUserResponse", 
"urn:simpleTest"))<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;Ret = 
m_pCall-&gt;getElementAsString("authenticateReturn", 
0);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;m_pCall-&gt;unInitialize();<BR>&nbsp;&nbsp;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