Hi All,
I have a problem with Soap Driver and a webserice.
The webservice has a method to add a role to a user and it accepts
requests for only one role in this form:
POST /Administration/AdminAuthorization.asmx HTTP/1.1 Host:
authorization2.ws.soa.svil.sgr.sanpaoloimiwm.local Content-Type:
text/xml; charset=utf-8 Content-Length: length SOAPAction:
"http://SanPaolo.com/AuthorizationService/InsertUserOfRole" <?xml
version="1.0" encoding="utf-8"?> <soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body> <InsertUserOfRole
xmlns="http://SanPaolo.com/AuthorizationService/">
<UserCaller>string</UserCaller>
<guidRole>string</guidRole>
<guidUser>string</guidUser>
</InsertUserOfRole>
</soap:Body>
</soap:Envelope>
Now, i need to add 2 or more role to a user when the user receive a
particular event (one xml flow).
Do you know if there is a method (maybe via operation-data) to make
soap driver requesting 2 o more call (method) with the same xml flow?
i tryed it cofiguring xslt to obtain the following xml for a user
(GuidUser) need to be added to 2 more roles (guidRole).
But the webservice adds only the first role in the xml flow (as you can
see in the response - 0 means ok - , and as i checked in the DB table)

Think about an xml where i have
<modify modify-attr name=ruolo>
<add value>ruolo1 <add value>
<add value>ruolo2 <add value>
....

and i need to make a webservice request of a method tor each ruolo..

Have you any suggestion?
Thanks..
Best Regards,
Angelo Fragnito


17:10:32 13B0 Drvrs: SPML ST: Submitting document to subscriber shim:
17:10:32 13B0 Drvrs: SPML ST:
<nds dtdversion="3.0" ndsversion="8.x">
<source>
<product version="3.0.0.20051118 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<InsertUserOfRole xmlns="http://SanPaolo.com/AuthorizationService/">
<UserCaller>Administrator</UserCaller>
<guidRole>7200472f-31ca-4a0f-a9e0-0e5d4a38ff05</guidRole>
<guidUser>D4123F30-35D3-405D-8601-0EBC4A7055F4</guidUser>
</InsertUserOfRole>
</soap:Body>
</soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<InsertUserOfRole xmlns="http://SanPaolo.com/AuthorizationService/">
<UserCaller>Administrator</UserCaller>
<guidRole>47d4e0bc-e1f0-4c3c-ad9a-0c2cfb5a1297</guidRole>
<guidUser>D4123F30-35D3-405D-8601-0EBC4A7055F4</guidUser>
</InsertUserOfRole>
</soap:Body>
</soap:Envelope>
<operation-data
soap-action="http://SanPaolo.com/AuthorizationService/InsertUserOfRole">
<sorgente>\NXTIDVLABTREE\IDVORGLAB\users\internal\ ballarini</sorgente>
<password-subscribe-status>
<association/>
</password-subscribe-status>
</operation-data>
</input>
</nds>
17:10:32 13B0 Drvrs: SPML ST: SPML: HTTPSubscriberTransport.send()
17:10:32 13B0 Drvrs: SPML ST: SPML: Preparing HTTP POST connection to
http://tinyurl.com/5qv6s7
17:10:32 13B0 Drvrs: SPML ST: SPML: Setting the following HTTP request
properties:
17:10:32 13B0 Drvrs: SPML ST: SPML: SOAPAction: 'Intesa Sanpaolo'
(http://SanPaolo.com/AuthorizationSer...sertUserOfRole)
17:10:32 13B0 Drvrs: SPML ST: SPML: Content-Type: text/xml;
charset=utf-8
17:10:32 13B0 Drvrs: SPML ST: SPML: Did HTTP POST with 447 bytes of
data to http://tinyurl.com/5qv6s7
17:10:33 13B0 Drvrs: SPML ST: SubscriptionShim.execute() returned:
17:10:33 13B0 Drvrs: SPML ST:
<nds dtdversion="2.0">
<source>
<product build="20050906_0538 " instance="SPML"
version="1.0.1">Identity Manager Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<InsertUserOfRoleResponse
xmlns="http://SanPaolo.com/AuthorizationService/">
<InsertUserOfRoleResult>0</InsertUserOfRoleResult>
</InsertUserOfRoleResponse>
</soap:Body>
</soap:Envelope>
</output>
<operation-data event-id="_opData2"
soap-action="http://SanPaolo.com/AuthorizationService/InsertUserOfRole">
<sorgente>\NXTIDVLABTREE\IDVORGLAB\users\internal\ ballarini</sorgente>
<password-subscribe-status>
<association/>
</password-subscribe-status>
</operation-data>
</nds>


--
aosti
------------------------------------------------------------------------
aosti's Profile: http://forums.novell.com/member.php?userid=4734
View this thread: http://forums.novell.com/showthread.php?t=352545