Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

soaplite · SOAP::Lite for Perl (soaplite.com)

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 1205
  • Category: Protocols
  • Founded: Jan 28, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Using SOAP::Lite to create a client header I want   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages Sort by Date  
#6166 From: "lucy3538" <peter.wilson@...>
Date: Thu Jun 26, 2008 9:41 pm
Subject: Using SOAP::Lite to create a client header I want
lucy3538
Send Email Send Email
 
Hi

I would like to have this header of this kind of nature.

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:rep="http://www.alfresco.org/ws/service/repository/1.0"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-secext-1.0.xsd">
<soap:Header>
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>admin</wsse:Username>
<wsse:Password
Type="wsse:PasswordText">admin</wsse:Password>
<wsse:Nonce/>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<rep:getStores/>
</soap:Body>
</soap:Envelope>

But i can't work out how to create the header, I am trying (and
failing) with this:

$soap->method(SOAP::Header->name('Security\UsernameToken'));
$soap->method(SOAP::Header->attr('Username'=>'admin'));
$soap->method(SOAP::Header->attr('Password'=>$session->{ticket}));

as Element 'Security\UsernameToken' can't be allowed in valid XML
message. So I am unsure of how to create this nested structure in the
header?

Can anyone help? Please





 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help