Menu

I have a problem in PHP with NUSOAP

2017-12-14
2017-12-15
  • Fernando Pais

    Fernando Pais - 2017-12-14

    I need to develop a Web Service Server, I use the class NUSOAP in PHP and when I register my method with the name «NewInitialDocForLocalApp» the Input and Output XML is generated in «NewInitialDocForLocalAppRequest» and «NewInitialDocForLocalAppResponse» but I need it «NewInitialDocForLocalAppInput» and «NewInitialDocForLocalAppOutput» instead. How could I change that?

    The reason I need that words, is because the entreprise use a DataPower validation and must be with that two words.

    code i use to register:
    $server->register(
    'NewInitialDocForLocalApp', // method name
    array(
    'idApp' => 'xsd:string',
    'idProcApp' => 'xsd:string',
    'nIF' => 'xsd:string',
    'codServico' => 'xsd:string',
    'idDocFileNet' => 'xsd:string',
    'tipoDocFileNet' => 'xsd:string',
    'idTipoDoc' => 'xsd:string',
    'dataRegisto' => 'xsd:string',
    'dataDocumento' => 'xsd:string',
    'idProcessoGPS' => 'xsd:string',
    'classNacional' => 'xsd:string',
    'nomeContribuinte' => 'xsd:string',
    'nIFApresentante' => 'xsd:string',
    'nomeApresentante' => 'xsd:string',
    'nIFEntExterna' => 'xsd:string',
    'nomeEntExterna' => 'xsd:string',
    'assunto' => 'xsd:string',
    'referencia' => 'xsd:string',
    'codServOrigem' => 'xsd:string',
    'observacoes' => 'xsd:string'
    ), // input
    array(
    'codResultado' => 'xsd:string',
    'codDetalheResultado' => 'xsd:string',
    'descResultado' => 'xsd:string',
    'idProcApp' => 'xsd:string',
    'idFuncionario' => 'xsd:string'
    ), // output
    $namespace, // namespace
    $namespace.'#NewInitialDocForLocalApp',
    'rpc', // style
    'literal', // 'encoded', // use
    '' // documentation
    );

    How could I solve this?
    Thanks for the help.

     
  • Deep Vyas

    Deep Vyas - 2017-12-15

    Hello Fernando,
    I can help you further
    mail me at deepvyas71@gmail.com

    Best regards,
    Deep

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.