Hi,
I am developing a SOAP driver(SPML) to integrate ServiceNow with Novell
IDM. ServiceNow exposes its APIs using SOAP protocol. We currently have
the webservice end point configured and the admin ID/pwd also configured
in the driver. At this point the only thing we want to happen is to
provision users to ServiceNow.

As soon as the request is submitted, driver receives a response which
is incorrect (see the trace below). If I simply use the content inside
the <SOAP BODY> headers,from the trace below, in the SOAP UI, the user
gets provisioned. What am I missing here? What else do I need to
configure? Do I need to explicitly pass on the login credentials in the
hearder when calling the webservice via the driver?

[03/06/12 18:46:11.369]:ServiceNow ST:Submitting document to subscriber
shim:
[03/06/12 18:46:11.370]:ServiceNow ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<sys:insert>
<company>deloitte</company>
<first_name>nikhil123</first_name>
<last_name>gupta123</last_name>
</sys:insert>
</soap-env:Body>
</soap-env:Envelope>
</input>
</nds>
[03/06/12 18:46:11.372]:ServiceNow ST:ServiceNow: Value of boolean flag
'remove-existing' is : false
[03/06/12 18:46:11.372]:ServiceNow ST:ServiceNow:
HTTPSubscriberTransport.send()
[03/06/12 18:46:11.372]:ServiceNow ST:ServiceNow: Preparing HTTP POST
connection to https://perrigosb.service-now.com/sys_user1.do?soap
[03/06/12 18:46:11.373]:ServiceNow ST:ServiceNow: Setting up SSL
connection..........
[03/06/12 18:46:11.374]:ServiceNow ST:ServiceNow: Setting the following
HTTP request properties:
[03/06/12 18:46:11.374]:ServiceNow ST:ServiceNow: Authorization:
<credentials suppressed>
[03/06/12 18:46:11.375]:ServiceNow ST:ServiceNow: SOAPAction:
#batchRequest
[03/06/12 18:46:11.375]:ServiceNow ST:ServiceNow: Content-Type:
text/xml; charset=utf-8
[03/06/12 18:46:11.375]:ServiceNow ST:ServiceNow: Cookie:
glide_user_route=glide.626813121120200017c24c41f4c ed500;
JSESSIONID=74212592D3A83FE7CBF4820D0F9D1422
[03/06/12 18:46:11.650]:ServiceNow ST:ServiceNow: Did HTTP POST with
246 bytes of data to
https://perrigosb.service-now.com/sys_user1.do?soap
[03/06/12 18:46:12.063]:ServiceNow ST:ServiceNow: Setting cookie:
JSESSIONID=158EAEB46D4543FA5737F3C604A341DE; Path=/
[03/06/12 18:46:12.063]:ServiceNow ST:ServiceNow: Setting cookie:
glide_user_route=glide.626813121120200017c24c41f4c ed500; Expires=Mon,
25-Mar-2080 03:00:18 GMT; Path=/
[03/06/12 18:46:12.064]:ServiceNow ST:ServiceNow: Response code and
message: 200 OK
[03/06/12 18:46:12.065]:ServiceNow ST:ServiceNow: The following bytes
(which are base64 encoded) were received as a response to our request on
the subscriber channel. They cannot be converted to XML:
[03/06/12 18:46:12.066]:ServiceNow ST:ServiceNow:
PGh0bWwgbGFuZz0iZW4iPjxoZWFkPjx0aXRsZT5TZXJ2aWNlTm 93ICBJVCBTZXJ2aWNlIE1hbmFnZW1lbnQgU3VpdGU8L3RpdGxl PjxsaW5rIGhyZWY9ImZhdmljb24uaWNvIiByZWw9InNob3J0Y3 V0IGljb24iPjwvbGluaz48bGluayB0eXBlPSJ0ZXh0L2NzcyIg aHJlZj0ic3R5bGVzL2Nzc19pbmNsdWRlcy5jc3N4P3Y9MDEtMT YtMjAxMl8xNDM4JmFtcDtjPV85NTgwNmIyMjU5NjAyMDAwMTdj MmE2Nzc1YWI3ZTcxYyZhbXA7dGhlbWU9IiByZWw9InN0eWxlc2 hlZXQiPjwvbGluaz48c2NyaXB0IHR5cGU9InRleHQvamF2YXNj cmlwdCI+dmFyIGdfbG9hZFRpbWUgPSBuZXcgRGF0ZSgpOwogIC AgdmFyIGxhc3RBY3Rpdml0eSA9IG5ldyBEYXRlKCk7CiAgICB2 YXIgZ19sYW5nID0gJ2VuJzsKICAgIHZhciBnX3BvcHVwX3RpbW VvdXQgPSBwYXJzZUludCgxMDApOwkKICAgIHZhciBnX2V4cG9y dF93YX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pbWluZyA9IHRydWU7CgoJaWYgKGluY2x1ZG VUaW1pbmcpIHsKICAgICAgICAgICAgICAgIHZhciBkZXQgPSBu ZXcgT2JqZWN0KCk7CiAgICAgICAgICAgICAgICBkZXQudHlwZS A9IGdldFRpbWluZ0NhdGVnb3J5KHRpbWVyLnR5cGUpOwogICAg ICAgICAgICAgICAgZGV0LnR5cGVfY29kZSA9IHRpbWVyLnR5cG U7CgkJZGV0Lm5hbWUgPSB0aW1lci5uYW1lOwoJCWRldC5kdXJh dGlvbiA9IHRpbWVyLmR1cmF0aW9uOwogICAgICAgICAgICAgIC AgZGV0YWlscy5wdXNoKGRldCk7Cgl9CiAgICAgIH0KICAgICAg dmFyIGRldGFpbF9zdHJpbmcgPSBPYmplY3QudG9KU09OKGRldG FpbHMpOwogICAgICB2YXIgYWpheCA9IG5ldyBHbGlkZUFqYXgo J0FKQVhDbGllbnRUaW1pbmcnKTsKICAgICAgYWpheC5hZGRQYX JhbSgndHJhbnNhY3Rpb25faWQnLCAnYmI4MjZiMjI1OTYwMjAw MDE3YzJhNjc3NWFiN2U3OTYnKTsKICAgICAgYWpheC5hZGRQYX JhbSgndHJhbnNhY3Rpb25fdGltZScsIHRyYW5zYWN0aW9uVGlt ZSk7CiAgICAgIGFqYXguYWRkUGFyYW0oJ3NlcnZlcl90aW1lJy wgZ19zZXJ2ZXJUaW1lKTsKICAgICAgYWpheC5hZGRQYXJhbSgn bmV0d29ya190aW1lJywgbmV0d29ya1RpbWUpOwogICAgICBham F4LmFkZFBhcmFtKCdicm93c2VyX3RpbWUnLCByZW5kZXJUaW1l KTsKICAgICAgYWpheC5hZGRQYXJhbSgnY2xpZW50X2RldGFpbH MnLCBkZXRhaWxfc3RyaW5nKTsKICAgICAgYWpheC5hZGRQYXJh bSgndGFibGVfbmFtZScsICcnKTsKICAgICAgYWpheC5hZGRQYX JhbSgnZm9ybV9uYW1lJywgJ3Nlc3Npb25fdGltZW91dCcpOwog ICAgICBhamF4LmFkZFBhcmFtKCd2aWV3X2lkJywgJ0RlZmF1bH QgdmlldycpOwogICAgICBhamF4LmdldFhNTCgpO30KICAgICAg ICBhZGRMb2FkRXZlbnQocHJpbnRMb2FkVGltZSk7CiAgCiAgIC AgICAgRXZlbnQub2JzZXJ2ZSh3aW5kb3csICdiZWZvcmV1bmxv YWQnLCBzdGFydFRyYW5zYWN0aW9uVGltZSk7CiAgICAgICAgQ3 VzdG9tRXZlbnQub2JzZXJ2ZSgnc2ltcGxlX3BhZ2UudW5sb2Fk Jywgc2V0UGFnZVN0YXJ0VGltZSk7IC8vIHNpbXBsZSBwYWdlcy BmaXJlIHRoaXMgKHN0YXRzLmRvLCBldGMuKQogICAgICAgIGFk ZExvYWRFdmVudChyZXF1ZXN0Q29tcGxldGUpOzwvc2NyaXB0Pj wvYm9keT48L2h0bWw+
[03/06/12 18:46:12.110]:ServiceNow ST:SubscriptionShim.execute()
returned:
[03/06/12 18:46:12.110]:ServiceNow ST:
<nds dtdversion="2.0">
<source>
<product build="20110402_112430" instance="ServiceNow"
version="3.5.6">Identity Manager Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status level="error" type="driver-general">
<description>The response received on the subscriber channel was
not valid XML. Consider writing a ByteArrayModifiers Java extension if
you need to convert the results to XML.</description>
</status>
</output>
</nds>


--
nikhilgupta
------------------------------------------------------------------------
nikhilgupta's Profile: http://forums.novell.com/member.php?userid=90969
View this thread: http://forums.novell.com/showthread.php?t=453090