Code Monkey home page Code Monkey logo

Comments (6)

goetas avatar goetas commented on May 23, 2024 1

Namespaces are assigned based on the configs you have defined...
see https://github.com/goetas-webservices/xsd2php#usage

As example in your case:

xsd2php:
  namespaces:
    'http://zakupki.gov.ru/223fz/types/1': 'MyApp\GovRu'
  destinations_php: 
    'MyApp\GovRu': soap/src
  destinations_jms:
    'MyApp\GovRu': soap/metadata

from xsd2php.

goetas avatar goetas commented on May 23, 2024 1
xsd2php :
   Пространства имен :
     ' http://zakupki.gov.ru/223fz/types/1 ' : ' MyApp \ GovRu

Pay attention that there are some while spaces in the ' http://zakupki.gov.ru/223fz/types/1 ' : ' MyApp \ GovRu, the namespace must be exact as in the xml file.

from xsd2php.

KupueIIIKo avatar KupueIIIKo commented on May 23, 2024

Пространства имен назначаются на основе определенных вами конфигов ...
см. Https://github.com/goetas-webservices/xsd2php#usage

В качестве примера в вашем случае:

xsd2php :
   Пространства имен :
     ' http://zakupki.gov.ru/223fz/types/1 ' : ' MyApp \ GovRu

'

destinations_php :
' MyApp \ GovRu ' : мыло / ГКЗ
destinations_jms :
' MyApp \ GovRu ' : мыло / метаданные

Many thanks for the answer. I figured it out to this hint! An example that you got rid of convenient! So I did with the Types.xsd file. I can not understand for the second file! How can the second yml file determine the namespace of the first file?
other

from xsd2php.

KupueIIIKo avatar KupueIIIKo commented on May 23, 2024

Spaces are displayed when translating))) I did exactly according to your example! But the second file does not find the namespace Types.xsd, I think I should specify it.

from xsd2php.

KupueIIIKo avatar KupueIIIKo commented on May 23, 2024
xsd2php:
    namespaces:
        'http://zakupki.gov.ru/223fz/agencyBlockInfo/1': 'MyApp\BlockInfo'
    destinations_php: 
        'MyApp\BlockInfo': soap/src
    destinations_jms:
        'MyApp\BlockInfo': soap/metadata
    aliases: # optional
        'http://zakupki.gov.ru/223fz/types/1':
            MyCustomXSDType:  'MyApp\GovRu'

I did not quite understand! What do you mean by the map file. Is it a namespace or a path to an xsd file? Or the path to the class folder?

from xsd2php.

KupueIIIKo avatar KupueIIIKo commented on May 23, 2024

figured out. It was necessary to make a list of the namespace

from xsd2php.

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.