Are you generating this header in XQuery and then you'll do an xdmp:http-get() 
(or post) to retrieve the data, or are you using something external (say, Java, 
Ruby, etc) to talk to the SOAP service, and then you'll push the results into 
MarkLogic?

In either case, it sounds like you're not sure how to generate the 
wsse:UsernameToken/@wsu:Id attribute, correct? What source code have you tried 
for generating it?

--
Dave Cassel<http://davidcassel.net>, @dmcassel<https://twitter.com/dmcassel>
Technical Community Manager
MarkLogic Corporation<http://www.marklogic.com/>
http://developer.marklogic.com/


From: Rahul Singh 
<[email protected]<mailto:[email protected]>>
Date: Thursday, February 25, 2016 at 11:23 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>, Dave 
Cassel <[email protected]<mailto:[email protected]>>
Subject: Re: General Digest, Vol 140, Issue 72

I have one external WSDL from where i am that wasdl and will extract the data 
from there and when i am hitting that wsdl getting error as The 
<soapenv:Header> is empty in your request. Username token is missing from 
there. You need to generate the username token and add it to the header. so we 
need to generate username token  as below sample, my concern is how to generate 
soap:header. then i will use that extracted data wo upload as it is in ML7. The 
password digest is comprised of the password, create time and nonce value as 
follows:
Password_Digest = Base64 ( SHA-1 ( nonce + created + password ) )
See: 
http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-os-UsernameTokenProfile.pdf 
for more information on the UserName token profile.

<soapenv:Header>
<wsse:Security 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
<wsse:UsernameToken wsu:Id="UsernameToken-95478B9C8765923A0614563215623653">
<wsse:Username>sample1</wsse:Username>
<wsse:Password 
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";>WKwrplT97Bf+aeLEoVc3ILXJtvQ=</wsse:Password>
<wsse:Nonce 
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";>0UXQL0U2e0T0YnGj3tgiOA==</wsse:Nonce>
<wsu:Created>2016-02-24T13:46:02.365Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
 <soapenv:Body>
     </soapenv:Body>

On Thu, Feb 25, 2016 at 9:42 PM, 
<[email protected]<mailto:[email protected]>>
 wrote:
Send General mailing list submissions to
        [email protected]<mailto:[email protected]>

To subscribe or unsubscribe via the World Wide Web, visit
        http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
        
[email protected]<mailto:[email protected]>

You can reach the person managing the list at
        
[email protected]<mailto:[email protected]>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of General digest..."


Today's Topics:

   1. Re: SOAP WSDL Authentication Header in ML7 (Dave Cassel)


----------------------------------------------------------------------

Message: 1
Date: Thu, 25 Feb 2016 16:12:42 +0000
From: Dave Cassel <[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] SOAP WSDL Authentication Header
        in ML7
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Message-ID: 
<d2f4917b.127723%[email protected]<mailto:d2f4917b.127723%[email protected]>>
Content-Type: text/plain; charset="us-ascii"

I don't think you've sent enough information for anyone to help you. What 
source code is failing? What is the error message? Have you implemented WSDL 
services in MarkLogic and client is unable to use it, or are you trying to 
consume data from an external WSDL source, and you're having trouble generating 
the header you need?

--
Dave Cassel<http://davidcassel.net>, @dmcassel<https://twitter.com/dmcassel>
Technical Community Manager
MarkLogic Corporation<http://www.marklogic.com/>
http://developer.marklogic.com/


From: 
<[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>
 on behalf of Rahul Singh 
<[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>
Date: Thursday, February 25, 2016 at 11:03 AM
To: 
"[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>"
 
<[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>
Subject: Re: [MarkLogic Dev General] SOAP WSDL Authentication Header in ML7

any update into this?

Hello,

we are extracting the data by WSDL and then we will apply extracted data 
eContent System by ML7 but i am getting failure to generate SOAP Header, Below 
is the sample for username token:

Password_Digest = Base64 ( SHA-1 ( nonce + created + password ) )


<soapenv:Header>
<wsse:Security 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
<wsse:UsernameToken wsu:Id="UsernameToken-95478B9C8765923A0614563215623653">
<wsse:Username>abcd</wsse:Username>
<wsse:Password 
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";>WKwrplT97Bf+aeLEoVc3ILXJtvQ=</wsse:Password>
<wsse:Nonce 
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";>0UXQL0U2e0T0YnGj3tgiOA==</wsse:Nonce>
<wsu:Created>2016-02-24T13:46:02.365Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>

How to generate SOAP Header?

On Thu, Feb 25, 2016 at 2:50 PM, Rahul Singh 
<[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>
 wrote:
Hello,

we are extracting the data by WSDL and then we will apply extracted data 
eContent System by ML7 but i am getting failure to generate SOAP Header, Below 
is the sample for username token:

Password_Digest = Base64 ( SHA-1 ( nonce + created + password ) )


<soapenv:Header>
<wsse:Security 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
<wsse:UsernameToken wsu:Id="UsernameToken-95478B9C8765923A0614563215623653">
<wsse:Username>abcd</wsse:Username>
<wsse:Password 
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest";>WKwrplT97Bf+aeLEoVc3ILXJtvQ=</wsse:Password>
<wsse:Nonce 
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";>0UXQL0U2e0T0YnGj3tgiOA==</wsse:Nonce>
<wsu:Created>2016-02-24T13:46:02.365Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>

How to generate SOAP Header?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20160225/5fd01977/attachment.html

------------------------------

_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 140, Issue 72
****************************************

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to