[JBossWS] - Cannot access web service with HTTP Basic Authentication ena
by jeff norton
I'm running JBoss 4.2 with the latest jbossws libraries. I have a simple web service running and I wanted to secure it with HTTP Basic Authentication (actually anything would do but that seemed the simplest). I followed the steps in http://jbws.dyndns.org/mediawiki/index.php?title=Authentication, but now my client gets an error when creating the service (this is before setting the username and password using the BindingProvider -- but you need the service object on which to do that -- perhaps a chicken/egg problem?)
service = Service.create(wsdlURL, new QName(...));
Now gets:
[exec] org.jboss.ws.metadata.wsdl.WSDLException: Cannot parse wsdlLocation: http://localhost:8080/resonantProcessLibrary?wsdl
| [exec] at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:183)
| [exec] at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:108)
| [exec] at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
| [exec] at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85)
| [exec] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:132)
| [exec] at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:63)
| [exec] at javax.xml.ws.Service.<init>(Service.java:82)
| [exec] at javax.xml.ws.Service.create(Service.java:334)
| [exec] at com.resonant.processlibrary.api.RemoteDocumentRepository.<init>(RemoteDocumentRepository.java:77)
When I try to access the wsdl in a browser using the wsdlURL I get the username/password challenge and after entering the correct credentials I get the WSDL so things seems to be working on the server end. Just cannot get the client to connect. It sort of seems like the username/password are needed to get the WSDL to seup the service but there is no way to provide the username/password until the service is setup. But that's what the example says to do and my code is following it exactly.
One other tidbit. When I use my .Net client to access the webservice I get a 401 (unauthorized) as expected, but when I modify the .NET client to add the credential I then get a 505 (HTTP protocal not supported).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119270#4119270
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119270
18 years, 3 months
[JBossWS] - underscore variables
by mow
im consuming a webservice which defines objectes with severel variables with an underscore, like
usr_id
phone_office
last_name
and so on and so on.
when trying to recieve a object with such variables from the service, unmarshaling failes because jboss is looking for the method
getUsr_Id()
setUsr_Id(), (it transforms the first letter after the underscore to uppercase)
which dont exist. the generated object (wstools) has methods such as
public int getUsr_id() { return usr_id ;}
public void setUsr_id(int usr_id){ this.usr_id=usr_id; }
"Failed to find read method or field for property 'usr_Id' in class iluseradministration.IlUserData"
jboss 4.0.5
jbossws 2.0.2
any ideas?
wsdl:
<?xml version="1.0" encoding="ISO-8859-1"?><definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd" xmlns:tns="urn:ilUserAdministration" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:ilUserAdministration"><xsd:schema targetNamespace="urn:ilUserAdministration"
>
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
<xsd:complexType name="intArray">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:int[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="stringArray">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ilUserData">
<xsd:all>
<xsd:element name="usr_id" type="xsd:int"/>
<xsd:element name="login" type="xsd:string"/>
<xsd:element name="passwd" type="xsd:string"/>
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="lastname" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="gender" type="xsd:string"/>
<xsd:element name="email" type="xsd:string"/>
<xsd:element name="institution" type="xsd:string"/>
<xsd:element name="street" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="zipcode" type="xsd:string"/>
<xsd:element name="country" type="xsd:string"/>
<xsd:element name="phone_office" type="xsd:string"/>
<xsd:element name="last_login" type="xsd:string"/>
<xsd:element name="last_update" type="xsd:string"/>
<xsd:element name="create_date" type="xsd:string"/>
<xsd:element name="hobby" type="xsd:string"/>
<xsd:element name="department" type="xsd:string"/>
<xsd:element name="phone_home" type="xsd:string"/>
<xsd:element name="phone_mobile" type="xsd:string"/>
<xsd:element name="fax" type="xsd:string"/>
<xsd:element name="time_limit_owner" type="xsd:int"/>
<xsd:element name="time_limit_unlimited" type="xsd:int"/>
<xsd:element name="time_limit_from" type="xsd:int"/>
<xsd:element name="time_limit_until" type="xsd:int"/>
<xsd:element name="time_limit_message" type="xsd:int"/>
<xsd:element name="referral_comment" type="xsd:string"/>
<xsd:element name="matriculation" type="xsd:string"/>
<xsd:element name="active" type="xsd:int"/>
<xsd:element name="accepted_agreement" type="xsd:boolean"/>
<xsd:element name="approve_date" type="xsd:string"/>
<xsd:element name="user_skin" type="xsd:string"/>
<xsd:element name="user_style" type="xsd:string"/>
<xsd:element name="user_language" type="xsd:string"/>
<xsd:element name="import_id" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ilOperation">
<xsd:all>
<xsd:element name="ops_id" type="xsd:int"/>
<xsd:element name="operation" type="xsd:string"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ilOperations">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:ilOperation[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ilOperationIds">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:int[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
ILIAS login functionILIAS login function via CASILIAS login function via LDAPILIAS logout functionILIAS lookupUser(): check if username exists. Return usr_id or 0 if lookup fails.ILIAS getUser(): get complete set of user data.ILIAS updateUser(). DEPRECATED: Use importUsers() for modifications of user data. Updates all user data. Use getUser(), then modify desired fields and finally start the updateUser() call.ILIAS updatePassword(). Updates password of given user. Password must be MD5 hashILIAS addUser() user. DEPRECATED: Since it is not possible to add new user data fields without breaking the backward compatability, this method is deprecated. Please use importUser() instead. Add new ILIAS user. Requires complete or subset of user_data structureILIAS deleteUser(). Deletes all user related data (Bookmarks, Mails ...)ILIAS addCourse(). Course import. See ilias_course_0_1.dtd for details about course xml structureILIAS deleteCourse(). Deletes a course. Delete courses are stored in "Trash" and can be undeleted in the ILIAS administration. ILIAS assignCourseMember(). Assigns an user to an existing course. Type should be "Admin", "Tutor" or "Member"ILIAS excludeCourseMember(). Excludes an user from an existing course.ILIAS isAssignedToCourse(). Checks whether an user is assigned to a given course. Returns 0 => not assigned, 1 => course admin, 2 => course member or 3 => course tutorILIAS getCourseXML(). Get a xml description of a specific course.ILIAS updateCourse(). Update course settings, assigned members, tutors, administrators with a given xml descriptionILIAS getObjIdByImportId(). Get the obj_id of an ILIAS obj by a given import id.ILIAS getRefIdsByImportId(). Get all reference ids by a given import id.ILIAS getRefIdsByObjId(). Get all reference ids by a given object id.ILIAS getObjectByReference(). Get XML-description of an ILIAS object. If a user id is given, this methods also checks the permissions of that user on the object.ILIAS getObjectsByTitle(). Get XML-description of an ILIAS object with given title. If a user id is given this method also checks the permissions of that user on the object.ILIAS searchObjects(): Searches for objects. Key is within "title" or "description" Typical calls are searchObject($sid,array("lm","crs"),"\"this and that\"","and"); If an optional user id is given, this methods also return the permissions for that user on the found objectsILIAS getTreeChilds(): Get all child objects of a given object.Choose array of types to filter the output. Choose empty type array to receive all object typesILIAS getXMLTree(): Returns a xml stream with the subtree objects.ILIAS addObject. Create new object based on xml description under a given node ("category,course,group or folder). Return created reference id of the new object.ILIAS updateObjects. Update object data (title,description,owner)ILIAS addReference. Create new link of given object to new object. Return the new reference idILIAS deleteObject. Stores object in trash. If multiple references exist, only the reference is deleted ILIAS removeFromSystemByImportId(). Removes an object identified by its import id permanently from the system. All data will be deleted. There will be no possibility to restore it from the trash. Do not use this function for deleting roles or users. Use deleteUser() or deleteRole() instead.ILIAS addUserRoleEntry. Assign user to role.ILIAS deleteUserRoleEntry. Deassign user from role.ILIAS getOperations(): get complete set of RBAC operations.ILIAS revokePermissions(): Revoke all permissions for a specific role on an object.ILIAS grantPermissions(): Grant permissions for a specific role on an object. (Substitutes existing permission settings)ILIAS getLocalRoles(): Get all local roles assigned to an specific object.ILIAS getUserRoles(): Get all local roles assigned to an specific user. ILIAS addRole(): Creates new role under given node. "target_id" is the reference id of an ILIAS ILIAS object. E.g ref_id of crs,grp. If no role folder exists, a new role folder will be created.ILIAS deleteRole(): Deletes an role and all user assignments. Fails if it is the last role of an userILIAS addRole(): Creates new role under given node. "target_id" is the reference id of an ILIAS ILIAS object. E.g ref_id of crs,grp. If no role folder exists, a new role folder will be created. In addition to addRole the template permissions will be copied from the given role templateILIAS getObjectTreeOperations(): Get all granted permissions for all references of an object for a specific user. Returns array of granted operations or empty arrayILIAS addGroup(): Add grop according to valid group XML @See ilias_group_0_1.dtdILIAS addGroup(): Check if group with given name exists. ILIAS getGroup(): get xml description of grouip with given reference id.ILIAS assignGroupMember(). Assigns an user to an existing group. Type should be "Admin","Member"ILIAS excludeGroupMember(). Excludes an user from an existing group.ILIAS isAssignedToGroup(). Checks whether an user is assigned to a given group. Returns 0 => not assigned, 1 => group admin, 2 => group memberILIAS sendMail(): Send mime mails according to xml description. Only for internal usage Syntax, parameters may change in future releasesILIAS ilClone(): Only for internal usage.Syntax, parameters may change in future releases. ILIAS ilCloneDependencies(): Only for internal usage.Syntax, parameters may change in future releases. ILIAS saveQuesionResult(): Typically called from Java Applet questions. Only for internal usage Sntax, parameters may change in future releasesILIAS getStructureObjects: delivers structure of content objects like learning modules (chapters/pages) or glossary (terms)ILIAS import users into folder id, which should be ref_id of folder or user folder (-1:System user folder, 0: checks access at user level, otherwise refid): conflict_rule: IL_FAIL_ON_CONFLICT = 1, IL_UPDATE_ON_CONFLICT = 2, IL_IGNORE_ON_CONFLICT = 3. The Return-Value is a protocol with the columns userid, login, action, message, following xmlresultset dtd. Send Account Mail = 0 deactivates sending a mail to each user, 1 activates itILIAS getRoles():if id equals -1, get all roles specified by type (global|local|user|user_login|template or empty), if type is empty all roles with all types are delivered, if id > -1 and role_type <> user or user_login, delivers all roles which belong to a repository object with specified ref_id, if roletype is user a numeric id is interpreted as userid, if roletype is user_login it is interpreted as login,if roletype is template all role templates will be listedILIAS getUsersForContainer(): get all users of a specific ref_id, which can be crs, group, category or user folder (value: -1). Choose if all roles of a user should be attached (1) or not (0). set active to -1 to get all, 0, to get inactive users only, 1 to get active users onlyILIAS getUsersForRole(): get all users of a role with specified id, specify attach_roles to 1, to attach all role assignmnents; specify active: 1, to import active only, 0: inactive only, -1: bothILIAS searchUser(): get all users, which match a query, consisting of the keyfields, matched with values of the field values, concatenated with the logical query operator. Specify attach_roles to 1, to attach all role assignmnents; specify active: 1, to import active only, 0: inactive only, -1: bothILIAS hasNewMail(): Checks whether the current authenticated user has a new mail.ILIAS getNIC(): return client information from current client as xml result set containing installation_id, installation_version, installation_url, installation_description, installation_language_default as columnsILIAS getExerciseXML(): returns xml description of exercise. Attachment mode: 0 - no file contents, 1 - plain content (base64encoded), 2 zlib + base64, 3 gzip + base64)ILIAS addExercise(): create exercise, put it into target (ref_id) and update exercise properties from xml (see ilias_exercise_3_8.dtd for details). Obj_id must not be set!ILIAS updateExercise():update existing exercise, update exercise properties from xml (see ilias_exercise_3_8.dtd for details). obj_id in xml must match according obj id of refid.!ILIAS getFileXML(): returns xml description of file. Attachment mode: 0 - no file contents, 1 - plain content (base64encoded), 2 zlib + base64, 3 gzip + base64)ILIAS addFile(): create file, put it into target (ref_id) and update file properties from xml (see ilias_file_3_8.dtd for details). Obj_id must not be set!ILIAS updateFile():update existing file, update file properties from xml (see ilias_file_3_8.dtd for details). obj_id in xml must match according obj id of refid.!ILIAS getUserXML(): get xml records for user ids, e.g. retrieved vom members of course xml. Returns user xml dtds. ids are numeric ids of userILIAS getObjIdsForRefIds: Returns a array of object ids which match the references id, given by a comma seperated string. Returns an array of ref ids, in the same order as object ids. Therefore, there might by duplicatesILIAS updateGroup(): update existing group using ref id and group xml (see DTD).<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><soap:operation soapAction="urn:ilUserAdministration#login" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#loginCAS" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#login" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#logout" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#lookupUser" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getUser" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#updateUser" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#updatePassword" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addUser" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#deleteUser" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addCourse" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#deleteCourse" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#assignCourseMember" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#excludeCourseMember" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#isAssignedToCourse" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getCourseXML" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#updateCourse" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getCourseIdByImportId" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getRefIdsByImportId" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getRefIdsByObjId" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getObjectByReference" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getObjectsByTitle" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#searchObjects" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getTreeChilds" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getXMLTree" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addObject" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#updateObjects" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addReference" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#deleteObject" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#removeFromSystemByImportId" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addUserRoleEntry" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#deleteUserRoleEntry" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getOperations" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#revokePermissions" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#grantPermissions" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getLocalRoles" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getLocalRoles" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addRole" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#deleteRole" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addRole" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getPermissionsForObject" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#addGroup" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#groupExists" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getGroup" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#assignGroupMember" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#excludeGroupMember" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#isAssignedToGroup" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#sendMail" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#ilClone" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#ilCloneDependencies" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#saveQuestionResult" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getStructureObjects" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#importUsers" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getRoles" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getUsersForContainer" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getUsersForRole" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#searchUsers" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#hasNewMail" style="rpc"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:body use="encoded" namespace="urn:ilUserAdministration" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/><soap:operation soapAction="urn:ilUserAdministration#getNIC" style="rpc"/><soap:body use="encoded" namespa
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119106#4119106
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119106
18 years, 3 months
[JBossWS] - SOAP Request and Response- Compatibility with old clients.
by zeeshan.javeed
HI All,
I would like to confirm about 'arg0' in soap request.
The soap request part looks like :
<ns1:startSession xmlns:ns1="http://ips.iplabs.de/types">
<arg0>
0.5
0
</arg0>
</ns1:startSession>
and the request coming from one the old client is like
<ns0:startSession>
<TSession_1>
0.5
0
</TSession_1>
</ns0:startSession>
the handling code in implementation file is :
| public TSession startSession(TSession session)
| {
| if(session != null)
| {
| log.debug("Start session");
|
| }
| else
| {
| log.error("Session is null");
| return null;
| }
| }
|
In the frist request , I got Start Session while in the later request it says Session is null.
I replaced "TSession_1" wiht "arg0" in SOAP Handler and then the old request also worked fine.
Any Idea why we are getting arg0 there and why Server is depending on variables name there other then the object pased.
the defenition of the method in interface class is :
| @WebMethod
| @WebResult(name = "result", targetNamespace = "")
| @RequestWrapper(localName = "startSession", targetNamespace = "http://ips.iplabs.de/types", className = "de.iplabs.ips.types.StartSession")
| @ResponseWrapper(localName = "startSessionResponse", targetNamespace = "http://ips.iplabs.de/types", className = "de.iplabs.ips.types.StartSessionResponse")
| public TSession startSession(
| @WebParam(name = "TSession_1", targetNamespace = "")
| TSession tSession1);
|
|
This problem is also valid for return type. It is sending return object with name of "return" and client is expecting "result".
Regards,
Zeeshan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119060#4119060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119060
18 years, 3 months