Below the main client ...not yet added the rest of implementation...
IT crashes here...runtime error...
int main (int argc, char *argv[])
{
printf("\n Hello main");
PortType stub("http://device/xmlService");
printf("\n Hello main 2");
printf("\n Hello main 3");
//session s = openSession(stub,"admin","");
return 0;
}
Generated porttype class is below...
class PortType :public Stub
{
public:
STORAGE_CLASS_INFO PortType(const char* pchEndpointUri,
AXIS_PROTOCOL_TYPE eProtocol=APTHTTP1_1);
STORAGE_CLASS_INFO PortType();
public:
STORAGE_CLASS_INFO virtual ~PortType();
public:
}
am I missing something here to specify....
On Thu, Dec 4, 2008 at 6:16 AM, Nadir Amra <[EMAIL PROTECTED]> wrote:
> If endpoint in WSDL file is OK, then you can do
>
> PortType pt;
>
> If you want to specify another endpoint, then
>
>
> PortType pt("http:.....");
>
>
> Nadir Amra
>
>
> "ss ak" <[EMAIL PROTECTED]> wrote on 12/04/2008 12:18:00 AM:
>
> > [image removed]
> >
> > client runtime error
> >
> > ss ak
> >
> > to:
> >
> > axis-c-dev
> >
> > 12/04/2008 12:19 AM
> >
> > Please respond to "Apache AXIS C Developers List"
> >
> > I have created stubs using wsdl2ws.
> > It created a client stub implementation code.
> >
> > IN the client main,do we call this class...
> >
> > porttype varport = new porttype(endpoint);
> >
> > is this the way????
> >
> > the class created is
> >
> > class PortType :public Stub
> > {
> >
> > public:
> > STORAGE_CLASS_INFO PortType(const char* pchEndpointUri,
> > AXIS_PROTOCOL_TYPE eProtocol=APTHTTP1_1);
> > STORAGE_CLASS_INFO PortType();
> > //some methods here
> > }
> >
> > how do i set teh endpoint or do we call this class with new ????
> >
> > Please suggest me what should be done here....
> >
> > Thanks,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>