Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with prefix in writer #187

Open
vrobin95 opened this issue Jun 10, 2020 · 0 comments
Open

Trouble with prefix in writer #187

vrobin95 opened this issue Jun 10, 2020 · 0 comments

Comments

@vrobin95
Copy link

vrobin95 commented Jun 10, 2020

Hi,

I am tring to get the next configuration, without any prefix:

<GetValuation xmlns="http://www.eurotax.com/webservices/">

According to the documentation I wrote:

$writer->write([
      '{http://www.eurotax.com/webservices/}GetValuation' => $parameters
]);
//result: <x1:GetValuation xmlns:x1="http://www.eurotax.com/webservices/">

So, I added the next configuration:

$this->sabreService->namespaceMap['http://www.eurotax.com/webservices/'] =  '';

And here is the result I got:

<GetValuation>

What am I doing wrong ? Thank you for your help


edit:
The next configuration seems strange too:

$this->sabreService->namespaceMap['http://www.eurotax.com/webservices/'] =  'test';
//with the same $writer as previously
$writer->write([
      '{http://www.eurotax.com/webservices/}GetValuation' => $parameters
]);

It removes the xmlns attribute and gives me:

<test:GetValuation>
@vrobin95 vrobin95 changed the title Trouble with prefix Trouble with prefix in writer Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant