Link to home
Start Free TrialLog in
Avatar of Dallas Smetter
Dallas SmetterFlag for United States of America

asked on

Creating httpPOST based upon a provided SOAP Message sample

Pretty new to this, but I have a customer who has given me a sample SOAP Message and wants me to convert it to httpPOST. I have the endpoint and the token, but I am having trouble getting the right syntax (including getting the token into the headers).

The reference I'm using is at https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html

The SOAP is

<?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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <env:Header>
        <wsse:Security env:mustUnderstand="1">
            <wsse:UsernameToken>
                <wsse:Username>username@src3</wsse:Username>
                <wsse:Password
                    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">some pwd</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
    </env:Header>
      <env:Body>
        <wd:Change_Work_Contact_Information_Request
            xmlns:wd="urn:com.workday/bsvc"
            wd:version="v35.0">
            <wd:Business_Process_Parameters>
                <wd:Auto_Complete>true</wd:Auto_Complete>
                <wd:Run_Now>true</wd:Run_Now>
                <wd:Comment_Data>
                    <wd:Comment>Update work email By Dallas Ray</wd:Comment>
                </wd:Comment_Data>
               
            </wd:Business_Process_Parameters>
            <wd:Change_Work_Contact_Information_Data>
                <wd:Person_Reference>
                    <wd:ID wd:type="Employee_ID">11111</wd:ID>
                </wd:Person_Reference>
                
                <wd:Event_Effective_Date>2020-10-14</wd:Event_Effective_Date>
                <wd:Person_Contact_Information_Data>
                    <wd:Person_Email_Information_Data wd:Replace_All="true">
                        <wd:Email_Information_Data wd:Delete="false">
                            <wd:Email_Data>
                                <wd:Email_Address>something@domain.com</wd:Email_Address>
                            </wd:Email_Data>
                            <wd:Usage_Data wd:Public="true">
                                <wd:Type_Data wd:Primary="true">
                                    <wd:Type_Reference>
                                        <wd:ID wd:type="Communication_Usage_Type_ID">WORK</wd:ID>
                                    </wd:Type_Reference>
                                </wd:Type_Data>
                            
                            </wd:Usage_Data>
                            
                            
                        </wd:Email_Information_Data>
                    </wd:Person_Email_Information_Data>
 
                </wd:Person_Contact_Information_Data>
            </wd:Change_Work_Contact_Information_Data>
        </wd:Change_Work_Contact_Information_Request>
    </env:Body>
</env:Envelope>

Open in new window


Thank you in advance for any assistance!
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial