Git Product home page Git Product logo

Comments (8)

ManoManiac avatar ManoManiac commented on July 30, 2024

This is confirmed by IIS now. En empty field removes VAT number.

from epplib.net.

ademar avatar ademar commented on July 30, 2024

Now you can just do like this.

IisContactUpdate.VatNumber = String.Empty

Let me know what you think.

from epplib.net.

ManoManiac avatar ManoManiac commented on July 30, 2024

Does not work. iis:vatno field is still not in the xml.

from epplib.net.

ManoManiac avatar ManoManiac commented on July 30, 2024

Actually, it is not included even when I just modify the current vatno.

from epplib.net.

ademar avatar ademar commented on July 30, 2024

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.

ManoManiac avatar ManoManiac commented on July 30, 2024

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.

ademar avatar ademar commented on July 30, 2024

Yeah that "create" does not look right there 9c7b903. Can you give it another try ?

from epplib.net.

ManoManiac avatar ManoManiac commented on July 30, 2024

Works! Great!

from epplib.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.