Comments (8)
This is confirmed by IIS now. En empty field removes VAT number.
from epplib.net.
Now you can just do like this.
IisContactUpdate.VatNumber = String.Empty
Let me know what you think.
from epplib.net.
Does not work. iis:vatno field is still not in the xml.
from epplib.net.
Actually, it is not included even when I just modify the current vatno.
from epplib.net.
Hum .. seems to work for me ..
This code
IisContactUpdate contactUpdate = new IisContactUpdate("xxxxx");
contactUpdate.VatNumber = String.Empty;
var r = contactUpdate.ToXml();
Console.WriteLine(r.OuterXml);
Outputs
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<contact:update xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
<contact:id>xxxxx</contact:id>
</contact:update>
</update>
<extension>
<iis:create xmlns:iis="urn:se:iis:xml:epp:iis-1.2">
<iis:vatno />
</iis:create>
</extension>
</command>
</epp>
And
IisContactUpdate contactUpdate = new IisContactUpdate("xxxxx");
contactUpdate.VatNumber = "1773";
Outputs
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<contact:update xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
<contact:id>xxxxx</contact:id>
</contact:update>
</update>
<extension>
<iis:create xmlns:iis="urn:se:iis:xml:epp:iis-1.2">
<iis:vatno>1773</iis:vatno></iis:create>
</extension>
</command>
</epp>
from epplib.net.
Yes, I see now that it is included in the xml. Don't know where I looked before.
But - the vatno is not updated at IIS. Should it not be like this:
<extension>
<iis:update xmlns:iis="urn:se:iis:xml:epp:iis-1.2">
<iis:vatno>1773</iis:vatno></iis:update>
</extension>
(iis:update and not iis:create)
from epplib.net.
Yeah that "create" does not look right there 9c7b903. Can you give it another try ?
from epplib.net.
Works! Great!
from epplib.net.
Related Issues (20)
- EppResponse extension HOT 2
- Nominet Domain Privacy HOT 3
- It works with registro.br? HOT 1
- EPP error: Parameter value range error HOT 6
- EppLib does not handle IIS cancel domain correctly HOT 3
- EppLib still does not handle IIS cancel domain correctly HOT 2
- Cannot remove authInfo for domain name HOT 2
- No connection could be made because the target machine actively refused it HOT 2
- EppLib secDNS (DNSSEC) extension not handling all elements in RFC
- Service.Connect hangs in Windows Service HOT 1
- The client and server cannot communicate, because they do not possess a common algorithm HOT 1
- Create contact with international and local in EPP HOT 1
- Create contact does not send a authinfo when no or empty password is given.
- Authentication failed because the remote party has closed the transport stream. HOT 1
- Change Domain Password HOT 1
- Port to .NET Standard HOT 3
- Object reference not set to an instance of an object. HOT 2
- How do i use DNSSEC HOT 5
- Possible endless loop w/ busy wait HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epplib.net.