Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Modifying Web Service Proxy Content-Type

Reply
Thread Tools

Modifying Web Service Proxy Content-Type

 
 
irwin.williams@gmail.com
Guest
Posts: n/a
 
      10-31-2005
Hello,
[Short story]
I would like to generate MIME Content for my web service. to meet this
requirment of an application:
MM7 is an XML/SOAP based API where the MMS message is formatted in a
MIME encoded XML document and posted to the server using an HTTP POST.


[Long Story]
I'm new to web services, but i believe that the current solution i am
seeking to arrive at would be best achieved using such technologies.

I am building an application to communicate using the MM7 protocol. MM7
is an XML/SOAP based API where the message is formatted in a MIME
encoded XML document and posted to the server using an HTTP POST.

I have been seeking to use ASP. NET web services to facilitate
interaction between a client and service.

So far, I have used the xsd of the protocol
(http://www.3gpp.org/ftp/Specs/archiv.../REL-5-MM7-1-2)
as a base for generating a wsdl. This wsdl has been used to create
classes on the proxy. I have then used the Web Services Extensions 2
toolkit for tracing and filtering the XML generated before being posted
to the service.

I have been testing a method called Submit. Whenver i have tested it, i
have found it produces the xml required by the protocol for the
respective operation. however, my testing emulator (which accepts the
standard messages) indicates that i am generating invalid MIME content.


I WOULD LIKE TO KNOW WHAT/WHERE I SHOULD BE READING TO GET
CLARIFICATION, THANKS.

I have found the following documentation:

The HTTP headers of your POST must include a "Content-length:" header.

The "Content-type:" header in the POST should be one of the "multipart"
types (usually "multipart/related"), and should include a "boundary="
parameter that delimits the different parts of the message.

The first part of the multipart message is expected to be the XML for
the request.

The second part of the multipart message is expected to be the content
for the multimedia message, and this in turn will usually be another
MIME multipart structure.

The following example is adapted from the official MM7 specification
that is included in the 3GPP TS 23.140 specification:

Note that this example does not include a SMIL file, and as part of the
MMS content, you would probably want to include a SMIL file
(application/smil), which this example does not include.


Should not use any Content-Transfer-Encoding, it should always be
expressed without any encoding. For the portion of the document that
includes the MMS content itself, you can use Content-Transfer-Encoding
of either quoted-printable or base64, or no encoding can be specified
in which case it is assumed that the binary data is to be included as
is.

POST /mm7 HTTP/1.1
Host: mms.omms.com
Content-Type: multipart/related;
boundary="NextPart_000_0028_01C19839.84698430"; type=text/xml;
start="</tnn-200102/mm7-submit>"
Content-Length: nnnn
SOAPAction: ""


--NextPart_000_0028_01C19839.84698430
Content-Type:text/xml; charset="utf-8"
Content-ID: </tnn-200102/mm7-submit>
<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<mm7:TransactionID
xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-M
M7-1-3" env:mustUnderstand="1">
vas00001-sub
</mm7:TransactionID>
</env:Header>
<env:Body>

<SubmitReq
xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1
-3">
<MM7Version>5.6.0</MM7Version>
<SenderIdentification>
<VASPID>TNN</VASPID>
<VASID>News</VASID>
</SenderIdentification>
<Recipients>
<To><Number>7255441234</Number></To>
<Cc><Number>7255443333</Number></Cc>
<Bcc><RFC2822Address></RFC2822Address></Bcc>
</Recipients>
<ServiceCode>gold-sp33-im42</ServiceCode>
<LinkedID>mms00016666</LinkedID>
<MessageClass>Informational</MessageClass>
<TimeStamp>2002-01-02T09:30:47-05:00</TimeStamp>
<EarliestDeliveryTime>2002-01-02T09:30:47-05:00</EarliestDeliveryTime>
<ExpiryDate>P90D</ExpiryDate>
<DeliveryReport>true</DeliveryReport>
<Priority>Normal</Priority>
<Subject>News for today</Subject>
<ChargedParty>Sender</ChargedParty>
<DistributionIndicator>true</DistributionIndicator>
<Content href="cid:SaturnPics-"
allowAdaptations="true"/>
</SubmitReq>
</env:Body>
</env:Envelope>
--NextPart_000_0028_01C19839.84698430
Content-Type: multipart/mixed;
boundary="StoryParts-74526-8432-2002-77645"
Content-ID:<SaturnPics->


--StoryParts-74526-8432-2002-77645
Content-Type: text/plain; charset="us-ascii"

Science news, new Saturn pictures...
--StoryParts-74526-8432-2002-77645
Content-Type: image/gif
Content-ID:<saturn.gif>
Content-Transfer-Encoding: base64
R0lGODdhZAAwAOMAAAAAAIGJjGltcDE0OOfWo6Ochbi1n1pmcb GojpKbnP/lpW54fBMTE1RYXEFO

....

--StoryParts 74526-8432-2002-77645--
--NextPart_000_0028_01C19839.84698430--

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
New Web Proxy List - View Restricted Content with web proxy melati1979@gmail.com Cisco 1 02-25-2009 08:51 PM
Modifying service name and port name in WSDL Wind ASP .Net Web Services 1 04-01-2008 10:52 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Web service, web proxy and timeout problem posthumecaver ASP .Net Web Services 1 08-26-2003 08:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57