Re: [SOAP] Is it possible to change a parameter element?

[email protected] (vatertime) Fri, 15 Oct 2010 10:48:16 -0700 (PDT)
Newsgroups php.soap
Message-ID <[email protected]>
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&amp;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.