Re: [SOAP] Is it possible to change a parameter element?
| From: | vatertime | Date: | Fri, 15 Oct 2010 17:48:16 +0000 |
| Subject: | Re: [SOAP] Is it possible to change a parameter element? | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-3124@lists.php.net to get a copy of this message | ||
I am interested in this as well!
My XML Request Output (which isn't working correctly):
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="GunBrokerAPI_V2">
<SOAP-ENV:Header>
<ns1:RequesterCredentials>
<UserName>XXXX</UserName>
<Password>XXXX</Password>
<DevKey>XXXX</DevKey>
<AppKey>XXXX</AppKey>
</ns1:RequesterCredentials>
</SOAP-ENV:Header>
</SOAP-ENV:Envelope>
Way it should look to work correctly:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<RequesterCredentials xmlns="GunBrokerAPI_V2">
<UserName>XXXX</UserName>
<Password>XXXX</Password>
<DevKey>XXXX</DevKey>
<AppKey>XXXX</AppKey>
</RequesterCredentials>
</soap:Header>
</soap:Envelope>
Any input would be most appreciated!
Thanks!
vatertime
Jos&eacute; Ricardo wrote:
>
> Hi folks, I have tried many ways to generate parameters (arrays and
> Objects), but none of them worked.
>
> I have a WS parameter (in the body of my envelope) which is being
> generated like this:
>
> <ns1:nfeDadosMsg>
>
> But I need it to be generated like this:
>
> <nfeDadosMsg
> xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao2">
>
> Is it possible? How can I do it?
>
> I'd really appreciate your help.
>
> Thanks in advance,
>
> Zé Ricardo
>
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
View this message in context: http://old.nabble.com/Is-it-possible-to-change-a-parameter-element--tp29964264p29973927.html
Sent from the Php - Soap mailing list archive at Nabble.com.