Hi all. First of all excuse me for my bad english. Well, I'm trying to build a axis client using axis-cpp from a wsdl file (that I send attached Portal_UserService.wsdl). I have successfully created the C++ stubs using the WSDL2Ws utility. I send the bash script generar.sh which was used for invoking wsdl2Ws. The problem arrises when compiling the C++ files, in particular there are C++ errors in function Axis_DeSerialize_* of a complex type c++ stub (that I send attached UserSoap.hpp).
You will see that in Axis_DeSerialize_UserSoap static method, lines
like:
xsd__string* p_comments = (pIWSDZ->getElementAsString("comments",0));
param->comments = *p_comments;
that throws "cannot convert from char** to char*" g++ errors. These
errors can be fixed changing the latter segment of code to something
like:
xsd__string p_comments = (pIWSDZ->getElementAsString("comments",0));
param->comments = p_comments;
The same happens with the segments of code like:
xsd__dateTime* p_passwordExpirationDate =
(pIWSDZ->getElementAsDateTime("passwordExpirationDate",0));
param->passwordExpirationDate = *p_passwordExpirationDate;
that I have to change into this for compiling without errors:
xsd__dateTime* p_passwordExpirationDate =
(pIWSDZ->getElementAsDateTime("passwordExpirationDate",0));
param->passwordExpirationDate = p_passwordExpirationDate;
Nevertheless, I haven't tried if this changes give me correct code. I'm
using axis-c-1.6b-Linux-trace-bin and gcc 4.0.2.
Can somebody tell mi if this are known axis-cpp bugs?
Thanks in advance
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="urn:http.service.portal.liferay.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:http.service.portal.liferay.com" xmlns:intf="urn:http.service.portal.liferay.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://model.portal.liferay.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)--> <wsdl:types> <schema targetNamespace="urn:http.service.portal.liferay.com" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://model.portal.liferay.com"/> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOf_xsd_string"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]"/> </restriction> </complexContent> </complexType> <complexType name="ArrayOf_tns2_UserSoap"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:UserSoap[]"/> </restriction> </complexContent> </complexType> </schema> <schema targetNamespace="http://model.portal.liferay.com" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="urn:http.service.portal.liferay.com"/> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="UserSoap"> <sequence> <element name="active" type="xsd:boolean"/> <element name="agreedToTermsOfUse" type="xsd:boolean"/> <element name="comments" nillable="true" type="soapenc:string"/> <element name="companyId" nillable="true" type="soapenc:string"/> <element name="contactId" nillable="true" type="soapenc:string"/> <element name="createDate" nillable="true" type="xsd:dateTime"/> <element name="emailAddress" nillable="true" type="soapenc:string"/> <element name="failedLoginAttempts" type="xsd:int"/> <element name="greeting" nillable="true" type="soapenc:string"/> <element name="languageId" nillable="true" type="soapenc:string"/> <element name="lastLoginDate" nillable="true" type="xsd:dateTime"/> <element name="lastLoginIP" nillable="true" type="soapenc:string"/> <element name="loginDate" nillable="true" type="xsd:dateTime"/> <element name="loginIP" nillable="true" type="soapenc:string"/> <element name="modifiedDate" nillable="true" type="xsd:dateTime"/> <element name="password" nillable="true" type="soapenc:string"/> <element name="passwordEncrypted" type="xsd:boolean"/> <element name="passwordExpirationDate" nillable="true" type="xsd:dateTime"/> <element name="passwordReset" type="xsd:boolean"/> <element name="primaryKey" nillable="true" type="soapenc:string"/> <element name="resolution" nillable="true" type="soapenc:string"/> <element name="timeZoneId" nillable="true" type="soapenc:string"/> <element name="userId" nillable="true" type="soapenc:string"/> </sequence> </complexType> </schema> </wsdl:types> <wsdl:message name="deleteUserRequest"> <wsdl:part name="userId" type="xsd:string"/> </wsdl:message> <wsdl:message name="updateUserResponse"> <wsdl:part name="updateUserReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="getRoleUsersRequest"> <wsdl:part name="roleId" type="xsd:string"/> </wsdl:message> <wsdl:message name="getUserByEmailAddressResponse"> <wsdl:part name="getUserByEmailAddressReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="updatePortraitRequest"> <wsdl:part name="userId" type="xsd:string"/> <wsdl:part name="bytes" type="xsd:base64Binary"/> </wsdl:message> <wsdl:message name="hasGroupUserRequest"> <wsdl:part name="groupId" type="xsd:string"/> <wsdl:part name="userId" type="xsd:string"/> </wsdl:message> <wsdl:message name="setUserGroupUsersResponse"> </wsdl:message> <wsdl:message name="addRoleUsersRequest"> <wsdl:part name="roleId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="getUserByIdRequest"> <wsdl:part name="userId" type="xsd:string"/> </wsdl:message> <wsdl:message name="unsetGroupUsersResponse"> </wsdl:message> <wsdl:message name="addGroupUsersResponse"> </wsdl:message> <wsdl:message name="getRoleUsersResponse"> <wsdl:part name="getRoleUsersReturn" type="impl:ArrayOf_tns2_UserSoap"/> </wsdl:message> <wsdl:message name="hasGroupUserResponse"> <wsdl:part name="hasGroupUserReturn" type="xsd:boolean"/> </wsdl:message> <wsdl:message name="setUserGroupUsersRequest"> <wsdl:part name="userGroupId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="updateActiveRequest"> <wsdl:part name="userId" type="xsd:string"/> <wsdl:part name="active" type="xsd:boolean"/> </wsdl:message> <wsdl:message name="deleteRoleUserResponse"> </wsdl:message> <wsdl:message name="addUserRequest1"> <wsdl:part name="companyId" type="xsd:string"/> <wsdl:part name="autoUserId" type="xsd:boolean"/> <wsdl:part name="userId" type="xsd:string"/> <wsdl:part name="autoPassword" type="xsd:boolean"/> <wsdl:part name="password1" type="xsd:string"/> <wsdl:part name="password2" type="xsd:string"/> <wsdl:part name="passwordReset" type="xsd:boolean"/> <wsdl:part name="emailAddress" type="xsd:string"/> <wsdl:part name="locale" type="xsd:string"/> <wsdl:part name="firstName" type="xsd:string"/> <wsdl:part name="middleName" type="xsd:string"/> <wsdl:part name="lastName" type="xsd:string"/> <wsdl:part name="nickName" type="xsd:string"/> <wsdl:part name="prefixId" type="xsd:string"/> <wsdl:part name="suffixId" type="xsd:string"/> <wsdl:part name="male" type="xsd:boolean"/> <wsdl:part name="birthdayMonth" type="xsd:int"/> <wsdl:part name="birthdayDay" type="xsd:int"/> <wsdl:part name="birthdayYear" type="xsd:int"/> <wsdl:part name="jobTitle" type="xsd:string"/> <wsdl:part name="organizationId" type="xsd:string"/> <wsdl:part name="locationId" type="xsd:string"/> <wsdl:part name="sendEmail" type="xsd:boolean"/> </wsdl:message> <wsdl:message name="getUserByEmailAddressRequest"> <wsdl:part name="companyId" type="xsd:string"/> <wsdl:part name="emailAddress" type="xsd:string"/> </wsdl:message> <wsdl:message name="setGroupUsersRequest"> <wsdl:part name="groupId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="addUserGroupUsersResponse"> </wsdl:message> <wsdl:message name="updatePortraitResponse"> </wsdl:message> <wsdl:message name="deleteRoleUserRequest"> <wsdl:part name="roleId" type="xsd:string"/> <wsdl:part name="userId" type="xsd:string"/> </wsdl:message> <wsdl:message name="getUserByIdResponse"> <wsdl:part name="getUserByIdReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="unsetUserGroupUsersResponse"> </wsdl:message> <wsdl:message name="addUserResponse1"> <wsdl:part name="addUserReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="setRoleUsersResponse"> </wsdl:message> <wsdl:message name="addUserRequest"> <wsdl:part name="companyId" type="xsd:string"/> <wsdl:part name="autoUserId" type="xsd:boolean"/> <wsdl:part name="userId" type="xsd:string"/> <wsdl:part name="autoPassword" type="xsd:boolean"/> <wsdl:part name="password1" type="xsd:string"/> <wsdl:part name="password2" type="xsd:string"/> <wsdl:part name="passwordReset" type="xsd:boolean"/> <wsdl:part name="emailAddress" type="xsd:string"/> <wsdl:part name="locale" type="xsd:string"/> <wsdl:part name="firstName" type="xsd:string"/> <wsdl:part name="middleName" type="xsd:string"/> <wsdl:part name="lastName" type="xsd:string"/> <wsdl:part name="nickName" type="xsd:string"/> <wsdl:part name="prefixId" type="xsd:string"/> <wsdl:part name="suffixId" type="xsd:string"/> <wsdl:part name="male" type="xsd:boolean"/> <wsdl:part name="birthdayMonth" type="xsd:int"/> <wsdl:part name="birthdayDay" type="xsd:int"/> <wsdl:part name="birthdayYear" type="xsd:int"/> <wsdl:part name="jobTitle" type="xsd:string"/> <wsdl:part name="organizationId" type="xsd:string"/> <wsdl:part name="locationId" type="xsd:string"/> </wsdl:message> <wsdl:message name="unsetRoleUsersResponse"> </wsdl:message> <wsdl:message name="setGroupUsersResponse"> </wsdl:message> <wsdl:message name="deleteUserResponse"> </wsdl:message> <wsdl:message name="updateAgreedToTermsOfUseResponse"> <wsdl:part name="updateAgreedToTermsOfUseReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="updateActiveResponse"> <wsdl:part name="updateActiveReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="updatePasswordRequest"> <wsdl:part name="userId" type="xsd:string"/> <wsdl:part name="password1" type="xsd:string"/> <wsdl:part name="password2" type="xsd:string"/> <wsdl:part name="passwordReset" type="xsd:boolean"/> </wsdl:message> <wsdl:message name="getGroupUsersResponse"> <wsdl:part name="getGroupUsersReturn" type="impl:ArrayOf_tns2_UserSoap"/> </wsdl:message> <wsdl:message name="addGroupUsersRequest"> <wsdl:part name="groupId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="updateUserRequest"> <wsdl:part name="userId" type="xsd:string"/> <wsdl:part name="password" type="xsd:string"/> <wsdl:part name="emailAddress" type="xsd:string"/> <wsdl:part name="languageId" type="xsd:string"/> <wsdl:part name="timeZoneId" type="xsd:string"/> <wsdl:part name="greeting" type="xsd:string"/> <wsdl:part name="resolution" type="xsd:string"/> <wsdl:part name="comments" type="xsd:string"/> <wsdl:part name="firstName" type="xsd:string"/> <wsdl:part name="middleName" type="xsd:string"/> <wsdl:part name="lastName" type="xsd:string"/> <wsdl:part name="nickName" type="xsd:string"/> <wsdl:part name="prefixId" type="xsd:string"/> <wsdl:part name="suffixId" type="xsd:string"/> <wsdl:part name="male" type="xsd:boolean"/> <wsdl:part name="birthdayMonth" type="xsd:int"/> <wsdl:part name="birthdayDay" type="xsd:int"/> <wsdl:part name="birthdayYear" type="xsd:int"/> <wsdl:part name="smsSn" type="xsd:string"/> <wsdl:part name="aimSn" type="xsd:string"/> <wsdl:part name="icqSn" type="xsd:string"/> <wsdl:part name="jabberSn" type="xsd:string"/> <wsdl:part name="msnSn" type="xsd:string"/> <wsdl:part name="skypeSn" type="xsd:string"/> <wsdl:part name="ymSn" type="xsd:string"/> <wsdl:part name="jobTitle" type="xsd:string"/> <wsdl:part name="organizationId" type="xsd:string"/> <wsdl:part name="locationId" type="xsd:string"/> </wsdl:message> <wsdl:message name="unsetUserGroupUsersRequest"> <wsdl:part name="userGroupId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="setRoleUsersRequest"> <wsdl:part name="roleId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="hasRoleUserResponse"> <wsdl:part name="hasRoleUserReturn" type="xsd:boolean"/> </wsdl:message> <wsdl:message name="unsetRoleUsersRequest"> <wsdl:part name="roleId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="hasRoleUserRequest"> <wsdl:part name="roleId" type="xsd:string"/> <wsdl:part name="userId" type="xsd:string"/> </wsdl:message> <wsdl:message name="addRoleUsersResponse"> </wsdl:message> <wsdl:message name="updateAgreedToTermsOfUseRequest"> <wsdl:part name="userId" type="xsd:string"/> <wsdl:part name="agreedToTermsOfUse" type="xsd:boolean"/> </wsdl:message> <wsdl:message name="addUserResponse"> <wsdl:part name="addUserReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="getGroupUsersRequest"> <wsdl:part name="groupId" type="xsd:string"/> </wsdl:message> <wsdl:message name="addUserGroupUsersRequest"> <wsdl:part name="userGroupId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="updatePasswordResponse"> <wsdl:part name="updatePasswordReturn" type="tns1:UserSoap"/> </wsdl:message> <wsdl:message name="unsetGroupUsersRequest"> <wsdl:part name="groupId" type="xsd:string"/> <wsdl:part name="userIds" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:portType name="UserServiceSoap"> <wsdl:operation name="addGroupUsers" parameterOrder="groupId userIds"> <wsdl:input message="impl:addGroupUsersRequest" name="addGroupUsersRequest"/> <wsdl:output message="impl:addGroupUsersResponse" name="addGroupUsersResponse"/> </wsdl:operation> <wsdl:operation name="addRoleUsers" parameterOrder="roleId userIds"> <wsdl:input message="impl:addRoleUsersRequest" name="addRoleUsersRequest"/> <wsdl:output message="impl:addRoleUsersResponse" name="addRoleUsersResponse"/> </wsdl:operation> <wsdl:operation name="addUserGroupUsers" parameterOrder="userGroupId userIds"> <wsdl:input message="impl:addUserGroupUsersRequest" name="addUserGroupUsersRequest"/> <wsdl:output message="impl:addUserGroupUsersResponse" name="addUserGroupUsersResponse"/> </wsdl:operation> <wsdl:operation name="addUser" parameterOrder="companyId autoUserId userId autoPassword password1 password2 passwordReset emailAddress locale firstName middleName lastName nickName prefixId suffixId male birthdayMonth birthdayDay birthdayYear jobTitle organizationId locationId"> <wsdl:input message="impl:addUserRequest" name="addUserRequest"/> <wsdl:output message="impl:addUserResponse" name="addUserResponse"/> </wsdl:operation> <wsdl:operation name="addUser" parameterOrder="companyId autoUserId userId autoPassword password1 password2 passwordReset emailAddress locale firstName middleName lastName nickName prefixId suffixId male birthdayMonth birthdayDay birthdayYear jobTitle organizationId locationId sendEmail"> <wsdl:input message="impl:addUserRequest1" name="addUserRequest1"/> <wsdl:output message="impl:addUserResponse1" name="addUserResponse1"/> </wsdl:operation> <wsdl:operation name="deleteRoleUser" parameterOrder="roleId userId"> <wsdl:input message="impl:deleteRoleUserRequest" name="deleteRoleUserRequest"/> <wsdl:output message="impl:deleteRoleUserResponse" name="deleteRoleUserResponse"/> </wsdl:operation> <wsdl:operation name="deleteUser" parameterOrder="userId"> <wsdl:input message="impl:deleteUserRequest" name="deleteUserRequest"/> <wsdl:output message="impl:deleteUserResponse" name="deleteUserResponse"/> </wsdl:operation> <wsdl:operation name="getGroupUsers" parameterOrder="groupId"> <wsdl:input message="impl:getGroupUsersRequest" name="getGroupUsersRequest"/> <wsdl:output message="impl:getGroupUsersResponse" name="getGroupUsersResponse"/> </wsdl:operation> <wsdl:operation name="getRoleUsers" parameterOrder="roleId"> <wsdl:input message="impl:getRoleUsersRequest" name="getRoleUsersRequest"/> <wsdl:output message="impl:getRoleUsersResponse" name="getRoleUsersResponse"/> </wsdl:operation> <wsdl:operation name="getUserByEmailAddress" parameterOrder="companyId emailAddress"> <wsdl:input message="impl:getUserByEmailAddressRequest" name="getUserByEmailAddressRequest"/> <wsdl:output message="impl:getUserByEmailAddressResponse" name="getUserByEmailAddressResponse"/> </wsdl:operation> <wsdl:operation name="getUserById" parameterOrder="userId"> <wsdl:input message="impl:getUserByIdRequest" name="getUserByIdRequest"/> <wsdl:output message="impl:getUserByIdResponse" name="getUserByIdResponse"/> </wsdl:operation> <wsdl:operation name="hasGroupUser" parameterOrder="groupId userId"> <wsdl:input message="impl:hasGroupUserRequest" name="hasGroupUserRequest"/> <wsdl:output message="impl:hasGroupUserResponse" name="hasGroupUserResponse"/> </wsdl:operation> <wsdl:operation name="hasRoleUser" parameterOrder="roleId userId"> <wsdl:input message="impl:hasRoleUserRequest" name="hasRoleUserRequest"/> <wsdl:output message="impl:hasRoleUserResponse" name="hasRoleUserResponse"/> </wsdl:operation> <wsdl:operation name="setGroupUsers" parameterOrder="groupId userIds"> <wsdl:input message="impl:setGroupUsersRequest" name="setGroupUsersRequest"/> <wsdl:output message="impl:setGroupUsersResponse" name="setGroupUsersResponse"/> </wsdl:operation> <wsdl:operation name="setRoleUsers" parameterOrder="roleId userIds"> <wsdl:input message="impl:setRoleUsersRequest" name="setRoleUsersRequest"/> <wsdl:output message="impl:setRoleUsersResponse" name="setRoleUsersResponse"/> </wsdl:operation> <wsdl:operation name="setUserGroupUsers" parameterOrder="userGroupId userIds"> <wsdl:input message="impl:setUserGroupUsersRequest" name="setUserGroupUsersRequest"/> <wsdl:output message="impl:setUserGroupUsersResponse" name="setUserGroupUsersResponse"/> </wsdl:operation> <wsdl:operation name="unsetGroupUsers" parameterOrder="groupId userIds"> <wsdl:input message="impl:unsetGroupUsersRequest" name="unsetGroupUsersRequest"/> <wsdl:output message="impl:unsetGroupUsersResponse" name="unsetGroupUsersResponse"/> </wsdl:operation> <wsdl:operation name="unsetRoleUsers" parameterOrder="roleId userIds"> <wsdl:input message="impl:unsetRoleUsersRequest" name="unsetRoleUsersRequest"/> <wsdl:output message="impl:unsetRoleUsersResponse" name="unsetRoleUsersResponse"/> </wsdl:operation> <wsdl:operation name="unsetUserGroupUsers" parameterOrder="userGroupId userIds"> <wsdl:input message="impl:unsetUserGroupUsersRequest" name="unsetUserGroupUsersRequest"/> <wsdl:output message="impl:unsetUserGroupUsersResponse" name="unsetUserGroupUsersResponse"/> </wsdl:operation> <wsdl:operation name="updateActive" parameterOrder="userId active"> <wsdl:input message="impl:updateActiveRequest" name="updateActiveRequest"/> <wsdl:output message="impl:updateActiveResponse" name="updateActiveResponse"/> </wsdl:operation> <wsdl:operation name="updateAgreedToTermsOfUse" parameterOrder="userId agreedToTermsOfUse"> <wsdl:input message="impl:updateAgreedToTermsOfUseRequest" name="updateAgreedToTermsOfUseRequest"/> <wsdl:output message="impl:updateAgreedToTermsOfUseResponse" name="updateAgreedToTermsOfUseResponse"/> </wsdl:operation> <wsdl:operation name="updatePassword" parameterOrder="userId password1 password2 passwordReset"> <wsdl:input message="impl:updatePasswordRequest" name="updatePasswordRequest"/> <wsdl:output message="impl:updatePasswordResponse" name="updatePasswordResponse"/> </wsdl:operation> <wsdl:operation name="updatePortrait" parameterOrder="userId bytes"> <wsdl:input message="impl:updatePortraitRequest" name="updatePortraitRequest"/> <wsdl:output message="impl:updatePortraitResponse" name="updatePortraitResponse"/> </wsdl:operation> <wsdl:operation name="updateUser" parameterOrder="userId password emailAddress languageId timeZoneId greeting resolution comments firstName middleName lastName nickName prefixId suffixId male birthdayMonth birthdayDay birthdayYear smsSn aimSn icqSn jabberSn msnSn skypeSn ymSn jobTitle organizationId locationId"> <wsdl:input message="impl:updateUserRequest" name="updateUserRequest"/> <wsdl:output message="impl:updateUserResponse" name="updateUserResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Portal_UserServiceSoapBinding" type="impl:UserServiceSoap"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="addGroupUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="addGroupUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="addGroupUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="addRoleUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="addRoleUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="addRoleUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="addUserGroupUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="addUserGroupUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="addUserGroupUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="addUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="addUserRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="addUserResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="addUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="addUserRequest1"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="addUserResponse1"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="deleteRoleUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="deleteRoleUserRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="deleteRoleUserResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="deleteUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="deleteUserRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="deleteUserResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getGroupUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getGroupUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="getGroupUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getRoleUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getRoleUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="getRoleUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getUserByEmailAddress"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getUserByEmailAddressRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="getUserByEmailAddressResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getUserById"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getUserByIdRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="getUserByIdResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="hasGroupUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="hasGroupUserRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="hasGroupUserResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="hasRoleUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="hasRoleUserRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="hasRoleUserResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="setGroupUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="setGroupUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="setGroupUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="setRoleUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="setRoleUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="setRoleUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="setUserGroupUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="setUserGroupUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="setUserGroupUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="unsetGroupUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="unsetGroupUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="unsetGroupUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="unsetRoleUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="unsetRoleUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="unsetRoleUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="unsetUserGroupUsers"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="unsetUserGroupUsersRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="unsetUserGroupUsersResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="updateActive"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="updateActiveRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="updateActiveResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="updateAgreedToTermsOfUse"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="updateAgreedToTermsOfUseRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="updateAgreedToTermsOfUseResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="updatePassword"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="updatePasswordRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="updatePasswordResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="updatePortrait"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="updatePortraitRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="updatePortraitResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="updateUser"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="updateUserRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:input> <wsdl:output name="updateUserResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http.service.portal.liferay.com" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="UserServiceSoapService"> <wsdl:port binding="impl:Portal_UserServiceSoapBinding" name="Portal_UserService"> <wsdlsoap:address location="http://localhost:8080/tunnel-web/axis/Portal_UserService"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
generar.sh
Description: application/shellscript
/* * Copyright 2003-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws) * This file contains functions to manipulate complex type UserSoap */ #include "UserSoap.hpp" #include <axis/AxisWrapperAPI.hpp> #include <axis/Axis.hpp> xsd__boolean UserSoap::getactive() { return active ; } void UserSoap::setactive(xsd__boolean InValue) { active = InValue ; } xsd__boolean UserSoap::getagreedToTermsOfUse() { return agreedToTermsOfUse ; } void UserSoap::setagreedToTermsOfUse(xsd__boolean InValue) { agreedToTermsOfUse = InValue ; } xsd__string UserSoap::getcomments() { return comments ; } void UserSoap::setcomments(xsd__string InValue) { comments = InValue ; } xsd__string UserSoap::getcompanyId() { return companyId ; } void UserSoap::setcompanyId(xsd__string InValue) { companyId = InValue ; } xsd__string UserSoap::getcontactId() { return contactId ; } void UserSoap::setcontactId(xsd__string InValue) { contactId = InValue ; } xsd__dateTime * UserSoap::getcreateDate() { return createDate ; } void UserSoap::setcreateDate(xsd__dateTime * pInValue) { createDate = pInValue ; } xsd__string UserSoap::getemailAddress() { return emailAddress ; } void UserSoap::setemailAddress(xsd__string InValue) { emailAddress = InValue ; } xsd__int UserSoap::getfailedLoginAttempts() { return failedLoginAttempts ; } void UserSoap::setfailedLoginAttempts(xsd__int InValue) { failedLoginAttempts = InValue ; } xsd__string UserSoap::getgreeting() { return greeting ; } void UserSoap::setgreeting(xsd__string InValue) { greeting = InValue ; } xsd__string UserSoap::getlanguageId() { return languageId ; } void UserSoap::setlanguageId(xsd__string InValue) { languageId = InValue ; } xsd__dateTime * UserSoap::getlastLoginDate() { return lastLoginDate ; } void UserSoap::setlastLoginDate(xsd__dateTime * pInValue) { lastLoginDate = pInValue ; } xsd__string UserSoap::getlastLoginIP() { return lastLoginIP ; } void UserSoap::setlastLoginIP(xsd__string InValue) { lastLoginIP = InValue ; } xsd__dateTime * UserSoap::getloginDate() { return loginDate ; } void UserSoap::setloginDate(xsd__dateTime * pInValue) { loginDate = pInValue ; } xsd__string UserSoap::getloginIP() { return loginIP ; } void UserSoap::setloginIP(xsd__string InValue) { loginIP = InValue ; } xsd__dateTime * UserSoap::getmodifiedDate() { return modifiedDate ; } void UserSoap::setmodifiedDate(xsd__dateTime * pInValue) { modifiedDate = pInValue ; } xsd__string UserSoap::getpassword() { return password ; } void UserSoap::setpassword(xsd__string InValue) { password = InValue ; } xsd__boolean UserSoap::getpasswordEncrypted() { return passwordEncrypted ; } void UserSoap::setpasswordEncrypted(xsd__boolean InValue) { passwordEncrypted = InValue ; } xsd__dateTime * UserSoap::getpasswordExpirationDate() { return passwordExpirationDate ; } void UserSoap::setpasswordExpirationDate(xsd__dateTime * pInValue) { passwordExpirationDate = pInValue ; } xsd__boolean UserSoap::getpasswordReset() { return passwordReset ; } void UserSoap::setpasswordReset(xsd__boolean InValue) { passwordReset = InValue ; } xsd__string UserSoap::getprimaryKey() { return primaryKey ; } void UserSoap::setprimaryKey(xsd__string InValue) { primaryKey = InValue ; } xsd__string UserSoap::getresolution() { return resolution ; } void UserSoap::setresolution(xsd__string InValue) { resolution = InValue ; } xsd__string UserSoap::gettimeZoneId() { return timeZoneId ; } void UserSoap::settimeZoneId(xsd__string InValue) { timeZoneId = InValue ; } xsd__string UserSoap::getuserId() { return userId ; } void UserSoap::setuserId(xsd__string InValue) { userId = InValue ; } /* * This static method serialize a UserSoap type of object */ int Axis_Serialize_UserSoap(UserSoap* param, IWrapperSoapSerializer* pSZ, bool bArray = false) { if (bArray) { pSZ->serialize("<", Axis_TypeName_UserSoap, ">", NULL); } else { bool blnIsNewPrefix = false; const AxisChar* sPrefix = pSZ->getNamespacePrefix(Axis_URI_UserSoap, blnIsNewPrefix); if (!blnIsNewPrefix) { pSZ->serialize("<", Axis_TypeName_UserSoap, " xsi:type=\"", sPrefix, ":", Axis_TypeName_UserSoap, "\">", NULL); } else { pSZ->serialize("<", Axis_TypeName_UserSoap, " xsi:type=\"", sPrefix, ":", Axis_TypeName_UserSoap, "\" xmlns:", sPrefix, "=\"", Axis_URI_UserSoap, "\">", NULL); } } pSZ->serializeAsElement("active", (void*)&(param->active), XSD_BOOLEAN); pSZ->serializeAsElement("agreedToTermsOfUse", (void*)&(param->agreedToTermsOfUse), XSD_BOOLEAN); pSZ->serializeAsElement("comments", (void*)(param->comments), XSD_STRING); pSZ->serializeAsElement("companyId", (void*)(param->companyId), XSD_STRING); pSZ->serializeAsElement("contactId", (void*)(param->contactId), XSD_STRING); pSZ->serializeAsElement("createDate", (void*)(param->createDate), XSD_DATETIME); pSZ->serializeAsElement("emailAddress", (void*)(param->emailAddress), XSD_STRING); pSZ->serializeAsElement("failedLoginAttempts", (void*)&(param->failedLoginAttempts), XSD_INT); pSZ->serializeAsElement("greeting", (void*)(param->greeting), XSD_STRING); pSZ->serializeAsElement("languageId", (void*)(param->languageId), XSD_STRING); pSZ->serializeAsElement("lastLoginDate", (void*)(param->lastLoginDate), XSD_DATETIME); pSZ->serializeAsElement("lastLoginIP", (void*)(param->lastLoginIP), XSD_STRING); pSZ->serializeAsElement("loginDate", (void*)(param->loginDate), XSD_DATETIME); pSZ->serializeAsElement("loginIP", (void*)(param->loginIP), XSD_STRING); pSZ->serializeAsElement("modifiedDate", (void*)(param->modifiedDate), XSD_DATETIME); pSZ->serializeAsElement("password", (void*)(param->password), XSD_STRING); pSZ->serializeAsElement("passwordEncrypted", (void*)&(param->passwordEncrypted), XSD_BOOLEAN); pSZ->serializeAsElement("passwordExpirationDate", (void*)(param->passwordExpirationDate), XSD_DATETIME); pSZ->serializeAsElement("passwordReset", (void*)&(param->passwordReset), XSD_BOOLEAN); pSZ->serializeAsElement("primaryKey", (void*)(param->primaryKey), XSD_STRING); pSZ->serializeAsElement("resolution", (void*)(param->resolution), XSD_STRING); pSZ->serializeAsElement("timeZoneId", (void*)(param->timeZoneId), XSD_STRING); pSZ->serializeAsElement("userId", (void*)(param->userId), XSD_STRING); pSZ->serialize("</", Axis_TypeName_UserSoap, ">", NULL); return AXIS_SUCCESS; } /* * This static method deserialize a UserSoap type of object */ int Axis_DeSerialize_UserSoap(UserSoap* param, IWrapperSoapDeSerializer* pIWSDZ) { xsd__boolean* p_active = (pIWSDZ->getElementAsBoolean("active",0)); param->active = *p_active; delete p_active; xsd__boolean* p_agreedToTermsOfUse = (pIWSDZ->getElementAsBoolean("agreedToTermsOfUse",0)); param->agreedToTermsOfUse = *p_agreedToTermsOfUse; delete p_agreedToTermsOfUse; xsd__string* p_comments = (pIWSDZ->getElementAsString("comments",0)); param->comments = *p_comments; delete p_comments; xsd__string* p_companyId = (pIWSDZ->getElementAsString("companyId",0)); param->companyId = *p_companyId; delete p_companyId; xsd__string* p_contactId = (pIWSDZ->getElementAsString("contactId",0)); param->contactId = *p_contactId; delete p_contactId; xsd__dateTime* p_createDate = (pIWSDZ->getElementAsDateTime("createDate",0)); param->createDate = *p_createDate; delete p_createDate; xsd__string* p_emailAddress = (pIWSDZ->getElementAsString("emailAddress",0)); param->emailAddress = *p_emailAddress; delete p_emailAddress; xsd__int* p_failedLoginAttempts = (pIWSDZ->getElementAsInt("failedLoginAttempts",0)); param->failedLoginAttempts = *p_failedLoginAttempts; delete p_failedLoginAttempts; xsd__string* p_greeting = (pIWSDZ->getElementAsString("greeting",0)); param->greeting = *p_greeting; delete p_greeting; xsd__string* p_languageId = (pIWSDZ->getElementAsString("languageId",0)); param->languageId = *p_languageId; delete p_languageId; xsd__dateTime* p_lastLoginDate = (pIWSDZ->getElementAsDateTime("lastLoginDate",0)); param->lastLoginDate = *p_lastLoginDate; delete p_lastLoginDate; xsd__string* p_lastLoginIP = (pIWSDZ->getElementAsString("lastLoginIP",0)); param->lastLoginIP = *p_lastLoginIP; delete p_lastLoginIP; xsd__dateTime* p_loginDate = (pIWSDZ->getElementAsDateTime("loginDate",0)); param->loginDate = *p_loginDate; delete p_loginDate; xsd__string* p_loginIP = (pIWSDZ->getElementAsString("loginIP",0)); param->loginIP = *p_loginIP; delete p_loginIP; xsd__dateTime* p_modifiedDate = (pIWSDZ->getElementAsDateTime("modifiedDate",0)); param->modifiedDate = *p_modifiedDate; delete p_modifiedDate; xsd__string* p_password = (pIWSDZ->getElementAsString("password",0)); param->password = *p_password; delete p_password; xsd__boolean* p_passwordEncrypted = (pIWSDZ->getElementAsBoolean("passwordEncrypted",0)); param->passwordEncrypted = *p_passwordEncrypted; delete p_passwordEncrypted; xsd__dateTime* p_passwordExpirationDate = (pIWSDZ->getElementAsDateTime("passwordExpirationDate",0)); param->passwordExpirationDate = *p_passwordExpirationDate; delete p_passwordExpirationDate; xsd__boolean* p_passwordReset = (pIWSDZ->getElementAsBoolean("passwordReset",0)); param->passwordReset = *p_passwordReset; delete p_passwordReset; xsd__string* p_primaryKey = (pIWSDZ->getElementAsString("primaryKey",0)); param->primaryKey = *p_primaryKey; delete p_primaryKey; xsd__string* p_resolution = (pIWSDZ->getElementAsString("resolution",0)); param->resolution = *p_resolution; delete p_resolution; xsd__string* p_timeZoneId = (pIWSDZ->getElementAsString("timeZoneId",0)); param->timeZoneId = *p_timeZoneId; delete p_timeZoneId; xsd__string* p_userId = *(pIWSDZ->getElementAsString("userId",0)); param->userId = *p_userId; delete p_userId; return pIWSDZ->getStatus(); } void * Axis_Create_UserSoap( UserSoap * pObj, bool bArray = false, int nSize = 0) { if( bArray && (nSize > 0)) { if( pObj) { UserSoap * pNew = new UserSoap[nSize]; size_t i = nSize / 2; for( int ii = 0; ii < (int) i; ++ii) { pNew[ii] = pObj[ii]; pObj[ii].reset(); } delete [] pObj; return pNew; } else { return new UserSoap[nSize]; } } else { return new UserSoap; } } /* * This static method delete a UserSoap type of object */ void Axis_Delete_UserSoap(UserSoap* param, bool bArray = false, int nSize=0) { if (bArray) { if (nSize > 0) { for (int count = 0 ; count < nSize ; count++ ) { if ( (( UserSoap ** ) param)[count]) { delete (( UserSoap ** ) param)[count]; (( UserSoap ** ) param)[count] = NULL; } } delete [] ( UserSoap ** ) param; } } else { delete param; } param = NULL; } /* * This static method gives the size of UserSoap type of object */ int Axis_GetSize_UserSoap() { return sizeof(UserSoap); } UserSoap::UserSoap() { reset(); } void UserSoap::reset() { /*do not allocate memory to any pointer members here because deserializer will allocate memory anyway. */ comments=0; companyId=0; contactId=0; createDate = NULL; emailAddress=0; greeting=0; languageId=0; lastLoginDate = NULL; lastLoginIP=0; loginDate = NULL; loginIP=0; modifiedDate = NULL; password=0; passwordExpirationDate = NULL; primaryKey=0; resolution=0; timeZoneId=0; userId=0; } UserSoap::~UserSoap() { /*delete any pointer and array members here*/ }
/* * Copyright 2003-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws) * This file contains functions to manipulate complex type UserSoap */ #if !defined(__USERSOAP_PARAM_H__INCLUDED_) #define __USERSOAP_PARAM_H__INCLUDED_ #include <axis/AxisUserAPI.hpp> #include <axis/AxisUserAPIArrays.hpp> AXIS_CPP_NAMESPACE_USE /*Local name and the URI for the type*/ static const char* Axis_URI_UserSoap = "http://model.portal.liferay.com"; static const char* Axis_TypeName_UserSoap = "UserSoap"; class UserSoap { public: xsd__boolean active; xsd__boolean agreedToTermsOfUse; xsd__string comments; xsd__string companyId; xsd__string contactId; xsd__dateTime * createDate; xsd__string emailAddress; xsd__int failedLoginAttempts; xsd__string greeting; xsd__string languageId; xsd__dateTime * lastLoginDate; xsd__string lastLoginIP; xsd__dateTime * loginDate; xsd__string loginIP; xsd__dateTime * modifiedDate; xsd__string password; xsd__boolean passwordEncrypted; xsd__dateTime * passwordExpirationDate; xsd__boolean passwordReset; xsd__string primaryKey; xsd__string resolution; xsd__string timeZoneId; xsd__string userId; xsd__boolean getactive(); void setactive(xsd__boolean InValue); xsd__boolean getagreedToTermsOfUse(); void setagreedToTermsOfUse(xsd__boolean InValue); xsd__string getcomments(); void setcomments(xsd__string InValue); xsd__string getcompanyId(); void setcompanyId(xsd__string InValue); xsd__string getcontactId(); void setcontactId(xsd__string InValue); xsd__dateTime * getcreateDate(); void setcreateDate(xsd__dateTime * pInValue); xsd__string getemailAddress(); void setemailAddress(xsd__string InValue); xsd__int getfailedLoginAttempts(); void setfailedLoginAttempts(xsd__int InValue); xsd__string getgreeting(); void setgreeting(xsd__string InValue); xsd__string getlanguageId(); void setlanguageId(xsd__string InValue); xsd__dateTime * getlastLoginDate(); void setlastLoginDate(xsd__dateTime * pInValue); xsd__string getlastLoginIP(); void setlastLoginIP(xsd__string InValue); xsd__dateTime * getloginDate(); void setloginDate(xsd__dateTime * pInValue); xsd__string getloginIP(); void setloginIP(xsd__string InValue); xsd__dateTime * getmodifiedDate(); void setmodifiedDate(xsd__dateTime * pInValue); xsd__string getpassword(); void setpassword(xsd__string InValue); xsd__boolean getpasswordEncrypted(); void setpasswordEncrypted(xsd__boolean InValue); xsd__dateTime * getpasswordExpirationDate(); void setpasswordExpirationDate(xsd__dateTime * pInValue); xsd__boolean getpasswordReset(); void setpasswordReset(xsd__boolean InValue); xsd__string getprimaryKey(); void setprimaryKey(xsd__string InValue); xsd__string getresolution(); void setresolution(xsd__string InValue); xsd__string gettimeZoneId(); void settimeZoneId(xsd__string InValue); xsd__string getuserId(); void setuserId(xsd__string InValue); UserSoap(); void reset(); virtual ~UserSoap(); }; #endif /* !defined(__USERSOAP_PARAM_H__INCLUDED_)*/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
