axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Oliveira <aolive...@esec.com.br>
Subject Problem with Axis2C generated stub
Date Fri, 08 Jul 2016 15:49:01 GMT
Greetings,

I'm having trouble with the code generated by the WSDL2C script.

This is the command I used to generate the C code:
    WSDL2C.bat -uri http://192.168.2.22:8280/mss/serviceAp_dev.wsdl -d adb -u

This is the generated code:
    http://wikisend.com/download/615246/generated.zip

This is the content of the referred WSDL:
    https://gist.github.com/Oliveiras/519cc04accd842f2de40e7a5307e0254

This is the C++ code that is calling the generated stub:
    https://gist.github.com/Oliveiras/02243fa4ea72d51407c892373fd1212a

This is the content of the request (captured using WireShark):
----
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <n:SimpleSignatureV2
            xmlns:n="http://esec.com.br/mss/ap"
            xmlns:xsi="http://esec.com.br/mss/ap"
            xsi:type="MobileUserType">
            <SimpleSignatureReqTypeV2
                n:MessagingMode="asynchClientServer"
                n:TestMode="true"
                n:ApId="1"
                xsi:type="SimpleSignatureReqTypeV2">
                <MobileUser
                    n:UniqueIdentifier="aoliveira@esec.com.br"
                    xsi:type="MobileUserType">
                </MobileUser>
                <DataToBeSigned>
                    Teste do driver CSP
                </DataToBeSigned>
            </SimpleSignatureReqTypeV2>
        </n:SimpleSignatureV2>
    </soapenv:Body>
</soapenv:Envelope>
----

This is the content of a working request (created with the SoapUI program):
----
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ap="http://esec.com.br/mss/ap">
   <soapenv:Header/>
   <soapenv:Body>
      <ap:SimpleSignatureV2>
         <SimpleSignatureReqTypeV2
            MessagingMode="asynchClientServer"
            TestMode="true"
            ApId="1">
            <MobileUser
                UniqueIdentifier="aoliveira@esec.com.br"/>
            <DataToBeSigned>Teste do driver CSP</DataToBeSigned>
         </SimpleSignatureReqTypeV2>
      </ap:SimpleSignatureV2>
   </soapenv:Body>
</soapenv:Envelope>
----

As I understand, the problem is with the line '
xsi:type="MobileUserType" '. I don't know why the prefix "xsi" is
being added and can't find where (in the generated code) this wrong
type information is added.

Any help will be much appreciated.

Thanks.
-- 
Alex Oliveira
Analista de Sistemas
E-SEC Segurança Digital
+55 61 3323-4410

Os dados transmitidos, incluindo quaisquer anexos, são destinados
apenas para a pessoa ou entidade ao qual está endereçada e pode conter
material confidencial e/ou privilegiado. É proibida qualquer revisão,
retransmissão, disseminação ou outro uso desta informação, ou a tomada
de qualquer ação com base na confiança, por pessoas ou empresas que
não o destinatário, e qualquer responsabilidade daí decorrente é
negada. Se você recebeu por engano, favor contatar o remetente e
apague o material de qualquer computador

The information transmitted, including any attachments, is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited, and all liability arising therefrom is
disclaimed. If you received this in error, please contact the sender
and delete the material from any computer

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Mime
View raw message