Hello,

First excuse me for this post. It's so stupid but I'm not a Python expert
and a xml expert.

I must add security to an existing SOAP Request.
As documentations, I have some java class, a sample to use it, a sample of
the signed request and the wsdl ans xsd.

I don't take time to study WSDL and XSD theory :(.

I have some troubles :
I can't generate the binding using the wsdl.

C:\Users\tleurent\Documents\OSSOM\EBox\Python\WSDL\fromJAR\wsdl>c:\Python27\python.exe
c:\Python27\Scripts\pyxbgen -W EboxMessage_v1.wsdl
Retrieving WSDL from
C:\Users\tleurent\Documents\OSSOM\EBox\Python\WSDL\fromJAR\wsdl\EboxMessage_v1.wsdl
WARNING:pyxb.binding.basis:Unable to convert DOM node
{http://www.w3.org/2001/XMLSchema}schema at
C:\Users\tleurent\Documents\OSSOM\EBox\Python\WSDL\fromJAR\wsdl\EboxMessage_v1.wsdl[6:2]
to binding
PS urn:uuid:cc78d7c0-3fbc-11e3-a3ab-ed71efb131ed
Exception generating bindings: Target file .\_err.py for module
MR[urn:uuid:cc78d7c0-3fbc-11e3-a3ab-ed71efb131ed]@http://socialsecurity.be/errors/serviceprovider/v1
bindings exists with other content
Traceback (most recent call last):
  File "c:\Python27\Scripts\pyxbgen", line 64, in <module>
    modules = generator.bindingModules()
  File "c:\Python27\lib\site-packages\pyxb\binding\generate.py", line
2857, in bindingModules
    self.__generateBindings()
  File "c:\Python27\lib\site-packages\pyxb\binding\generate.py", line
2796, in __generateBindings
    nsm = NamespaceModule(self, mr, mr_scc)
  File "c:\Python27\lib\site-packages\pyxb\binding\generate.py", line
1612, in __init__
    self._setModulePath(generator.modulePathData(self))
  File "c:\Python27\lib\site-packages\pyxb\binding\generate.py", line
1873, in modulePathData
    raise pyxb.BindingGenerationError('Target file %s for module %s
bindings exists with other content' % (binding_file_path, mr))
BindingGenerationError: Target file .\_err.py for module
MR[urn:uuid:cc78d7c0-3fbc-11e3-a3ab-ed71efb131ed]@http://socialsecurity.be/errors/serviceprovider/v1
bindings exists with other content

2 after generate a sample xml file with XMLSpy and a binding using an xsd.
I have a NamesapceError : http://schemas.xmlsoap.org/soap/envelope/ has no
category elementBinding.

3 I will create this line <wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
S:mustUnderstand="1"> using
pyxb.utils.domutils.BindingDOMSupport.DeclareNamespace( wsse.Namespace,
'wsse' ) and security = wsse.Security()
But I don't find how add "S:mustUnderstand".

4 How to add element to an existing schema ?

Thanks for your help


-- 
Thierry Leurent





-- 
Thierry Leurent
Phone  : +32 476/20.23.98
E-mail : thierry.leur...@asgardian.be
Website (en developpement) : http://www.asgardian.be



------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users

Reply via email to