Comment interpreter une addresse http comme argument dans cette fonction :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
RelatesToType::RelatesToType()
: var_RelationshipType(WS_Addressing::RelationshipTypeOpenEnum(http://www.w3.org/2005/08/addressing/reply))
{
}
J'obtiens ces erreurs :

\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1041) : error C2065:
'http' : undeclared identifier
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1041) : error C2143:
syntax error : missing ')' before ':'
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1043) : error C2143:
syntax error : missing ')' before '}'
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1043) : error C2143:
syntax error : missing ';' before ')'
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1046) : error C2143:
syntax error : missing ')' before ':'
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1046) : error C3861:
'http': identifier not found, even with argument-dependent lookup
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1049) : error C2143:
syntax error : missing ')' before '}'
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1049) : error C2143:
syntax error : missing ';' before ')'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Sachant que son type est :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
 class IT_AFC_API RelationshipTypeOpenEnum : public IT_Bus::SimpleTypeUnion
    {
 
      public:
 
        static const IT_Bus::QName&
        get_static_type();
 
        RelationshipTypeOpenEnum();
        RelationshipTypeOpenEnum(const RelationshipTypeOpenEnum & other);
Je suis desempare pour resoudre ce probleme !

J'ai tente de mettre l'addresse http comme ceci :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
'http://www.w3.org/2005/08/addressing/reply'
mais a la place j'obtiens cette erreur :

\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1041) : error C2015:
too many characters in constant
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1041) : error C2440:
'type cast' : cannot convert from 'int' to 'WS_Addressing::RelationshipTypeOpenEnum'

No constructor could take the source type, or constructor overload resolution
was ambiguous
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1046) : error C2015:
too many characters in constant
\aspen\src\foundation\afc\wsaddressing\wsaddressing_xsdTypes.cxx(1046) : error C2440:
'type cast' : cannot convert from 'int' to 'WS_Addressing::RelationshipTypeOpenEnum'

No constructor could take the source type, or constructor overload resolution
was ambiguous
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Merci a celui qui a une petite idee !