Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Developers,

I have to develop the web service which accepts the soap request with attachments from java client. Find the below sample request. On investigating I found .Net does not support SWA. Is there proper way to handle this.

XML
POST /api/mm7 HTTP/1.1
Host: mmsc-01.openmarket.com
Content-Type: multipart/related;
    boundary="aMIMEBoundary";
    type="text/xml";
    start="<soap-start>"
Content-Length: 1781
SOAPAction: ""
--aMIMEBoundary
Content-Type: text/xml; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-ID: <soap-start>
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<TransactionID xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4" soap-env:mustUnderstand="1">20999</TransactionID>
</soap-env:Header>
<soap-env:Body>
<SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4">
<MM7Version>6.8.0</MM7Version>
<SenderIdentification>
<VASID>merchant_prod</VASID>
<VASPID> 123-456-789-0000</VASPID>
<SenderAddress><ShortCode>10958</ShortCode></SenderAddress>
</SenderIdentification>
<Recipients><To><Number displayOnly="false">+14796995191</Number></To></Recipients>
<DeliveryReport>true</DeliveryReport>
<Subject>Sample XML</Subject>
<Content href="cid:om.gif" allowAdaptations="true"/>
</SubmitReq>
</soap-env:Body>
</soap-env:Envelope>
--aMIMEBoundary
Content-Type: image/gif
Content-ID: om.gif
Content-Transfer-Encoding: base64
Content-Disposition: attachment
R0lGODlhwgA/ANUAAP///xdIkWqKO26KsyVTl9nZ2czMzKu4y4+mbFJ2rJCnysXQtu3t7cXR45ypvKq4lvLy8rzGrePj45ereURqonSRSqK2htLS0rfG23yYVJurhIefZNDZwoWYtbO7qNri
…
--aMIMEBoundary--
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900