# Soap4r envelope issue

**URL:** <https://www.ruby-forum.com/t/soap4r-envelope-issue/173182>\
**Category:** Ruby\
**Created:** [August 4, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/soap4r-envelope-issue/173182 "2009-08-04T15:36:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![veeraa2003](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b487fb/32.png) [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Post date:** [August 4, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/soap4r-envelope-issue/173182/1 "2009-08-04T15:36:55Z")

</div>

Hi all,

I’m trying to create soap envelope where I can’t add my own attributes  
like tns, types etc.

for example my service provider asking the envelope format like below,

\<?xml version="1.0" encoding="utf-8"?\>

\<soap:Envelope  
xmlns:soap=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”  
xmlns:soapenc=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)”  
xmlns:tns=“[http://serviceprovider.com/](http://serviceprovider.com/)”  
xmlns:types=“[http://serviceprovider.com/encodedTypes](http://serviceprovider.com/encodedTypes)”  
xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”  
xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”

but my envelope is generating like below,

\<?xml version="1.0" encoding="utf-8"?\>

\<soap:Envelope  
xmlns:soap=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”  
xmlns:soapenc=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)”  
xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”  
xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”

can any one please suggest me how can I include that two additional  
attributes  
xmlns:tns=“[http://serviceprovider.com/](http://serviceprovider.com/)”  
xmlns:types=“[http://serviceprovider.com/encodedTypes](http://serviceprovider.com/encodedTypes)”

Regards,  
T.Veeraa.
