Problem with Axis2C generated stub

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Axis2C generated stub

Alex Oliveira
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="[hidden email]"
                    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="[hidden email]"/>
            <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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Problem with Axis2C generated stub

Raghu Udupa-2
Hi,

We are using axis2c version 1.5.0 with Rampart 1.3. Will axis2c 1.5.0 run under TLS 1.1 or TLS 1.2?

If yes, what configuration changes do we need to do?

Thanks,
Raghu

-----Original Message-----
From: Alex Oliveira [mailto:[hidden email]]
Sent: Friday, July 08, 2016 11:49 AM
To: [hidden email]
Subject: Problem with Axis2C generated stub

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="[hidden email]"
                    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="[hidden email]"/>
            <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: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]