NetTalk Central

Author Topic: MTOM in SOAP ws  (Read 5033 times)

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
MTOM in SOAP ws
« on: July 28, 2017, 10:57:10 AM »
Hi,

Does NT support MTOM to download files in SOAP webservice?

Thanks
Manuel

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: MTOM in SOAP ws
« Reply #1 on: July 30, 2017, 10:38:23 PM »
Hi Manual,

please define MTOM ?

cheers
Bruce

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: MTOM in SOAP ws
« Reply #2 on: July 31, 2017, 06:15:48 AM »
Hi Bruce,

I havenĀ“t tried to make the ws client yet.

I understand that it's to download a file that is out from de SOAP envelope.

The response specification is:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
 <soap:Body>
 <ns1:consumirComunicacionResponse xmlns:ns1="http://ve.tecno.afip.gov.ar/domain/service/ws">
 <ns2:Comunicacion xmlns:ns2="http://ve.tecno.afip.gov.ar/domain/service/ws"
xmlns:ns3="http://core.tecno.afip.gov.ar/model/ws/types">
 <idComunicacion>12061068</idComunicacion>
 <cuitDestinatario>20111111112</cuitDestinatario>
 <fechaPublicacion>2011-07-12 12:21:39.0</fechaPublicacion>
 <fechaVencimiento>2011-07-12</fechaVencimiento>
 <sistemaPublicador>88</sistemaPublicador>
 <sistemaPublicadorDesc>MDQ (Multiple Database Query)</sistemaPublicadorDesc>
 <estado>1</estado>
 <estadoDesc>Comunicacion No Leida</estadoDesc>
 <asunto>Mensaje generado por VeClient</asunto>
 <prioridad>1</prioridad>
 <adjuntos>
 <adjunto>
 <filename>attach.zip</filename>
 <content>
 <xop:Include href="cid:886ee04d-948f-408b-abc0-a748c7b5d927-13@cxf.apache.org"
xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
 </content>
 <compressed>false</compressed>
 <signed>false</signed>
 <encrypted>false</encrypted>
 <processed>false</processed>
 <public>false</public>
 <md5>2ea67624b8cc4340a2a6d4821627412d</md5>
 <contentSize>453</contentSize>
 </adjunto>
 </adjuntos>

 </ns2:Comunicacion>
 </ns1:consumirComunicacionResponse>
 </soap:Body>

Thanks
Cheers,
Manuel

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: MTOM in SOAP ws
« Reply #3 on: July 31, 2017, 10:09:51 PM »
I found this;
https://stackoverflow.com/questions/215741/how-does-mtom-work

there's nothing intrinsic to NetTalk to currently decode this, but it also looks reasonably straight-forward.

The data should arrive ok, there doesn't seem to be a problem there.
I recommend you make a small example client, and get a response from them. Then we can look at the response and see the best way to parse it.

cheers
Bruce