cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

getHostedProfilePageRequest hostedProfileReturnUrl value issue

I'm attempting to use the getHostedProfilePageRequest, and for the hostedProfileReturnUrl, I wish to pass a URL which has a couple querystring variables.

I'm finding that if I pass a single querystring variable, all is well. But as soon as I pass more than one, I get this error:

The operation failed with the following errors:
[E00003] '=' is an unexpected token. The expected token is ';'. Line 8, position 114.

 

Here's my request:

 

<?xml version="1.0" encoding="utf-8"?>
                    <getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
                        <merchantAuthentication><name>********</name><transactionKey>***********</transactionKey></merchantAuthentication>
                        <customerProfileId>8777777</customerProfileId>
                        <hostedProfileSettings>
                            <setting>
                                <settingName>hostedProfileReturnUrl</settingName>
                                <settingValue>http://domain.com/dev/index.php?edit=1&id=45</settingValue>
                            </setting>
                            <setting>
                                <settingName>hostedProfileReturnUrlText</settingName>
                                <settingValue>Finished Editing</settingValue>
                            </setting>
                            <setting>
                                <settingName>hostedProfilePageBorderVisible</settingName>
                                <settingValue>true</settingValue>
                            </setting>
                        </hostedProfileSettings>
                    </getHostedProfilePageRequest>

 I'm assuming this is some kind of bug? Or is it really only possible to use a single querystring variable?

 

sporifolous
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Since it XML is required xml(html) encoding so & need to be &amp;

View solution in original post

RaynorC1emen7
Expert
2 REPLIES 2

Since it XML is required xml(html) encoding so & need to be &amp;

RaynorC1emen7
Expert

Oh wow. I feel dumb now. haha.

 

Thanks for your help!