Jump to content

PEAR:SOAP Help: Soap Headers


chrisrikli

Recommended Posts

I'm trying to use the PEAR::SOAP class to communicate with a SOAP server. I've read every tutorial I can find but none of them address how to deal with headers. I've looked through the PEAR::SOAP source code and I know that there are functions and classes to handle this, but I'm not sure how to implement them.

If anyone has any experience with this it would be wonderful. I've been killing myself for the last 48 hours trying to figure this out.

Here is the way that the formatted SOAP XML will need to look:
[code]
<?xml version="1.0" encoding="UTF-8" ?>
<env:Envelope xmlns: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:auth="http://www.ups.com/schema/xpci/1.0/auth">
<env:Header>
    <auth:AccessRequest>
        <auth:UserId>theUserId</auth:UserId>
        <auth:Password>thePassword</auth:Password>
        <auth:AccessLicenseNumber>theAccessLicenseNum</auth:AccessLicenseNumber>
    </auth:AccessRequest>
</env:Header>
<env:Body>
</env:Body>
<env:Envelope>
[/code]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.